X86-64: Define LO_HI_LONG to skip pos_h [BZ #20349]
[platform/upstream/glibc.git] / ChangeLog
1 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
2
3         [BZ #20349]
4         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
5
6 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7
8         [BZ #18707]
9         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
10         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
11
12 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13
14         * sysdeps/unix/sysv/linux/sysdep.h
15         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
16         guards.
17         * misc/tst-preadvwritev-common.c: New file.
18         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
19         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
20         a check for files larger than 2GB.
21
22         * sysdeps/unix/sysv/linux/mips/kernel-features.h
23         (__ASSUME_OFF_DIFF_OFF64): Remove define.
24         * sysdeps/unix/sysv/linux/pread.c
25         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
26         __OFF_T_MATCHES_OFF64_T.
27         * sysdeps/unix/sysv/linux/pread64.c
28         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
29         * sysdeps/unix/sysv/linux/preadv.c
30         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
31         * sysdeps/unix/sysv/linux/preadv64.c
32         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
33         * sysdeps/unix/sysv/linux/pwrite.c
34         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
35         * sysdeps/unix/sysv/linux/pwrite64.c
36         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
37         * sysdeps/unix/sysv/linux/pwritev.c
38         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
39         * sysdeps/unix/sysv/linux/pwritev64.c
40         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
41
42 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
43
44         * sysdeps/unix/sysv/linux/tile/kernel-features.h
45         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
46
47 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
48
49         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
50
51 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
52
53         [BZ #20240]
54         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
55         (CFLAGS-s_modf-ppc32.c): New variable.
56         (CFLAGS-s_modff-ppc32.c): Likewise.
57         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
58         (CFLAGS-s_modf-ppc64.c): Likewise.
59         (CFLAGS-s_modff-ppc64.c): Likewise.
60
61 2016-07-07  Andreas Schwab  <schwab@suse.de>
62
63         [BZ #20263]
64         * nptl/tst-robust10.c: New test.
65         * nptl/Makefile (tests): Add tst-robust10.
66
67 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
68
69         [BZ #20263]
70         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
71
72 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
73
74         * sysdeps/s390/linkmap.h (struct link_map_machine):
75         Remove member gotplt and add member jmprel.
76         * sysdeps/s390/s390-32/dl-machine.h
77         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
78         instead of gotplt with &got[3].
79         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
80         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
81
82 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
83
84         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
85
86 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
87
88         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
89         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
90         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
91         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
92         * libio/vtables.c (_IO_vtable_check)
93         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
94         * libio/libioP.h (IO_set_accept_foreign_vtables)
95         [!PTR_MANGLE]: Do not call PTR_MANGLE.
96
97 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
98
99         [BZ #20314]
100         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
101         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
102         $(common-objpfx)cmath.
103         ($(common-objpfx)cstdlib): New target.
104         ($(common-objpfx)cmath): Likewise.
105
106 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
107
108         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
109
110 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
111
112         [BZ #20327]
113         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
114         are not part of the string.
115
116 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
117
118         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
119         * nptl/tst-cancel4-common.h (fifoname): New variable.
120         (fifofd): Likewise.
121         (cl_fifo): New function.
122         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
123         SIGINT.
124         (tf_open): Add early cancel test.
125
126 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
127
128         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
129
130 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
131
132         * sysdeps/generic/ldsodefs.h
133         (dl_symbol_visibility_binds_local_p): New inline function.
134         * elf/dl-addr.c (determine_info): Treat hidden and internal
135         symbols as local.
136         * elf/dl-lookup.c (do_lookup_x): Likewise.
137         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
138
139 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
140
141         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
142         invalid exception for a sNaN input.
143         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
144         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
145         (__nearbyint_vis3): Likewise
146         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
147         (__nearbyintf_vis3): Likewise
148         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
149         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
150         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
151         Likewise.
152         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
153         Likewise.
154
155 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
156
157         [BZ #20139]
158         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
159         (HAVE_AVX512DQ_ASM_SUPPORT): This.
160         * sysdeps/x86_64/configure.ac: Require assembler from binutils
161         2.24 or above.
162         (HAVE_AVX512_ASM_SUPPORT): Removed.
163         (HAVE_AVX512DQ_ASM_SUPPORT): New.
164         * sysdeps/x86_64/configure: Regenerated.
165         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
166         check unconditional.
167         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
168         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
169         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
170         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
171         Likewise.
172         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
173         Likewise.
174         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
175         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
176         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
177         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
178         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
179         Likewise.
180         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
181         Likewise.
182         * sysdeps/x86_64/multiarch/memset.S: Likewise.
183         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
184         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
185         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
186         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
187         Likewise.
188         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
189         Likewise.
190         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
191         Likewise.
192         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
193         Likewise.
194         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
195         Likewise.
196         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
197         Likewise.
198         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
199         Likewise.
200         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
201         Likewise.
202         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
203         Likewise.
204         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
205         Likewise.
206         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
207         Likewise.
208
209 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
210
211         [BZ #20024]
212         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
213         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
214         of this implementation of vector function.
215         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
216         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
217         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
218         Likewise.
219         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
220         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
221         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
222         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
223         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
224         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
225         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
226         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
227         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
228         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
229         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
230         for testing vector sincos with fixed ABI.
231         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
232         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
233         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
234         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
235         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
236         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
237         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
238         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
239         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
240         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
241         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
242         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
243         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
244         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
245         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
246         * sysdeps/x86_64/fpu/Makefile: Added new tests.
247
248 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
249
250         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
251
252 2016-06-30  Anton Blanchard  <anton@samba.org>
253
254         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
255         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
256         s_sinf-ppc64.
257         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
258         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
259         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
260         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
261
262 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
263
264         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
265         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
266         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
267         e_expf-ppc64.
268         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
269         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
270         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
271         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
272
273 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
274
275         [BZ #20277]
276         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
277         when SHARED is defined.
278
279 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
280
281         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
282         (index_arch_Prefer_ERMS): Likewise.
283         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
284         __memcpy_erms for Prefer_ERMS.
285         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
286         (__memmove_erms): Enabled for libc.a.
287         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
288         __memmove_erms or Prefer_ERMS.
289         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
290         __mempcpy_erms for Prefer_ERMS.
291         * sysdeps/x86_64/multiarch/memset.S (memset): Return
292         __memset_erms for Prefer_ERMS.
293
294 2016-06-30  Andreas Schwab  <schwab@suse.de>
295
296         [BZ #20262]
297         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
298         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
299         of memory.
300
301 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
302
303         [BZ #18645]
304         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
305         (test-extras): Add tst-cleanupx4aux.
306         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
307         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
308         tst-cleanupx4aux.o.
309         * nptl/tst-cleanupx4aux.c: New file.
310
311 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
312
313         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
314
315 2016-06-29  Andreas Schwab  <schwab@suse.de>
316
317         [BZ #20260]
318         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
319         address before the beginning of the string as an integer to avoid
320         array-bounds warning.
321
322 2016-06-28  Richard Henderson  <rth@redhat.com>
323
324         * elf/elf.h (EM_BPF): New.
325         (EM_NUM): Update.
326         (R_BPF_NONE, R_BPF_MAP_FD): New.
327
328         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
329         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
330         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
331         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
332         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
333         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
334         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
335         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
336         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
337         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
338         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
339         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
340         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
341         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
342         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
343         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
344         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
345         (EM_NUM): Update.
346
347 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
348
349         [BZ #18960]
350         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
351         Set _nl_current_LC_CATEGORY_used to two instead of one.
352
353 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
354
355         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
356         (do_test): ... this.
357         (TEST_FUNCTION): New macro.
358          Include test-skeleton.c.
359         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
360         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
361
362 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
363
364         [BZ #15479]
365         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
366         floating-point environment rather than just control word.
367         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
368         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
369         floating-point environment, with "invalid" exceptions merged in,
370         rather than just control word.
371         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
372         * math/libm-test.inc (trunc_test_data): Do not allow spurious
373         "inexact" exceptions.
374
375         [BZ #15479]
376         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
377         floating-point environment rather than just control word.
378         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
379         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
380         floating-point environment, with "invalid" exceptions merged in,
381         rather than just control word.
382         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
383         * math/libm-test.inc (floor_test_data): Do not allow spurious
384         "inexact" exceptions.
385
386         [BZ #15479]
387         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
388         floating-point environment rather than just control word.
389         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
390         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
391         floating-point environment, with "invalid" exceptions merged in,
392         rather than just control word.
393         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
394         * math/libm-test.inc (ceil_test_data): Do not allow spurious
395         "inexact" exceptions.
396
397 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
398
399         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
400         __libc_vfork.
401         (__vfork) [IS_IN (libc)]: Remove alias.
402         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
403         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
404         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
405
406 2016-06-24  Torvald Riegel  <triegel@redhat.com>
407
408         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
409         of atomic_compare_and_exchange_bool_rel.
410         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
411         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
412         catomic_compare_and_exchange_bool_rel): Remove.
413         * sysdeps/aarch64/atomic-machine.h
414         (atomic_compare_and_exchange_bool_rel): Likewise.
415         * sysdeps/alpha/atomic-machine.h
416         (atomic_compare_and_exchange_bool_rel): Likewise.
417         * sysdeps/arm/atomic-machine.h
418         (atomic_compare_and_exchange_bool_rel): Likewise.
419         * sysdeps/mips/atomic-machine.h
420         (atomic_compare_and_exchange_bool_rel): Likewise.
421         * sysdeps/microblaze/atomic-machine.h
422         ( __arch_compare_and_exchange_bool_8_rel,
423         __arch_compare_and_exchange_bool_16_rel): Likewise.
424         * sysdeps/powerpc/atomic-machine.h
425         ( __arch_compare_and_exchange_bool_8_rel,
426         __arch_compare_and_exchange_bool_16_rel): Likewise.
427         * sysdeps/powerpc/powerpc32/atomic-machine.h
428         ( __arch_compare_and_exchange_bool_32_rel,
429         __arch_compare_and_exchange_bool_64_rel): Likewise.
430         * sysdeps/powerpc/powerpc64/atomic-machine.h
431         ( __arch_compare_and_exchange_bool_32_rel,
432         __arch_compare_and_exchange_bool_64_rel): Likewise.
433         * sysdeps/tile/atomic-machine.h
434         (atomic_compare_and_exchange_bool_rel): Likewise.
435
436 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
437
438         [BZ #20296]
439         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
440         when either argument is a NaN.
441         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
442         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
443
444         * math/libm-test.inc (snan_value_ld): New macro.
445         (isgreater_test_data): Add sNaN tests.
446         (isgreaterequal_test_data): Likewise.
447         (isless_test_data): Likewise.
448         (islessequal_test_data): Likewise.
449         (islessgreater_test_data): Likewise.
450         (isunordered_test_data): Likewise.
451         (nextafter_test_data): Likewise.
452         (nexttoward_test_data): Likewise.
453         (remainder_test_data): Likewise.
454         (remquo_test_data): Likewise.
455         (significand_test_data): Likewise.
456         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
457
458 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
459
460         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
461         environment macros are defined.
462         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
463
464 2016-06-23  Florian Weimer  <fweimer@redhat.com>
465
466         [BZ #20191]
467         Implement vtable verification in libio.
468         * Makerules (shlib.lds): Place __libc_IO_vtables section.
469         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
470         * debug/vdprintf_chk.c (__vdprintf_chk): Call
471         _IO_new_file_init_internal instead of _IO_file_init.
472         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
473         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
474         * libio/Makefile (routines): Add vtables.
475         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
476         (_IO_init): Remove, not for internal use.
477         (_IO_init_internal): Declare, internal replacement for _IO_init.
478         (_IO_file_init): Remove, not for internal use.
479         (_IO_new_file_init): Remove, not for internal use.
480         (_IO_new_file_init_internal): Declare, internal replacement for
481         _IO_new_file_init.
482         (_IO_old_file_init): Remove, not for internal use.
483         (_IO_old_file_init_internal): Declare, internal replacement for
484         _IO_old_file_init.
485         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
486         internal use.
487         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
488         Declare.
489         (libio_vtable): New macro.
490         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
491         functions.
492         * libio/fileops.c (_IO_new_file_init_internal): Rename from
493         _IO_new_file_init.
494         (_IO_new_file_init): New externally visible wrapper which disables
495         vtable verification.
496         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
497         Define as vtables.
498         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
499         (_IO_init): New externally visible wrapper which disables
500         vtable verification.
501         * libio/iofdopen.c (_IO_new_fdopen): Call
502         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
503         comment.
504         * libio/iofopen.c (__fopen_internal): Call
505         _IO_new_file_init_internal instead of _IO_file_init.
506         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
507         Define as vtables.
508         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
509         _IO_new_file_init_internal instead of _IO_file_init.
510         * libio/iopopen.c (_IO_new_popen): Likewise.
511         (_IO_proc_jumps): Define as vtable.
512         * libio/iovdprintf.c (_IO_vdprintf): Call
513         _IO_new_file_init_internal instead of _IO_file_init.
514         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
515         (__open_memstream): Call _IO_init_internal instead of _IO_init.
516         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
517         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
518         _IO_old_file_init.
519         (_IO_old_file_init): New externally visible wrapper which disables
520         vtable verification.
521         (_IO_old_file_jumps): Define as vtable.
522         * libio/oldiofdopen.c (_IO_old_fdopen): Call
523         _IO_old_file_init_internal instead of _IO_old_file_init.
524         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
525         * libio/oldiopopen.c (_IO_old_popen): Likewise.
526         (_IO_old_proc_jumps): Define as vtable.
527         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
528         Define as vtables.
529         * libio/vtables.c: New file.
530         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
531         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
532         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
533         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
534         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
535         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
536         instead of _IO_init.
537
538 2016-06-23  Florian Weimer  <fweimer@redhat.com>
539
540         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
541
542 2016-06-23  Florian Weimer  <fweimer@redhat.com>
543
544         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
545         potentially unused.
546
547 2016-06-22  Florian Weimer  <fweimer@redhat.com>
548
549         * test-skeleton.c (write_message): New function.
550         * malloc/tst-mallocfork2.c (write_message): Remove.
551         * debug/tst-longjmp_chk2.c (write_indented): New function.
552         (write_message): Remove.
553         (stackoverflow_handler): Call write_indented.
554
555 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
556
557         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
558         "inexact" exceptions after fnstenv.
559         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
560         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
561         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
562
563 2015-06-22  Zack Weinberg  <zackw@panix.com>
564
565         * sysdeps/generic/bits/hwcap.h: Moved to ...
566         * bits/hwcap.h: Here.
567
568 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
569
570         * sysdeps/aarch64/memcpy.S (memcpy):
571         Further tuning for performance.
572
573 2016-06-21  Florian Weimer  <fweimer@redhat.com>
574
575         [BZ #20284]
576         * malloc/arena.c (reused_arena): Do not return NULL if we start
577         out with a non-corrupted arena.
578
579 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
580
581         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
582         * misc/tst-preadvwritev.c: New file.
583         * misc/tst-preadvwritev64.c: Likewise.
584         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
585         usage.
586         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
587         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
588         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
589         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
590
591 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
592
593         [BZ #19654]
594         * sysdeps/x86_64/fpu/Makefile: Added new tests.
595         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
596         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
597         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
598         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
599         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
600         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
601         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
602         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
603         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
604         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
605         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
606         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
607         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
608         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
609         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
610         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
611         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
612         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
613         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
614         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
615         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
616         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
617         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
618         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
619         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
620
621 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
622
623         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
624         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
625
626 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
627
628         * sysdeps/aarch64/memcpy.S (memcpy):
629         Rewrite of optimized memcpy and memmove.
630         * sysdeps/aarch64/memmove.S (memmove): Remove
631         memmove code (merged into memcpy.S).
632
633 2016-06-20  Florian Weimer  <fweimer@redhat.com>
634
635         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
636         * sysdeps/generic/dl-dtv.h: New file.
637         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
638         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
639         (dtv_t): Remove.
640         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
641         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
642         (dtv_t): Remove.
643         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
644         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
645         (dtv_t): Remove.
646         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
647         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
648         (dtv_t): Remove.
649         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
650         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
651         (dtv_t): Remove.
652         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
653         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
654         (dtv_t): Remove.
655         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
656         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
657         (dtv_t): Remove.
658         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
659         (dtv_t): Remove.
660         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
661         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
662         (dtv_t): Remove.
663         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
664         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
665         (dtv_t): Remove.
666         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
667         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
668         (dtv_t): Remove.
669         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
670         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
671         (dtv_t): Remove.
672         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
673         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
674         (dtv_t): Remove.
675         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
676         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
677         (dtv_t): Remove.
678         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
679         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
680         (dtv_t): Remove.
681         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
682         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
683         (dtv_t): Remove.
684
685 2016-06-20  Florian Weimer  <fweimer@redhat.com>
686
687         Revert symbol poisoning of  __malloc_initialize_hook.
688         * include/stdc-predef.h (__malloc_initialize_hook): Remove
689         poisoning.
690         * malloc/Makefile: Remove un-poisoning.
691         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
692         instead of old__malloc_initialize_hook.
693         * malloc/malloc-hooks.h: Likewise.
694         * malloc/malloc.c: Likewise.
695         * malloc/mcheck-init.c: Likewise.
696
697 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
698
699         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
700
701 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
702
703         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
704         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
705         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
706         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
707
708 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
709
710         * NEWS: Mention addition of nextup and nextdown.
711         * manual/arith.texi: Document nextup and nextdown.
712         * manual/libm-err-tab.pl: Add nextup and nextdown.
713         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
714         * math/Versions (libm): Add GLIBC_2.24.
715         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
716         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
717         Add new test.
718         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
719         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
720         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
721         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
722         (nextup_test_data): Likewise.
723         (nextdown_test_data): Likewise.
724         * math/s_nextdown.c: New file.
725         * math/s_nextdownf.c: Likewise.
726         * math/s_nextdownl.c: Likewise.
727         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
728         F(nextup): New function.
729         F(nextdown): Likewise.
730         * math/tgmath.h: Add nextup and nextdown.
731         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
732         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
733         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
734         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
735         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
736         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
737         Add nextup and nextdown.
738         (CFLAGS-nldbl-nextup.c): New variable.
739         (CFLAGS-nldbl-nextdown.c): Likewise.
740         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
741         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
742         * sysdeps/nacl/libm.abilist: Update.
743         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
744         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
745         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
746         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
747         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
748         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
749         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
750         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
751         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
752         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
753         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
754         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
757         Likewise.
758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
760         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
761         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
762         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
763         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
764         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
765         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
766         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
767         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
768         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
769         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
770         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
771
772 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
773
774         * manual/pattern.texi: Fix typos & grammar errors.
775
776 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
777
778         * manual/search.texi: Fix typos & grammar errors.
779
780 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
781
782         * manual/message.texi: Fix typos & grammar errors.
783
784 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
785
786         * manual/contrib.texi: Fix spelling typos.
787         * manual/crypt.texi: Likewise.
788         * manual/filesys.texi: Likewise.
789         * manual/locale.texi: Likewise.
790         * manual/message.texi: Likewise.
791         * manual/nss.texi: Likewise.
792         * manual/string.texi: Likewise.
793
794 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
795
796         * manual/locale.texi: Fix typos & grammar errors.
797
798 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
799
800         * manual/charset.texi: Fix typos & grammar errors.
801
802 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
803
804         * manual/string.texi: Fix typos.
805
806 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
807
808         * manual/ctype.texi: Fix typos.
809
810 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
811
812         * manual/memory.texi: Fix various typos & grammar errors.
813
814 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
815
816         [BZ #20255]
817         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
818         * math/libm-test.inc (fdim_test_data): Add another test.
819
820         [BZ #6796]
821         [BZ #20255]
822         [BZ #20256]
823         * math/s_fdim.c: Include <math_private.h>.
824         (__fdim): Use math_narrow_eval on result.
825         * math/s_fdimf.c: Include <math_private.h>.
826         (__fdimf): Use math_narrow_eval on result.
827         * sysdeps/i386/fpu/s_fdim.S: Remove file.
828         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
829         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
830         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
831         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
832         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
833         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
834         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
835         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
836         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
837         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
838         * math/libm-test.inc (fdim_test_data): Expect errno setting on
839         overflow.  Add sNaN tests.
840
841         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
842         fpclassify.
843         * math/s_fdimf.c (__fdimf): Likewise.
844         * math/s_fdiml.c (__fdiml): Likewise.
845
846 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
847
848         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
849         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
850         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
851         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
852         ifunc'ed strcasecmp/strncasecmp.
853         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
854         [EALIGN]: Removed.
855         [END]: Likewise.
856         [__strcasecmp]: Define instead of the above to control symbol name.
857         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
858         for __strcasecmp_power8.
859         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
860         for __strncasecmp_power8.
861         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
862         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
863         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
864         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
865         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
866         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
867
868 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
869
870         [BZ #20252]
871         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
872         arguments when second argument is a NaN.
873         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
874         qNaN tests.
875
876         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
877         (conj_test_data): Likewise.
878         (copysign_test_data): Likewise.
879         (creal_test_data): Likewise.
880         (fma_test_data): Likewise.
881         (fmod_test_data): Likewise.
882
883         [BZ #20250]
884         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
885         itself.
886         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
887         zero input to itself.
888         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
889         Likewise.
890         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
891         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
892         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
893         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
894         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
895
896 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
897
898         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
899         * nptl/tst-cancel4-common.c: New file.
900         * nptl/tst-cancel4-common.h: Likewise.
901         * nptl/tst-cancel4.c: Move common definitions to
902         tst-cancel4-common.{c,h} file.
903         * nptl/tst-cancel4_1.c: New test.
904         * nptl/tst-cancel4_2.c: New test.
905
906 2016-06-13  Florian Weimer  <fweimer@redhat.com>
907
908         [BZ #20248]
909         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
910         (write_message): New function.
911         (stackoverflow_handler): Call it instead of printf, to avoid
912         excessive stack usage by printf.
913         (do_test): Restore SIGSEGV, SIGBUS default handlers.
914
915 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
916
917         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
918         (prio_inherit_missing): Remove define.
919         * sysdeps/unix/sysv/linux/arm/kernel-features.h
920         (__ASSUME_FUTEX_LOCK_PI): Likewise.
921         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
922         Likewise.
923         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
924         (__ASSUME_FUTEX_LOCK_PI): Likewise.
925         * sysdeps/unix/sysv/linux/mips/kernel-features.h
926         (__ASSUME_FUTEX_LOCK_PI): Likewise.
927         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
928         (__ASSUME_FUTEX_LOCK_PI): Likewise.
929
930 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
931
932         [BZ #19670]
933         [BZ #19672]
934
935         * io/test-lfs.c (do_prepare): Use xmalloc.
936         * io/tst-fcntl.c (do_prepare): Likewise.
937         * libio/tst-fopenloc.c (do_bz17916): Likewise.
938         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
939         * login/tst-utmp.c (do_prepare): Likewise.
940         * posix/tst-exec.c (do_prepare): Likewise.
941         * posix/tst-pathconf.c (prepare): Likewise.
942         * posix/tst-spawn.c (do_prepare): Likewise.
943         * posix/tst-truncate.c (do_prepare): Likewise.
944         * rt/tst-aio.c (do_prepare): Likewise.
945         * rt/tst-aio64.c (do_prepare): Likewise.
946
947 2016-06-11  Florian Weimer  <fweimer@redhat.com>
948
949         [BZ #20237]
950         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
951         (get*ent): Set entidx to NULL during initialization.  If entidx is
952         NULL, start iteration from the beginning.
953
954 2016-06-11  Florian Weimer  <fweimer@redhat.com>
955
956         * malloc/malloc.c (musable): Return correct size for dumped fake
957         mmapped chunk.
958
959 2016-06-11  Florian Weimer  <fweimer@redhat.com>
960
961         [BZ #20222]
962         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
963         (_IO_cookie_write): Likewise.
964         (_IO_cookie_seek): Likewise.
965         (_IO_cookie_close): Likewise.
966         (_IO_old_cookie_seek): Likewise.
967         (set_callbacks): New function.
968         (_IO_cookie_init): Call set_callbacks to copy callbacks.
969
970 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
971
972         * locale/programs/localedef.c (oldstyle_tables): Remove.
973         * locale/programs/localedef.h (oldstyle_tables): Likewise.
974
975 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
976
977         [BZ #20240]
978         * math/Makefile (CFLAGS-s_modf.c): New variable.
979         (CFLAGS-s_modff.c): Likewise.
980         (CFLAGS-s_modfl.c): Likewise.
981         * math/libm-test.inc (modf_test_data): Add sNaN tests.
982
983 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
984
985         [BZ #20215]
986         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
987         [!__GNUC_PREREQ (3,2)]: Likewise.
988
989 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
990
991         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
992         (msghdr.msg_controllen): Likewise.
993         (cmsghdr.cmsg_len): Likewise.
994         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
995         ptw-oldsendmsg.
996         (CFLAGS-oldrecvmsg.c): Remove rule.
997         (CFLAGS-oldsendmsg.c): Likewise.
998         (CFLAGS-recvmsg.c): Add rule.
999         (CFLAGS-sendmsg.c): Likewise.
1000         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
1001         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
1002         (CFLAGS-recvmsg.c): Remove rule.
1003         (CFLAGS-sendmsg.c): Likewise.
1004         (CFLAGS-oldrecvmsg.c): Likewise.
1005         (CFLAGS-oldsendmsg.c): Likewise.
1006         (CFLAGS-recvmmsg.c): Likewise.
1007         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
1008         to kernel defined interfaces.
1009         (msghdr.msg_controllen): Likewise.
1010         (cmsghdr.cmsg_len): Likewise.
1011         (msghdr.__glibc_reserved1): Remove member.
1012         (msghdr.__glibc_reserved2): Likewise.
1013         (cmsghdr.__glibc_reserved1): Likewise.
1014         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
1015         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
1016         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1017         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1018         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
1019         version.
1020         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
1021         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
1022         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
1023         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
1024         Remove recvmsg and sendmsg.
1025         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
1026         Likewise.
1027         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1028         Likewise.
1029         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1030         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1031         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1032         Likewise.
1033         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1034         Likewise.
1035         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
1036         [libc] (GLIBC_2.24): Likewise.
1037         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1038         Likewise.
1039         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1040         Likewise.
1041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1042         [libc] (GLIBC_2.24): Likewise.
1043         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1044         Likewise.
1045         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1046         Likewise.
1047         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1048         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1049         Likewise.
1050         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1051         Likewise.
1052         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1053         Likewise.
1054         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
1055         Likewise.
1056         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
1057         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
1058         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
1059         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
1060         version for {recv,send,recm,sendm}msg.
1061         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1062         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1063         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1064         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1065         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1066         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1067         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1068         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1069         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1070         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1071         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1072         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1074         Likewise.
1075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1076         Likewise.
1077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1079         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1080         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1081         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1082         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1083         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1084         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1085         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1086         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1087         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1088         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1089         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1090
1091 2016-06-10  Florian Weimer  <fweimer@redhat.com>
1092
1093         [BZ #19564]
1094         Remove __malloc_initialize_hook from the API.
1095         * malloc/malloc.h (__malloc_initialize_hook): Remove.
1096         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
1097         #pragma GCC poison.
1098         * malloc/malloc-hooks.h: New file.
1099         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
1100         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
1101         (old__malloc_initialize_hook): Rename from
1102         __malloc_initialize_hook to evade poisoning.  Turn into compat
1103         symbol.
1104         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
1105         __malloc_initialize_hook.
1106         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
1107         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
1108         * manual/memory.texi (Hooks for Malloc): Remove
1109         __malloc_initialize_hook.  Adjust hook example.
1110
1111 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
1112
1113         [BZ #20235]
1114         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
1115         itself.
1116         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1117         * math/libm-test.inc (log2_test_data): Add sNaN tests.
1118
1119         [BZ #20234]
1120         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
1121         infinity or NaN input to itself.
1122
1123         [BZ #20233]
1124         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
1125         to itself.
1126
1127         [BZ #20232]
1128         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
1129         itself.
1130
1131 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
1132
1133         * sysdeps/x86_64/start.S (_start): Always indirect branch to
1134         __libc_start_main via GOT.
1135
1136 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
1137
1138         * sysdeps/x86_64/memcopy.h: New file.
1139         * sysdeps/x86_64/wordcopy.c: Likewise.
1140
1141 2016-06-09  Florian Weimer  <fweimer@redhat.com>
1142
1143         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
1144         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
1145         <cstdlib>.
1146         (optimization_barrier): New.
1147         (do_test): Use it.  Call quick_exit in the global namespace.
1148         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
1149         instead of <cstdlib>, <thread>.
1150         (optimization_barrier): New.
1151         (non_main_thread): Adjust declaration.  Call optimization_barrier.
1152         Call quick_exit in the global namespace.
1153         (do_test): Call optimization_barrier.  Use pthread_create,
1154         pthread_join instead of std::thread.
1155
1156 2016-06-09  Andreas Schwab  <schwab@suse.de>
1157
1158         [BZ #19755]
1159         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
1160         new entries in auto-propagate mode.
1161         * nscd/grpcache.c (cache_addgr): Likewise.
1162
1163 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
1164
1165         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
1166         New functions.
1167         (add_temp_file): Use them.
1168
1169 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
1170
1171         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
1172
1173 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
1174
1175         [BZ #20229]
1176         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
1177         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
1178         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
1179
1180         [BZ #20228]
1181         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
1182         itself.
1183         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
1184         * math/libm-test.inc (log10_test_data): Add sNaN tests.
1185
1186         [BZ #20227]
1187         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
1188         itself.
1189         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
1190         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
1191         * math/libm-test.inc (log_test_data): Add sNaN tests.
1192
1193         [BZ #20226]
1194         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
1195         itself.
1196         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
1197         * math/libm-test.inc (exp_test_data): Add sNaN tests.
1198         (exp10_test_data): Likewise.
1199         (expm1_test_data): Likewise.
1200
1201         [BZ #20225]
1202         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
1203         itself.
1204         * math/s_ldexpf.c (__ldexpf): Likewise.
1205         * math/s_ldexpl.c (__ldexpl): Likewise.
1206         * math/w_scalbln.c (__w_scalbln): Likewise.
1207         * math/w_scalblnf.c (__w_scalblnf): Likewise.
1208         * math/w_scalblnl.c (__w_scalblnl): Likewise.
1209         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
1210         (scalbln_test_data): Likewise.
1211
1212         [BZ #20224]
1213         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
1214         argument to itself.
1215         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
1216
1217 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1218
1219         [BZ #19776]
1220         * sysdeps/x86_64/memcpy.S: Make it dummy.
1221         * sysdeps/x86_64/mempcpy.S: Likewise.
1222         * sysdeps/x86_64/memmove.S: New file.
1223         * sysdeps/x86_64/memmove_chk.S: Likewise.
1224         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
1225         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
1226         * sysdeps/x86_64/memmove.c: Removed.
1227         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
1228         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
1229         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
1230         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
1231         Likewise.
1232         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1233         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1234         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1235         memcpy-sse2-unaligned, memmove-avx-unaligned,
1236         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
1237         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1238         (__libc_ifunc_impl_list): Replace
1239         __memmove_chk_avx512_unaligned_2 with
1240         __memmove_chk_avx512_unaligned.  Remove
1241         __memmove_chk_avx_unaligned_2.  Replace
1242         __memmove_chk_sse2_unaligned_2 with
1243         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
1244         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
1245         with __memmove_avx512_unaligned.  Replace
1246         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
1247         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
1248         with __memcpy_chk_avx512_unaligned.  Remove
1249         __memcpy_chk_avx_unaligned_2.  Replace
1250         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
1251         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
1252         Replace __memcpy_avx512_unaligned_2 with
1253         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
1254         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
1255         with __mempcpy_chk_avx512_unaligned.  Remove
1256         __mempcpy_chk_avx_unaligned_2.  Replace
1257         __mempcpy_chk_sse2_unaligned_2 with
1258         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
1259         Replace __mempcpy_avx512_unaligned_2 with
1260         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
1261         Replace __mempcpy_sse2_unaligned_2 with
1262         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
1263         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
1264         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
1265         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
1266         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
1267         (ENTRY): Removed.
1268         (END): Likewise.
1269         (ENTRY_CHK): Likewise.
1270         (libc_hidden_builtin_def): Likewise.
1271         Don't include ../memcpy.S.
1272         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
1273         __memcpy_chk_avx512_unaligned_erms and
1274         __memcpy_chk_avx512_unaligned.  Use
1275         __memcpy_chk_avx_unaligned_erms and
1276         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
1277         Default to __memcpy_chk_sse2_unaligned.
1278         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
1279         Change function suffix from unaligned_2 to unaligned.
1280         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
1281         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
1282         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
1283         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
1284         (ENTRY): Removed.
1285         (END): Likewise.
1286         (ENTRY_CHK): Likewise.
1287         (libc_hidden_builtin_def): Likewise.
1288         Don't include ../mempcpy.S.
1289         (mempcpy): New.  Add a weak alias.
1290         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
1291         __mempcpy_chk_avx512_unaligned_erms and
1292         __mempcpy_chk_avx512_unaligned.  Use
1293         __mempcpy_chk_avx_unaligned_erms and
1294         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
1295         Default to __mempcpy_chk_sse2_unaligned.
1296
1297 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1298
1299         [BZ #19881]
1300         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
1301         into ...
1302         * sysdeps/x86_64/memset.S: This.
1303         (__bzero): Removed.
1304         (__memset_tail): Likewise.
1305         (__memset_chk): Likewise.
1306         (memset): Likewise.
1307         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
1308         defined.
1309         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
1310         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
1311         (__memset_zero_constant_len_parameter): Check SHARED instead of
1312         PIC.
1313         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1314         memset-avx2 and memset-sse2-unaligned-erms.
1315         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1316         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
1317         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
1318         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
1319         (__bzero): Enabled.
1320         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
1321         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
1322         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
1323         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
1324         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
1325         (memset): Removed.
1326         (__memset_chk): Likewise.
1327         (MEMSET_SYMBOL): New.
1328         (libc_hidden_builtin_def): Replace __memset_sse2 with
1329         __memset_sse2_unaligned.
1330         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
1331         __memset_chk_sse2 and __memset_chk_avx2 with
1332         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
1333         Use __memset_chk_sse2_unaligned_erms or
1334         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
1335         __memset_chk_avx512_unaligned_erms and
1336         __memset_chk_avx512_unaligned.
1337
1338 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1339
1340         * math/gen-auto-libm-test.c (fp_format_desc): remove
1341         suffix member.
1342         (output_generic_value): Remove usage of suffix member,
1343         and the resulting unuse of the fp_format argument.
1344         (output_for_one_input_case): Remove unused fp_format
1345         parameter.
1346
1347         * math/auto-libm-test-out: Regenerate.
1348
1349         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
1350         usage with TEST_COND_ibm128.
1351         (TEST_COND_flt_32): Remove.
1352         (TEST_COND_dbl_64): Remove.
1353         (TEST_COND_ldbl_96_intel): Remove.
1354         (TEST_COND_ldbl_96_m68k): Remove.
1355         (TEST_COND_ldbl_128): Remove.
1356
1357 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1358
1359         * auto-libm-test-in:
1360         Replace flt-32 usage with binary32.
1361         Replace dbl-64 usage with binary64.
1362         Replace ldbl-intel-96 usage with intel96.
1363         Replace ldbl-m68k-96 usage with m68k96.
1364         Replace ldbl-128ibm usage with ibm128.
1365         Replace ldbl-128 usage with binary128.
1366
1367         * auto-libm-test-out: Regenerate.
1368
1369 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1370
1371         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
1372         (parse_ulps): Dynamically generate type name matching
1373         string from all_floats.
1374         (get_ulps): Generate the ulps as an array instead.
1375         (output_ulps): Dynamically compose the type based
1376         on the number of supported formats, and print
1377         the indices as type specific helper macros.
1378
1379         * math/libm-test.inc: Remove comment about CHOOSE.
1380         (ulp_data): Generate the type in libm-test-ulps.h.
1381         (ULP_IDX): New macro.
1382         (find_ulps): Update usage of max_ulp.
1383
1384         * math/test-double-vlen2.h (CHOOSE): Remove.
1385         * math/test-double-vlen4.h (CHOOSE): Likewise.
1386         * math/test-double-vlen8.h (CHOOSE): Likewise.
1387         * math/test-float.c (CHOOSE): Likewise.
1388         * math/test-float-finite.c (CHOOSE): Likewise.
1389         * math/test-double.c (CHOOSE): Likewise.
1390         * math/test-double-finite.c (CHOOSE): Likewise.
1391         * math/test-idouble.c (CHOOSE): Likewise.
1392         * math/test-ifloat.c (CHOOSE): Likewise.
1393         * math/test-ildoubl.c (CHOOSE): Likewise.
1394         * math/test-ldouble-finite.c (CHOOSE): Likewise.
1395         * math/test-ldouble.c (CHOOSE): Likewise.
1396
1397         * math/test-float.h (TEST_FLOAT): Remove.
1398         * math/test-double.h (TEST_DOUBLE): Likewise.
1399         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
1400
1401 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1402
1403         * math/gen-libm-test.pl: (apply_lit): New subroutine.
1404         (parse_args): Strip C suffix from floating point literals
1405         typed with 'f' and wrap them with LIT().
1406
1407         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
1408         (test_ff_f_data_nexttoward): Rename to
1409         (test_fj_f_data): New struct.
1410         (nexttoward_test_data): Relabel tests as
1411         TEST_fj_f instead of TEST_ff_f.
1412
1413 2016-06-08  Florian Weimer  <fweimer@redhat.com>
1414
1415         Emacs bug 23726.
1416         * malloc/malloc.c (dumped_main_arena_start): Update comment.
1417         (__libc_realloc): Correct size computation for dumped fake mmapped
1418         chunks.
1419
1420 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
1421
1422         [BZ #20219]
1423         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
1424         to itself.
1425         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
1426
1427         [BZ #20218]
1428         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
1429         to itself.
1430         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
1431
1432 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
1433
1434         [BZ #20195]
1435         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
1436         check to ...
1437         (init_cpu_features): Here.
1438
1439 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
1440
1441         [BZ #20214]
1442         * sysdeps/unix/sysv/linux/bits/in.h
1443         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1444          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
1445         Define to 1.
1446         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1447          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
1448         Define to 0.
1449         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
1450         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
1451
1452 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
1453
1454         [BZ #20198]
1455         * stdlib/Makefile (tests): Add tst-quick_exit, and
1456         tst-thread-quick_exit.
1457         [ifeq ($(have-cxx-thread_local),yes)]
1458         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
1459         (CFLAGS-tst-thread-quick_exit.o): Likewise.
1460         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
1461         (LDLIBS-tst-thread-quick_exit): Likewise.
1462         [ifneq ($(have-cxx-thread_local),yes)]
1463         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
1464         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
1465         If run_dtors is true call __call_tls_dtors.
1466         (exit): Call __run_exit_handlers with run_dtors set to true.
1467         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
1468         definition.
1469         * stdlib/quick_exit.c (quick_exit): Remove function.
1470         (__new_quick_exit): New function.
1471         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
1472         function.
1473         * stdlib/tst-quick_exit.cc: New file.
1474         * stdlib/tst-thread-quick_exit.cc: New file.
1475         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
1476         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
1477         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
1478         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
1479         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
1480         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
1481         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
1482         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
1483         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
1484         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
1485         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
1486         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
1487         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
1488         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
1489         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
1490         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1491         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
1492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
1493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
1494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
1495         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
1496         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
1497         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
1498         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
1499         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
1500         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
1501         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
1502         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
1503         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
1504         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
1505
1506 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
1507
1508         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
1509         a typo in comments.
1510
1511 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1512
1513         [BZ #20213]
1514         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
1515         argument to itself.
1516         * math/libm-test.inc (asin_test_data): Add sNaN tests.
1517
1518 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1519
1520         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
1521         required flags.
1522         (CFLAGS-pwritev64.c): Likewise.
1523         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
1524         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
1525         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
1526         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
1527         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
1528         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
1529         syscall from auto-generation.
1530         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
1531         [WORDSIZE == 64] (pwritev64): Remove macro.
1532         [!PWRITEV] (PWRITEV): Likewise.
1533         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1534         [!PWRITEV] (PWRITE): Likewise.
1535         [!PWRITEV] (OFF_T): Likewise.
1536         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1537         (LO_HI_LONG): Remove macro.
1538         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
1539         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
1540         (PWRITEV): Remove macro.
1541         (PWRITEV_REPLACEMENTE): Likewise.
1542         (PWRITE): Likewise.
1543         (OFF_T): Likewise.
1544         (pwritev64): New function.
1545         * nptl/tst-cancel4.c (tf_writev): Add test.
1546
1547         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
1548         required flags.
1549         (CFLAGS-preadv64.c): Likewise.
1550         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
1551         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
1552         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
1553         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
1554         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
1555         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
1556         syscall from auto-generation.
1557         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
1558         [WORDSIZE == 64] (preadv64): Remove macro.
1559         [!PREADV] (PREADV): Likewise.
1560         [!PREADV] (PREADV_REPLACEMENT): Likewise.
1561         [!PREADV] (PREAD): Likewise.
1562         [!PREADV] (OFF_T): Likewise.
1563         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
1564         (LO_HI_LONG): Remove macro.
1565         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
1566         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
1567         (PREADV): Remove macro.
1568         (PREADV_REPLACEMENTE): Likewise.
1569         (PREAD): Likewise.
1570         (OFF_T): Likewise.
1571         (preadv64): New function.
1572         * nptl/tst-cancel4.c (tf_preadv): Add test.
1573
1574 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1575
1576         [BZ #20212]
1577         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
1578         argument to itself.
1579         * math/libm-test.inc (acos_test_data): Add sNaN tests.
1580
1581 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1582
1583         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
1584         New symbol defined as libc_hidden_def.
1585         (strcasestr): Became a weak alias to __strcasestr.
1586         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
1587         according to multi-arch support.  Move __stpncpy hidden
1588         definition from here to...
1589         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
1590         symbol stpncpy.
1591         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
1592         libc_hidden_builtin_def.
1593         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
1594         memset symbol to use when multi-arch support is available.
1595
1596 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
1597
1598         * dlfcn/tst-rec-dlopen.c: Include string.h.
1599
1600 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1601
1602         * manual/install.texi: Remove mention of --without-tls
1603         * INSTALL: Regenerate.
1604
1605 2016-06-05  Florian Weimer  <fweimer@redhat.com>
1606
1607         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
1608         Remove.
1609         (call_function, interposed_malloc_called): New variables.
1610         (malloc): New function.
1611         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
1612         and clear call_function as needed.
1613
1614 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
1615
1616         * include/wchar.h (__wmemset): Use __typeof.
1617
1618 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
1619
1620         * include/wchar.h (__wmemset): Declare function without typeof.
1621
1622 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
1623
1624         [BZ #20205]
1625         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
1626         exponent when incrementing negative subnormal with low mantissa
1627         word zero.
1628         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
1629         Add another test.
1630
1631 2016-06-03  Florian Weimer  <fweimer@redhat.com>
1632
1633         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
1634         __wmemset instead of wmemset.
1635
1636 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
1637
1638         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
1639         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
1640         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
1641         __USE_KERNEL_IPV6_DEFS to 0.
1642         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
1643         Update comment.
1644
1645 2016-06-01  Florian Weimer  <fweimer@redhat.com>
1646
1647         [BZ #19861]
1648         Do not use IFUNC resolver with potentially unrelocated symbol.
1649         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
1650         (DEFINE_FORK): Remove macro and inline definition.
1651         (fork_alias): Renamed from fork_ifunc.
1652         (__fork_alias): Renamed from __fork_ifunc.
1653
1654 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
1655
1656         [BZ 19653]
1657         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
1658         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
1659
1660 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1661
1662         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
1663         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
1664         i386-linux-gnu).
1665         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
1666         Set to no.
1667         * sysdeps/mach/hurd/configure: Refresh.
1668
1669 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1670
1671         [BZ #20178]
1672         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
1673         on failure instead of exit.
1674
1675 2016-05-30  Roland McGrath  <roland@hack.frob.com>
1676
1677         [BZ #3629]
1678         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
1679         of POSIX.1-2008.
1680
1681 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1682
1683         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
1684           Use PLT entry for calling _hurd_self_sigstate.
1685
1686 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1687
1688         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
1689         available logical processors with SMT level type sharing L2
1690         cache for Intel processors.
1691
1692 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1693
1694         [BZ #20160]
1695         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
1696         argument to itself before returning the result.
1697         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1698         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1699         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1700         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
1701         Likewise.
1702         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
1703         Likewise.
1704         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
1705         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
1706         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
1707         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
1708         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1709         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1710
1711         [BZ #20160]
1712         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
1713         argument to itself before returning the result.
1714         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1715         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1716         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1717         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
1718         Likewise.
1719         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
1720         Likewise.
1721         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
1722         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
1723         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
1724         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
1725         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1726         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1727
1728 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1729
1730         * libm-test.inc: Replace usage of M_El with
1731         (lit_e): New macro.
1732
1733 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1734
1735         * libm-test.inc: Replace usage of M_PI_4l with
1736         (lit_pi_4_d): New macro.
1737
1738 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1739
1740         * libm-test.inc: Replace usage of M_PIl with
1741         (lit_pi): New macro.
1742
1743 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1744
1745         * libm-test.inc: Replace usage of M_PI2l with
1746         (lit_pi_2_d): New macro.
1747
1748         * math/test-double.h (LITM): New macro.
1749         * math/test-float.h (LITM): Likewise.
1750         * math/test-ldouble.h (LITM): Likewise.
1751
1752 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1753
1754         * libm-test.inc (M_PI_34l): Rename to
1755         (lit_pi_3_m_4_d): New Macro.
1756         (M_PI_34_LOG10El): Rename to
1757         (lit_pi_3_m_4_ln10_m_d): New Macro.
1758         (M_PI2_LOG10El): Rename to
1759         (lit_pi_2_ln10_m_d):  New Macro.
1760         (M_PI4_LOG10El): Rename to
1761         (lit_pi_4_ln10_m_d):  New Macro.
1762         (M_PI_LOG10El): Rename to
1763         (lit_pi_ln10_d):  New Macro.
1764
1765 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1766
1767         [BZ #20157]
1768         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
1769         determine whether to negate low half if [_ARCH_PPCGR], and integer
1770         comparison otherwise.
1771         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
1772         determine whether to negate low half.
1773
1774         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
1775         (NO_TEST_INLINE_DOUBLE): Likewise.
1776         (TEST_COND_x86_64): Likewise.
1777         (TEST_COND_x86): Likewise.
1778         (M_PI_6l): Likewise.
1779
1780 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1781
1782         * math/libm-test.inc:
1783         (TEST_FLOAT): Change usage to TEST_COND_binary32.
1784         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
1785         (TEST_LDOUBLE): Update usage to evaluate as true if
1786         the guarded tests match the property being tested.
1787         (LDBL_MAX_EXP): Change to MAX_EXP.
1788         (LDBL_MIN_EXP): Change to MIN_EXP.
1789         (LDBL_MANT_DIG): Change to MANT_DIG, except for
1790         nexttoward tests.
1791
1792 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1793
1794         * math/libm-test.inc:
1795         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
1796         (TYPE_MIN): Likewise.
1797         (TYPE_TRUE_MIN): Likewise.
1798         (TYPE_MAX): Likewise.
1799         (MIN_EXP): Likewise.
1800         (MAX_EXP): Likewise.
1801         (MANT_DIG): Likewise.
1802
1803         (FSTR_MAX): New macro.
1804         (__CONCATX): Likewise.
1805         (QTYPE_STR): Likewise.
1806         (TEST_COND_binary32): Likewise.
1807         (TEST_COND_binary64): Likewise.
1808         (TEST_COND_binary128): Likewise.
1809         (TEST_COND_ibm128): Likewise.
1810         (TEST_COND_intel96): Likewise.
1811         (TEST_COND_m68k96): Likewise.
1812
1813         (TEST_COND_flt_32): Redefine as equivalent format test macro.
1814         (TEST_COND_dbl_64): Likewise.
1815         (TEST_COND_ldbl_96_intel): Likewise.
1816         (TEST_COND_ldbl_96_m68k): Likewise.
1817         (TEST_COND_ldbl_128): Likewise.
1818         (TEST_COND_ldbl_128ibm): Likewise.
1819
1820         (plus_zero): Redefine using LIT macro.
1821         (minus_zero): Likewise.
1822         (plus_infty): Redefine as (INF).
1823         (minux_infty): Redefine as (-INF).
1824         (max_value): Redefine as TYPE_MAX.
1825         (min_value): Redefine as TYPE_MIN.
1826         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
1827
1828         (print_float): Refactor to use snprintf to convert FLOAT values
1829         to string. This brings it closer to dropin replacement of strtof
1830         for the TS 18661 defined types.
1831         (update_stats): Likewise.
1832         (print_complex_function_ulps): Likewise.
1833         (print_max_error): Likewise.
1834         (print_complex_max_error): Likewise.
1835         (check_float_internal): Likewise.
1836
1837         * math/test-float.h (PREFIX): New macro.
1838         (LIT): Likewise.
1839         (TYPE_STR): Likewise.
1840         (FTOSTR): Likewise.
1841
1842         * math/test-double.h (PREFIX): New macro.
1843         (LIT): Likewise.
1844         (TYPE_STR): Likewise.
1845         (FTOSTR): Likewise.
1846
1847         * math/test-ldouble.h (PREFIX): New macro.
1848         (LIT): Likewise.
1849         (TYPE_STR): Likewise.
1850         (FTOSTR): Likewise.
1851
1852 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1853
1854         [BZ #20156]
1855         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
1856         to itself when zero or not finite.
1857         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
1858         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1859         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
1860         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1861
1862 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
1863
1864         [BZ #20153]
1865         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
1866         x * x + x for infinities and NaNs.
1867
1868         [BZ #20151]
1869         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
1870         argument to itself before returning result.
1871         (__ieee754_y0l): Likewise.
1872         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1873         (__ieee754_y1l).
1874
1875         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
1876         (atan_test_data): Likewise.
1877         (ceil_test_data): Likewise.
1878         (cos_test_data): Likewise.
1879         (cosh_test_data): Likewise.
1880         (erf_test_data): Likewise.
1881         (exp2_test_data): Likewise.
1882         (fabs_test_data): Likewise.
1883         (floor_test_data): Likewise.
1884         (ilogb_test_data): Likewise.
1885         (j0_test_data): Likewise.
1886         (j1_test_data): Likewise.
1887         (jn_test_data): Likewise.
1888         (lgamma_test_data): Likewise.
1889         (lrint_test_data): Likewise.
1890         (llrint_test_data): Likewise.
1891         (logb_test_data): Likewise.
1892         (lround_test_data): Likewise.
1893         (llround_test_data): Likewise.
1894         (nearbyint_test_data): Likewise.
1895         (rint_test_data): Likewise.
1896         (round_test_data): Likewise.
1897         (sin_test_data): Likewise.
1898         (sincos_test_data): Likewise.
1899         (sinh_test_data): Likewise.
1900         (sqrt_test_data): Likewise.
1901         (tan_test_data): Likewise.
1902         (tanh_test_data): Likewise.
1903         (tgamma_test_data): Likewise.
1904         (trunc_test_data): Likewise.
1905         (y0_test_data): Likewise.
1906         (y1_test_data): Likewise.
1907         (yn_test_data): Likewise.
1908
1909         * math/libm-test.inc: Update comment about NaN testing.
1910         (TEST_SNAN): New macro.
1911         (snan_value): Likewise.
1912         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
1913         (fpclassify_test_data): Add sNaN tests.
1914         (isfinite_test_data): Likewise.
1915         (isinf_test_data): Likewise.
1916         (isnan_test_data): Likewise.
1917         (isnormal_test_data): Likewise.
1918         (issignaling_test_data): Likewise.
1919         (signbit_test_data): Likewise.
1920         * math/gen-libm-test.pl (%beautify): Add snan_value.
1921         (show_exceptions): Add argument $test_snan.
1922         (parse_args): Handle snan_value as non-finite.  Update call to
1923         show_exceptions.
1924         * math/Makefile (libm-test-no-inline-cflags): Add
1925         -fsignaling-nans.
1926
1927 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1928
1929         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
1930         (CFLAGS-oldsendmsg.c): Add rule.
1931         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1932         Correct recvmsg symbol name.
1933         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
1934         Likewise.
1935
1936 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1937
1938         * sysdeps/unix/sysv/linux/Makefile
1939         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
1940         oldsendmmsg.
1941         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
1942         sendmmsg.
1943         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1944         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1945         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1946         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1948         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1949         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1950         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
1951         Likewise.
1952         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1953         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
1954         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1955         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
1956         iovlen and controllen fields to adjust to POSIX specification.
1957         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
1958
1959         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
1960         and change to correct expected type.
1961         (msghdr.msg_controllen): Likewise.
1962         (cmsghdr.cmsg_len): Likewise.
1963         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
1964         expected POSIX assumption about the size.
1965         (msghdr.msg_controllen): Likewise.
1966         (msghdr.__glibc_reserved1): Likewise.
1967         (msghdr.__glibc_reserved2): Likewise.
1968         (cmsghdr.cmsg_len): Likewise.
1969         (cmsghdr.__glibc_reserved1): Likewise.
1970         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
1971         Add ptw-oldrecvmsg and ptw-oldsendmsg.
1972         (CFLAGS-sendmsg.c): Remove rule.
1973         (CFLAGS-recvmsg.c): Likewise.
1974         (CFLAGS-oldsendmsg.c): Add rule.
1975         (CFLAGS-oldrecvmsg.c): Likewise.
1976         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
1977         recvmsg and sendmsg.
1978         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
1979         Likewise.
1980         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
1981         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
1982         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1983         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
1984         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1985         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1986         Likewise.
1987         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1988         Likewise.
1989         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
1990         Likewise.
1991         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
1992         Likewise.
1993         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1994         Likewise.
1995         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1996         Likewise.
1997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
1998         (GLIBC_2.24): Likewise.
1999         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
2000         Likewise.
2001         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
2002         Likewise.
2003         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
2004         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
2005         Likewise.
2006         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
2007         Likewise.
2008         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
2009         Likewise.
2010         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
2011         (GLIBC_2.24): Likewise.
2012         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
2013         Likewise.
2014         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
2015         Likewise.
2016         * sysdeps/unix/sysv/linux/Makefile
2017         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
2018         (CFLAGS-sendmsg.c): Add rule.
2019         (CFLAGS-recvmsg.c): Likewise.
2020         (CFLAGS-oldsendmsg.c): Likewise.
2021         (CFLAGS-oldrecvmsg.c): Likewise.
2022         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
2023         initialization.
2024         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
2025         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
2026         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
2027         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
2028         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
2029         iovlen and controllen fields to adjust to POSIX specification.
2030         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
2031         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
2032         added recvmsg and sendmsg.
2033         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2034         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2035         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2036         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2037         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2038         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2039         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2040         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2041         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
2042         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2043         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2044         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
2045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2046         Likewise.
2047         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
2048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2049         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2050         Likewise.
2051         Likewise.
2052         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2053         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2054         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2055         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2056         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2057         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2058         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
2059         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
2060         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
2061         Likewise.
2062         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2063         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2064
2065         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
2066         from auto-generation.
2067         (sendmsg): Likewise.
2068         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
2069         (sendmsg): Likewise.
2070         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
2071         (sendmsg): Likewise.
2072         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
2073         (sendmsg): Likewise.
2074         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
2075         (sendmsg): Likewise.
2076         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
2077         (sendmsg): Likewise.
2078         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
2079         Likewise.
2080         (sendmsg): Likewise.
2081         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
2082         (sendmsg): Likewise.
2083         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2084         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2085         Remove.
2086         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2087         Likewise.
2088         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2089         Undefine.
2090         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2091         Likewise.
2092         * sysdeps/unix/sysv/linux/kernel-features.h
2093         (__ASSUME_SENDMSG_SYSCALL): Define.
2094         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2095         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2096         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2097         Remove.
2098         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2099         Likewise.
2100         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2101         Undefine.
2102         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2103         Likewise.
2104         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2105         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2106         Remove.
2107         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2108         Likewise.
2109         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2110         Undefine.
2111         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2112         Likewise.
2113         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2114         (__ASSUME_SENDMSG_SYSCALL): Undefine.
2115         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2116         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2117         (__ASSUME_SENDMSG_SYSCALL): Likewise.
2118         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2119         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2120         (__ASSUME_SENDMSG_SYSCALL): Likewise.
2121         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2122
2123 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2124
2125         * stdlib/gen-tst-strtod-round.c: Add backslash to
2126         compile command in comment.
2127         (printfp): Remove the literal suffix, and define an infinite
2128         value as INF to avoid expansion clash with INFINITY.
2129         (round_str): Remove the literal suffix.
2130         (round_for_all): Likewise, remove the now duplicate ldbl-64
2131         entry, and remove some magic constants.
2132
2133         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
2134         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
2135         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
2136         (_CONCAT): New macro.
2137         (CONCAT): Likewise.
2138         (CHOOSE_ld): Likewise.
2139         (CHOOSE_f): Likewise.
2140         (CHOOSE_d): Likewise.
2141         (FTYPE_MEMBER): Likewise.
2142         (BOOL_MEMBER): Likewise.
2143         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
2144         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
2145         (_XNTRY): Likewise.
2146         (XNTRY): Likewise.
2147         (_ENTRY): Likewise.
2148         (ENTRY): Likewise.
2149         (test_exactness): Generate members via macro.
2150         (test_results): Likewise.
2151         (test): Update members.
2152         (TEST): Redefine using new macros.
2153         (INF): New macro.
2154         (fetestmodes): New structure.
2155         (do_test): Refactor to be type generic.
2156         (test_in_one_mode): Refactor duplicate code into
2157         (GEN_ONE_TEST): New macro.
2158
2159         * stdlib/tst-strtod-round-data.h: Regenerate.
2160
2161         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
2162         Extend to pass additional arbitrary parameters to
2163         generators.
2164
2165 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
2166
2167         [BZ #15479]
2168         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
2169         floating-point state after first floating-point operation on
2170         input.  Restore full floating-point state instead of just rounding
2171         mode.
2172         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
2173         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
2174         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
2175         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
2176         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
2177
2178         [BZ #15479]
2179         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
2180         floating-point state after first floating-point operation on
2181         input.  Restore full floating-point state instead of just rounding
2182         mode.
2183         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
2184         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
2185         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
2186         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
2187         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
2188
2189 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2190
2191         [BZ #19727]
2192         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
2193         valid high surrogate.
2194         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
2195         of an utf16 surrogate.
2196         * iconv/gconv_simple.c (BODY): Likewise.
2197         * iconvdata/bug-iconv12.c: New file.
2198         * iconvdata/Makefile (tests): Add bug-iconv12.
2199
2200 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2201
2202         [BZ #19726]
2203         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
2204         outptrp in case of an illegal input.
2205         * iconv/tst-iconv6.c: New file.
2206         * iconv/Makefile (tests): Add tst-iconv6.
2207
2208 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2209
2210         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
2211         an error in case of a value in range of an utf16 low surrogate.
2212
2213 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2214
2215         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
2216         an error in case of a value in range of an utf16 low surrogate.
2217
2218 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2219
2220         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
2221         Move to ...
2222         * sysdeps/s390/Makefile: ... here.
2223         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
2224         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
2225         (BRANCH_ON_COUNT): New define.
2226         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
2227         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
2228         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
2229         run on s390-32, too.
2230         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
2231         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
2232         run on s390-32, too.
2233         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
2234         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
2235         run on s390-32, too.
2236
2237 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2238
2239         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
2240         etf3eh or new vector loop-variant.
2241
2242 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2243
2244         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
2245         etf3eh or new vector loop-variant.
2246
2247 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2248
2249         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
2250         or new vector loop-variant.
2251
2252 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2253
2254         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
2255         Rename to TR_LOOP and usage of tr instead of troo instruction.
2256
2257 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2258
2259         * sysdeps/s390/multiarch/gconv_simple.c: New File.
2260         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
2261
2262 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2263
2264         * sysdeps/s390/multiarch/8bit-generic.c: New File.
2265         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
2266         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
2267         New override define.
2268         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
2269
2270 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2271
2272         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
2273         * sysdeps/s390/configure.ac: Add test for S390 vector register
2274         support in gcc.
2275         * sysdeps/s390/configure: Regenerated.
2276
2277 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2278
2279         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
2280         Install file from $(objpfx)gconv-modules.
2281         ($(objpfx)gconv-modules): Concatenate architecture specific file
2282         in variable sysdeps-gconv-modules and gconv-modules in src dir.
2283         * sysdeps/s390/gconv-modules: New file.
2284         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
2285         Deleted.
2286         ($(objpfx)gconv-modules-s390): Deleted.
2287         (sysdeps-gconv-modules): New variable.
2288
2289 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
2290
2291         [BZ #15479]
2292         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
2293         of immediate operand to rounding instruction.
2294         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
2295         Likewise.
2296         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
2297         Likewise.
2298         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
2299         Likewise.
2300
2301 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2302
2303         * math/libm-test.inc (MIN_EXP): Directly define as
2304         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
2305
2306 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2307
2308         * math/libm-test.inc (MANT_DIG): Directly define as
2309         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
2310
2311 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2312
2313         * stdlib/gen-tst-strtod-round.c (main):
2314           Change usage to more closely match the generated
2315           output.  Add usage and compilation instructions.
2316           (string_to_fp): Add and use FILE* parameter as
2317           output target.
2318           (print_fp): Likewise.
2319           (round_str): Likewise.
2320           (round_for_all): Likewise.
2321         * stdlib/tst-strtod-round.c (tests): Move into
2322         * stdlib/tst-strtod-round-data.h: New file.
2323
2324 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
2325
2326         [BZ #15479]
2327         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
2328         (__round): Do not force "inexact" exception.
2329         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
2330         variable.
2331         (__round): Do not force "inexact" exception.
2332         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
2333         (__roundf): Do not force "inexact" exception.
2334         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
2335         (__roundl): Do not force "inexact" exception.
2336         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
2337         (__roundl): Do not force "inexact" exception.
2338         * math/libm-test.inc (round_test_data): Do not allow spurious
2339         "inexact" exceptions.
2340
2341         [BZ #15479]
2342         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
2343         exception in comment.
2344         (huge): Remove variable.
2345         (__floor): Do not force "inexact" exception.
2346         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
2347         "inexact" exception in comment.
2348         (huge): Remove variable.
2349         (__floor): Do not force "inexact" exception.
2350         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
2351         exception in comment.
2352         (huge): Remove variable.
2353         (__floorf): Do not force "inexact" exception.
2354         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
2355         exception in comment.
2356         (huge): Remove variable.
2357         (__floorl): Do not force "inexact" exception.
2358
2359         [BZ #15479]
2360         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
2361         exception in comment.
2362         (huge): Remove variable.
2363         (__ceil): Do not force "inexact" exception.
2364         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
2365         "inexact" exception in comment.
2366         (huge): Remove variable.
2367         (__ceil): Do not force "inexact" exception.
2368         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
2369         (__ceilf): Do not force "inexact" exception.
2370         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
2371         exception in comment.
2372         (huge): Remove variable.
2373         (__ceill): Do not force "inexact" exception.
2374
2375 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2376
2377         * config.h.in (BIND_NOW): New.
2378         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
2379         * configure: Regenerated.
2380         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
2381         indirect branch via the GOT slot.
2382
2383 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2384
2385         [BZ #19765]
2386         * sysdeps/s390/mempcpy.S: New File.
2387         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
2388         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
2389         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2390         Add mempcpy variants.
2391         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
2392         (memcpy): Adjust to be usable from mempcpy entry point.
2393         (__memcpy_mvcle): Likewise.
2394         * sysdeps/s390/s390-64/memcpy.S: Likewise.
2395         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
2396         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
2397         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
2398         (__memcpy_z10): Likewise.
2399         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2400
2401 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2402
2403         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
2404         Remove __GI_ symbol.
2405         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
2406         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
2407         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
2408         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2409         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
2410         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
2411
2412 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2413
2414         * sysdeps/s390/s390-64/memcpy.S (memcpy):
2415         Use cghi instead of chi to compare 64bit value.
2416
2417 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2418
2419         * sysdeps/s390/s390-32/memcpy.S (memcpy):
2420         Jump to 1MB check before executing mvc-loop.
2421
2422 2016-05-24  Florian Weimer  <fweimer@redhat.com>
2423
2424         [BZ #6527]
2425         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
2426         unconditionally.
2427         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
2428
2429 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2430
2431         * stdlib/tst-strtod6.c (do_test): Use new type generic
2432         invocation of the test function.
2433         (test): Refactor into ...
2434         (TEST_STRTOD): New macro base function.
2435
2436 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2437
2438         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
2439         (TEST_STRTOD): New macro.
2440         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
2441
2442 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2443
2444         * stdlib/tst-strtod6.c (do_test): Use new type generic
2445         invocation of the test function.
2446         (test): Refactor into ...
2447         (TEST_STRTOD): New macro base function.
2448
2449 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2450
2451         CVE-2016-4429
2452         [BZ #20112]
2453         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
2454         payload.
2455
2456 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2457
2458         [BZ #20111]
2459         * bits/sockaddr.h (_SS_SIZE): Define.
2460         * bits/socket.h (_SS_SIZE): Remove.
2461         (_SS_PADSIZE): Adjust to account for all padding.
2462         (struct sockaddr_storage): Update comment.  Avoid implicit
2463         padding.
2464         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
2465         (_SS_PADSIZE): Adjust to account for all padding.
2466         (struct sockaddr_storage): Update comment.  Avoid implicit
2467         padding.
2468         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
2469         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
2470         (_SS_PADSIZE): Adjust to account for all padding.
2471         (struct sockaddr_storage): Update comment.  Avoid implicit
2472         padding.
2473         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
2474         __SS_SIZE is 126 in this version.
2475         * inet/tst-sockaddr.c: New file.
2476         * inet/Makefile (tests): Add tst-sockaddr.c
2477         (tst-sockaddr.c): Compile with non-strict aliasing.
2478
2479 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
2480
2481         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
2482         [XPG3 || XPG4].
2483         (NL_ARGMAX): Also expect for [XPG3].
2484         (NL_LANGMAX): Likewise.
2485         (NL_MSGMAX): Likewise.
2486         (NL_NMAX): Likewise.
2487         (NL_SETMAX): Likewise.
2488         (NL_TEXTMAX): Likewise.
2489         (NZERO): Likewise.
2490         (TMP_MAX): Likewise.
2491         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
2492         variable.
2493
2494         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
2495         (PF_MAX): Update value.
2496         (AF_KCM): New macro.
2497         (SOL_NETBEUI): Likewise.
2498         (SOL_LLC): Likewise.
2499         (SOL_DCCP): Likewise.
2500         (SOL_NETLINK): Likewise.
2501         (SOL_TIPC): Likewise.
2502         (SOL_RXRPC): Likewise.
2503         (SOL_PPPOL2TP): Likewise.
2504         (SOL_BLUETOOTH): Likewise.
2505         (SOL_PNPIPE): Likewise.
2506         (SOL_RDS): Likewise.
2507         (SOL_IUCV): Likewise.
2508         (SOL_CAIF): Likewise.
2509         (SOL_ALG): Likewise.
2510         (SOL_NFC): Likewise.
2511         (SOL_KCM): Likewise.
2512         (MSG_BATCH): New enum value and macro.
2513
2514 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2515
2516         [BZ #18185]
2517         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
2518         sharing L2 cache to 2 for Knights Landing.
2519
2520 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
2521
2522         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
2523         (FTW_DP): Do not expect for [XPG3 || XPG4].
2524         (FTW_SL): Do not expect for [XPG3].
2525         (FTW_SLN): Likewise.
2526         (FTW_PHYS): Likewise.
2527         (FTW_MOUNT): Likewise.
2528         (FTW_DEPTH): Likewise.
2529         (FTW_CHDIR): Likewise.
2530         (nftw): Likewise.
2531         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
2532         variable.
2533
2534 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2535
2536         * manual/errno.texi: Fix various typos & grammar errors.
2537
2538 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2539
2540         * manual/intro.texi: Fix duplicated typo.
2541
2542 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2543
2544         [BZ #13304]
2545         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
2546         <float.h>, <math_private.h> and <stdlib.h>.
2547         (add_split): New function.
2548         (mul_split): Likewise.
2549         (ext_val): New typedef.
2550         (store_ext_val): New function.
2551         (mul_ext_val): New function.
2552         (compare): New function.
2553         (add_split_ext): New function.
2554         (__fmal): After checking for Inf, NaN and zero, compute result as
2555         an exact sum of scaled double values in round-to-nearest before
2556         adding those up and adjusting for other rounding modes.
2557         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
2558         tests of fma.
2559         * math/auto-libm-test-out: Regenerated.
2560
2561 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2562
2563         [BZ #20119]
2564         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
2565         processor level type mask for CPUID with EAX == 11.
2566
2567 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2568
2569         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
2570         logical threads if the HTT bit is 0.
2571         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
2572         (index_cpu_HTT): Likewise.
2573         (reg_HTT): Likewise.
2574
2575 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2576
2577         [BZ #20115]
2578         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
2579         Remove alignments on jump targets.
2580
2581 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2582
2583         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
2584         (getpwent): Likewise.
2585         (setpwent): Likewise.
2586         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
2587         variable.
2588
2589         * conform/data/search.h-data (insque): Do not expect for [XPG3].
2590         (remque): Likewise.
2591         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
2592         variable.
2593
2594 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2595
2596         * math/libm-test.inc: Update comment not to refer to signs of NaNs
2597         not being tested.
2598
2599 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2600
2601         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2602         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
2603         call.
2604         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2605         (__condvar_cleanup1): Likewise.
2606
2607 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2608
2609         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
2610         New
2611         (__pthread_unwind): Renamed to ...
2612         (PTHREAD_UNWIND): This.
2613         (__pthread_enable_asynccancel): Replace
2614         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
2615
2616 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2617
2618         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
2619         (CLONE_NEWCGROUP): New macro.
2620
2621         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
2622         (Q_GETNEXTQUOTA): New macro.
2623
2624 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2625
2626         [BZ #19907]
2627         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
2628         buffer updated by the previous run.
2629         * string/test-memcpy.c (do_one_test): Likewise.
2630         * benchtests/bench-memmove.c (do_one_test): Add a comment.
2631         * string/test-memmove.c (do_one_test): Likewise.
2632
2633 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
2634
2635         [BZ #20094]
2636         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
2637         not [__USE_XOPEN].
2638         (unlockpt): Likewise.
2639         (ptsname): Likewise.
2640         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
2641         variable.
2642
2643         [BZ #20076]
2644         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
2645         instead of [__USE_UNIX98].
2646         (S_ISSOCK): Likewise.
2647         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
2648         variable.
2649
2650         [BZ #20074]
2651         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
2652         [__USE_POSIX].
2653         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
2654         variable.
2655
2656         [BZ #20051]
2657         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
2658         (ttyslot): Do not declare.
2659         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
2660         (ttyslot): New prototype.
2661         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
2662         variable.
2663         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
2664
2665 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2666
2667         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
2668
2669 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2670
2671         Fix race condition in tst-mallocfork2, use fewer resources.
2672         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
2673         to current process group.
2674         (signal_sender): Yield in the non-sleeping case.
2675
2676 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
2677
2678         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
2679         (ecvt): Likewise.
2680         (fcvt): Likewise.
2681         (gcvt): Likewise.
2682         (getsubopt): Likewise.
2683         (grantpt): Likewise.
2684         (initstate): Likewise.
2685         (l64a): Likewise.
2686         (mktemp): Likewise.
2687         (mkstemp): Likewise.
2688         (ptsname): Likewise.
2689         (random): Likewise.
2690         (realpath): Likewise.
2691         (setstate): Likewise.
2692         (srandom): Likewise.
2693         (ttyslot): Likewise.
2694         (unlockpt): Likewise.
2695         (valloc): Likewise.
2696
2697         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
2698         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
2699         variable.
2700
2701 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2702
2703         [BZ #20072]
2704         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
2705         init_cpu_features only if SHARED is defined.
2706         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
2707
2708 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2709
2710         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
2711         non-inclusive caches on Intel processors.
2712
2713 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2714
2715         * malloc/malloc.c (dumped_main_arena_start)
2716         (dumped_main_arena_end): New variables.
2717         (DUMPED_MAIN_ARENA_CHUNK): New macro.
2718         (do_check_chunk): Skip dumped fake mmapped chunks.
2719         (munmap_chunk): Likewise.
2720         (__libc_free): Do not adjust statistics for fake mmapped chunks.
2721         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
2722         mmapped chunks.
2723         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
2724         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
2725         and dumped_main_arena_end to cover the dumped heap.
2726
2727 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
2728
2729         * conform/data/time.h-data (getdate_err): Do not expect for
2730         [XPG3].
2731         (getdate): Likewise.
2732         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
2733         variable.
2734
2735         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
2736         (F_ULOCK): Likewise.
2737         (F_TEST): Likewise.
2738         (F_TLOCK): Likewise.
2739         (useconds_t): Likewise.
2740         (intptr_t): Do not expect for [XPG3] or [XPG4].
2741         (brk): Do not expect for [XPG3]
2742         (fchown): Likewise.
2743         (fchdir): Likewise.
2744         (ftruncate): Likewise.
2745         (getdtablesize): Likewise.
2746         (gethostid): Likewise.
2747         (getpagesize): Likewise.
2748         (getpgid): Likewise.
2749         (getsid): Likewise.
2750         (getwd): Likewise.
2751         (lchown): Likewise.
2752         (lockf): Likewise.
2753         (readlink): Likewise.
2754         (sbrk): Likewise.
2755         (setpgrp): Likewise.
2756         (setregid): Likewise.
2757         (setreuid): Likewise.
2758         (symlink): Likewise.
2759         (sync): Likewise.
2760         (truncate): Likewise.
2761         (ualarm): Likewise.
2762         (usleep): Likewise.
2763         (vfork): Likewise.
2764         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
2765         variable.
2766
2767         [BZ #20054]
2768         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
2769         not [__USE_UNIX98].
2770         * conform/data/unistd.h-data (gethostname): Do not expect for
2771         [XPG3].
2772
2773         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
2774         [!POSIX] (S_IFBLK): Likewise.
2775         [!POSIX] (S_IFCHR): Likewise.
2776         [!POSIX] (S_IFIFO): Likewise.
2777         [!POSIX] (S_IFREG): Likewise.
2778         [!POSIX] (S_IFDIR): Likewise.
2779         [!POSIX] (S_IFLNK): Likewise.
2780         [!POSIX] (S_IFSOCK): Likewise.
2781         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
2782         variable.
2783         (test-xfail-XPG4/fcntl.h/conform): Likewise.
2784
2785 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
2786
2787         * sysdeps/aarch64/memset.S (__memset):
2788         Rewrite of optimized memset.
2789
2790 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2791
2792         [BZ #19703]
2793         Partially async-signal-safe fork for single-threaded processes.
2794         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
2795         variable.  Do not acquire and reset/release malloc and libio locks
2796         in single-threaded processes.
2797         * malloc/tst-mallocfork2.c: New file.
2798         * malloc/Makefile (tests): Add it.
2799
2800 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2801
2802         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
2803         argument.  Use scratch buffer instead of extend_alloca.
2804         (gethosts): Use scratch buffer instead of extend_alloca.
2805         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
2806         extend_alloca.
2807         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
2808
2809 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
2810
2811         [BZ #20055]
2812         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
2813         instead of [__USE_UNIX98].
2814         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
2815         [__USE_UNIX98].
2816         * conform/data/termios.h-data (tcgetsid): Do not expect for
2817         [XPG3].
2818         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
2819         variable.
2820         (test-xfail-XPG4/termios.h/conform): Likewise.
2821
2822 2016-05-11  Florian Weimer  <fweimer@redhat.com>
2823
2824         Do not use mcheck in localedef.
2825         * locale/programs/localedef.c (turn_on_mcheck)
2826         (__malloc_initialize_hook): Remove.
2827
2828 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2829
2830         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
2831         * sysdeps/s390/s390-64/Makefile: Likewise.
2832
2833 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2834
2835         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
2836         Remove ifunc-defines.sym.
2837         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
2838         Likewise.
2839         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
2840         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
2841         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
2842         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
2843         rtld-global-offsets.sym.
2844         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
2845         * sysdeps/x86/cpu-features-offsets.sym: This.
2846         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
2847         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
2848
2849 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
2850
2851         [BZ #20073]
2852         * io/sys/stat.h (fchmod): Declare for
2853         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
2854         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
2855         variable.
2856
2857         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
2858         [XPG3] (S_IFSOCK): Likewise.
2859         [XPG3] (S_ISVTX): Likewise.
2860         [XPG3] (S_ISLNK): Likewise.
2861         [XPG3] (S_ISSOCK): Likewise.
2862         [XPG3] (fchmod): Likewise.
2863         [XPG3] (lstat): Likewise.
2864         [XPG3] (mknod): Likewise.
2865
2866         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
2867         [XPG3].  Expect type long and XFAIL for [XPG4].
2868         (st_blocks): Likewise.
2869
2870         [BZ #20044]
2871         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
2872         (pthread_atfork): New prototype.
2873         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
2874         variable.
2875
2876         [BZ #20043]
2877         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
2878         prototype.
2879
2880 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2881
2882         [BZ #20017]
2883         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
2884         gmtime.
2885
2886 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2887
2888         [BZ #19994]
2889         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
2890         flag in _res.options.
2891
2892 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
2893
2894         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
2895         [XPG3 || XPG4].
2896         (blksize_t): Likewise.
2897         (clockid_t): Likewise.
2898         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
2899         variable.
2900         (test-xfail-XPG4/sys/types.h/conform): Likewise.
2901
2902 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
2903
2904         * sysdeps/unix/sysv/linux/s390/init-first.c:
2905         Add VDSO_SYMBOL(getcpu).
2906         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
2907         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
2908         Add VDSO_SYMBOL(getcpu).
2909         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2910         New define HAVE_GETCPU_VSYSCALL.
2911         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2912
2913 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2914
2915         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
2916         instead of <sysdeps/x86_64/cacheinfo.c>.
2917         * sysdeps/x86_64/cacheinfo.c: Moved to ...
2918         * sysdeps/x86/cacheinfo.c: Here.
2919
2920 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2921
2922         * malloc/malloc-internal.h: Adjust header file guard.
2923
2924 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2925
2926         [BZ #19787]
2927         * inet/getnameinfo.c (check_sprintf_result): New function.
2928         (CHECKED_SNPRINTF): New macro.
2929         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
2930         to the host buffer.
2931         (gni_host_local): Use checked_copy to copy the host name.
2932         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
2933         (gni_serv_local): Use checked_copy to copy the service name.
2934         (getnameinfo): Remove unnecessary truncation of result buffers.
2935
2936 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2937
2938         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
2939         in case of inet_ntop failure.
2940
2941 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2942
2943         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
2944         avoid long lines.
2945         (gni_host_inet_numeric): Likewise.  Reduce scope of local
2946         variables.
2947         (gni_host_inet, gni_host_local): Add comment.
2948         (gni_host): Add comment.  Use temporary to avoid long lines.
2949
2950 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2951
2952         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
2953         registers specifiers where general purpose registers specifiers should
2954         have been used.
2955
2956 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2957
2958         [BZ #19779]
2959         CVE-2016-1234
2960         Avoid copying names of directory entries.
2961         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
2962         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
2963         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
2964         (struct readdir_result): New type.
2965         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
2966         (GL_READDIR): New macros.
2967         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
2968         (convert_dirent, convert_dirent64): New functions.
2969         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
2970         convert_dirent64.  Adjust references to the readdir result.
2971         * sysdeps/unix/sysv/linux/i386/glob64.c:
2972         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
2973         * posix/bug-glob2.c (LONG_NAME): Define.
2974         (filesystem): Add LONG_NAME.
2975         (my_DIR): Increase the size of room_for_dirent.
2976
2977 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
2978
2979         [BZ #20041]
2980         * misc/sys/select.h (__need_timespec): Only define if
2981         [__USE_XOPEN2K].
2982         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
2983         variable.
2984         (test-xfail-XPG4/utmpx.h/conform): Likewise.
2985         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
2986         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
2987
2988 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2989             Segher Boessenkool  <segher@gcc.gnu.org>
2990
2991         [BZ #20004]
2992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
2993         (__novec_swapcontext): Add missing load.
2994
2995 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
2996
2997         [BZ #20023]
2998         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
2999         <time.h>.
3000         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
3001         variable.
3002         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
3003
3004 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3005
3006         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
3007         flags CLONE_VM compare.
3008
3009 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3010
3011         [BZ #20031]
3012         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
3013         completely empty.
3014
3015 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3016
3017         [BZ #19573]
3018         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
3019         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
3020         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
3021         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
3022         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
3023         (hesiod_free_list): Mark as hidden.
3024         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
3025         res_set, res_get.
3026         * hesiod/hesiod.c: Remove unnecessary forward declarations.
3027         (init, __hesiod_res_get, __hesiod_res_set): Remove.
3028         (hesiod_init): Remove obsolete res_ninit call.
3029         (hesiod_end): Do not free resolver state.  Do not invoke callback.
3030         (hesiod_bind): Do not call init.
3031         (get_txt_records): Use res_mkquery, res_send instead of
3032         res_nmkquery, res_nsend.
3033         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
3034         instead of _nss_hesiod_init.
3035         (_nss_hesiod_initgroups_dyn): Likewise.
3036         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
3037         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
3038         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
3039
3040 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3041
3042         * hesiod/hesiod_p.h (DEF_RHS): Remove.
3043         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
3044
3045 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3046
3047         * hesiod/hesiod.h: Remove RCS keyword.
3048         * hesiod/hesiod_p.h: Likewise.
3049
3050         * hesiod/hesiod.c: Likewise.
3051
3052 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
3053
3054         [BZ #12450]
3055         * locale/iso-639.def: Add Samogitian/sgs.
3056
3057 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
3058
3059         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
3060
3061         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
3062
3063 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
3064             Carlos O'Donell  <carlos@redhat.com>
3065
3066         [BZ #19072]
3067         * grp/Makefile (headers): Add grp-merge.h
3068         (routines): Add grp-merge.
3069         * grp/getgrgid_r.c: Include grp-merge.h.
3070         (DEEPCOPY_FN): Define.
3071         (MERGE_FN): Define.
3072         * grp/getgrname_r.c: Include grp-merge.h.
3073         (DEEPCOPY_FN): Define.
3074         (MERGE_FN): Define.
3075         * grp/grp-merge.c: New file.
3076         * grp/grp-merge.h: New file.
3077         * include/grp-merge.h: New file.
3078         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
3079         __copy_grp@GLIBC_PRIVATE.
3080         * manual/nss.texi (Actions in the NSS configuration): Describe
3081         return, continue, and merge.
3082         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
3083         (DEEPCOPY_FN): Define.
3084         (MERGE_FN): Define.
3085         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
3086         (DEEPCOPY_FN): Define.
3087         (MERGE_FN): Define.
3088         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
3089         [!MERGE_FN]: Define __merge_einval.
3090         (CHECK_MERGE): Define.
3091         (REENTRANT_NAME): Process merge if do_merge is true.
3092         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
3093         (__nss_getent_r): Likewise.
3094         * nss/nsswitch.c (nss_parse_service_list): Likewise.
3095         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
3096
3097 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3098
3099         [BZ #20012]
3100         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
3101         length to calculate the buffer to read.
3102         (fmemopen_write): Set the buffer position based on bytes written.
3103         (fmemopen_seek): Return EINVAL for invalid whence modes.
3104
3105         [BZ #19957]
3106         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
3107         tst-getpid2.
3108         (test): Add tst-clone2.
3109         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
3110         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
3111         pid/tid fields for CLONE_VM.
3112         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
3113         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
3114         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
3115         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
3116         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
3117         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
3118         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
3119         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
3120         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
3121         Likewise.
3122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
3123         Likewise.
3124         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
3125         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
3126         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
3127         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
3128         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
3129         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
3130         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
3131         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
3132
3133 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3134
3135         [BZ #19642]
3136         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
3137         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
3138         (gni_serv_local, gni_serv): New functions extracted from
3139         getnameinfo.
3140         (getnameinfo): Call gni_host and gni_serv to perform the
3141         processing.  Always free scratch buffer.
3142
3143 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3144
3145         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
3146         remaining bytes in the dest string, with zeros.
3147
3148 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3149
3150         [BZ #20010]
3151         CVE-2016-3706
3152         * sysdeps/posix/getaddrinfo.c
3153         (convert_hostent_to_gaih_addrtuple): New function.
3154         (gethosts): Call convert_hostent_to_gaih_addrtuple.
3155         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
3156         AF_INET data.
3157
3158 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3159
3160         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
3161         callback function gl_readdir.
3162         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
3163         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
3164         (glob_in_dir): Remove len.  Use strdup instead of malloc and
3165         memcpy to copy the name.
3166         * manual/pattern.texi (Calling Glob): Document requirements for
3167         implementations of the gl_readdir callback function.
3168         * manual/examples/mkdirent.c: New example.
3169         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
3170         per the manual guidance.
3171         * posix/tst-gnuglob.c (my_readdir): Likewise.
3172
3173 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
3174
3175         [BZ #20014]
3176         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
3177         not [__USE_POSIX].
3178         (getchar_unlocked): Likewise.
3179         (putc_unlocked): Likewise.
3180         (putchar_unlocked): Likewise.
3181         (flockfile): Likewise.
3182         (ftrylockfile): Likewise.
3183         (funlockfile): Likewise.
3184         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
3185         variable.
3186         (test-xfail-XPG4/stdio.h/conform): Likewise.
3187
3188         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
3189         Expect constant.
3190         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
3191         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
3192         variable.
3193         (test-xfail-XPG4/langinfo.h/conform): Likewise.
3194         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
3195
3196         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
3197         [__USE_LARGEFILE64] (off64_t): Likewise.
3198         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
3199         variable.
3200
3201 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3202
3203         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
3204
3205 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3206
3207         * resolv/inet_addr.c: Reindent preprocessor conditionals.
3208         * resolv/res_init.c: Likewise.
3209         * resolv/res_mkquery.c: Likewise.
3210
3211 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3212
3213         * resolv/res_init.c (isascii): Do not define.  Use definition in
3214         <ctype.h>.
3215         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
3216         (LOG_AUTH): Remove.
3217         (SPRINTF): Remove, adjust caller.
3218         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
3219
3220 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3221
3222         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
3223         SUNSECURITY conditional.
3224         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
3225
3226 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3227
3228         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
3229         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
3230         Remove BSD-related preprocessor conditionals.
3231         * conf/portability.h: Remove.
3232
3233 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3234
3235         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
3236         * resolv/res_data.c: Likewise.
3237
3238 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3239
3240         * resolv/res_comp.c: Remove code conditional on __ultrix__.
3241         * resolv/res_data.c: Remove code conditional on ultrix.
3242
3243 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3244
3245         * resolv/res_init.c (RFC1535): Do not define.  Remove
3246         RFC1535 preprocessor conditionals.
3247         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
3248         because there configuration options which make the resolver
3249         behavior different.
3250
3251 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3252
3253         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
3254         RESOLVSORT preprocessor conditionals.
3255         * resolv/nss_dns/dns-host.c: Likewise.
3256         * resolv/res_init.c: Likewise.
3257
3258 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3259
3260         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
3261         is never defined.
3262
3263 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3264
3265         * inet/inet_lnaof.c: Remove SCSS keyword.
3266         * inet/inet_mkadr.c: Likewise.
3267         * inet/inet_net.c: Likewise.
3268         * inet/inet_netof.c: Likewise.
3269         * inet/rcmd.c: Likewise.
3270         * inet/rexec.c: Likewise.
3271         * inet/ruserpass.c: Likewise.
3272
3273 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3274
3275         * resolv/inet_addr.c: Remove _LIBC conditionals.
3276         * resolv/res_data.c: Likewise.
3277         * resolv/res_init.c: Likewise.
3278         * resolv/res_mkquery.c: Likewise.
3279         * resolv/res_libc.c: Update comment.
3280         * resolv/README: Update.
3281
3282 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3283
3284         * resolv/gethnamaddr.c: Remove SCSS keyword.
3285         * resolv/herror.c: Likewise.
3286         * resolv/inet_addr.c: Likewise.
3287         * resolv/inet_net_ntop.c: Likewise.
3288         * resolv/inet_net_pton.c: Likewise.
3289         * resolv/inet_neta.c: Likewise.
3290         * resolv/inet_ntop.c: Likewise.
3291         * resolv/inet_pton.c: Likewise.
3292         * resolv/ns_date.c: Remove RCS keyword.
3293         * resolv/ns_name.c: Likewise.
3294         * resolv/ns_netint.c: Likewise.
3295         * resolv/ns_parse.c: Likewise.
3296         * resolv/ns_print.c: Likewise.
3297         * resolv/ns_samedomain.c: Likewise.
3298         * resolv/ns_ttl.c: Likewise.
3299         * resolv/nsap_addr.c: Likewise.
3300         * resolv/res_comp.c: Remove SCSS and RCS keyword.
3301         * resolv/res_data.c: Remove RCS keyword.
3302         * resolv/res_debug.c: Remove SCSS and RCS keyword.
3303         * resolv/res_init.c: Likewise.
3304         * resolv/res_mkquery.c: Likewise.
3305         * resolv/res_query.c: Likewise.
3306         * resolv/res_send.c: Likewise.
3307
3308 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3309
3310         * conform/data/stdio.h-data (fdopen): Expect also for
3311         [XPG3 || XPG4].
3312
3313         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
3314         (fseeko): Likewise.
3315         (ftello): Likewise.
3316         (ftrylockfile): Likewise.
3317         (funlockfile): Likewise.
3318         (getc_unlocked): Likewise.
3319         (getchar_unlocked): Likewise.
3320         (putc_unlocked): Likewise.
3321         (putchar_unlocked): Likewise.
3322
3323 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3324
3325         [BZ #19868]
3326         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
3327         DNS packet syntax checks (which were not needed before).  Skip
3328         over non-PTR records.
3329
3330 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3331
3332         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
3333         definition.  Include <stddef.h> instead.
3334
3335 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3336
3337         [BZ #19831]
3338         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
3339         function.
3340         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
3341         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
3342
3343 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3344
3345         [BZ #19862]
3346         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
3347         (getanswer_r): Do not call syslog.
3348         (gaih_getanswer_slice): Likewise.
3349         * resolv/gethnamaddr.c (AskedForGot): Remove.
3350         (getanswer): Do not call syslog.
3351         (gethostbyaddr): Likewise.
3352
3353 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3354
3355         * conform/data/signal.h-data (union sigval): Expect also if
3356         [XOPEN2K].
3357         (struct sigevent): Likewise.
3358         (SIGEV_NONE): Likewise.
3359         (SIGEV_SIGNAL): Likewise.
3360         (SIGEV_THREAD): Likewise.
3361         (SIGRTMIN): Likewise.
3362         (SIGRTMAX): Likewise.
3363         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
3364         variable.
3365         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
3366
3367 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3368
3369         [BZ #19830]
3370         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
3371         (gaih_getanswer_slice): Likewise.
3372         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
3373         Also check for availability of RR metadata.
3374
3375 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3376
3377         [BZ #19825]
3378         * resolv/res_send.c (send_vc): Remove early *resplen2
3379         initialization.  Set *resplen2 on socket error.  Call
3380         close_and_return_error for other errors.
3381
3382 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
3383
3384         * sysdeps/unix/sysv/linux/netiucv/iucv.h
3385         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
3386         (SCM_IUCV_TRGCLS): New define.
3387
3388 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3389
3390         [BZ #20005]
3391         * libio/fmemopen.c (fmemopen_write): Update internal position after
3392         write.
3393         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
3394         * stdio-common/tst-fmemopen4.c: New file..
3395
3396 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
3397
3398         [BZ #19996]
3399         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
3400         not [__USE_XOPEN2K].
3401         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
3402         variable.
3403
3404         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
3405         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
3406         variable.
3407
3408         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
3409         [__USE_XOPEN2K8].
3410         [__USE_LARGEFILE64] (off64_t): Likewise.
3411         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
3412         variable.
3413
3414 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
3415
3416         [BZ #19989]
3417         * libio/stdio.h (cuserid): Do not declare if
3418         [__USE_XOPEN2K && !__USE_GNU].
3419         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
3420         variable.
3421
3422 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3423
3424         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3425         (sysdep_routines): Add P8 and PPC64 strcspn targets.
3426         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3427         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
3428         ifunc'ed strcspn.
3429         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3430         [EALIGN]: Removed.
3431         [END]: Likewise
3432         [STRSPN]: Define instead of the above to control symbol name.
3433         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
3434         New file.
3435         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
3436         Likewise.
3437         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
3438         Likewise.
3439         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
3440         Likewise.
3441         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3442         [INITIAL_MASK]: New macro.
3443         [STRCSPN]: Likewise.
3444         [UPDATE_MASK]: Likewise.
3445         [USE_AS_STRCSPN]: Lisewise.
3446
3447 2016-04-25  Florian Weimer  <fweimer@redhat.com>
3448
3449         [BZ #19931]
3450         * stdio-common/tst-vfprintf-width-prec.c: New file.
3451         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
3452         (tests-special): Add tst-vfprintf-width-prec-mem.out.
3453         (generated): Add mtrace-related files.
3454         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
3455         (tst-%-mem.out): New pattern rule, replaces
3456         tst-printf-bz18872-mem.out.
3457         * stdio-common/vfprintf.c (vfprintf): When handling a precision
3458         specifier, deallocate any previously allocated work buffer.
3459
3460 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3461
3462         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
3463         Add nop before __startcontext, add explaining comments.
3464
3465 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
3466
3467         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
3468         any more. Notably since IPV6_PKTINFO has been reintroduced with a
3469         completely different API.
3470
3471         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
3472         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
3473         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
3474         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
3475         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
3476         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
3477         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
3478         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
3479         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
3480         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
3481
3482 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3483
3484         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
3485
3486 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
3487
3488         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
3489         when it is the default of 0.
3490
3491 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3492
3493         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
3494         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3495         (sysdep_routines): Add new strcasestr targets.
3496         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3497         (__libc_ifunc_impl_list): Likewise.
3498         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
3499         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
3500         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
3501         * sysdeps/powerpc/powerpc64/power8/Makefile:
3502         New file to add strcasestr-ppc64 to sysdep_routines.
3503         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
3504         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
3505
3506 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
3507
3508         * benchtests/Makefile (wcsmbs-benchset): Include only for
3509         native builds and runs.
3510         (LOCALES): Likewise.
3511         (bench-build): Build timing-type here instead of the bench
3512         target.  Generate locale only for native builds.
3513         * benchtests/README: Add note for cross-building.
3514
3515         * benchtests/Makefile (bench-clean): Clean up extra-objs.
3516
3517         * benchtests/README: Update README to include instructions on
3518         using bench-build.
3519
3520         * Makefile.in (bench-build): New target.
3521         * Rules (PHONY): Add bench-build target.
3522         * benchtests/Makefile (bench): Depend on bench-build.
3523         (bench-build): New target.
3524
3525 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3526
3527         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
3528         profil_reply_port.
3529         (profile_waiter): Do not initialize profil_reply_port.
3530         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
3531         frequency instead of tick length in us.
3532
3533 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
3534
3535         [BZ #18712]
3536         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
3537         (__old_mempcpy_small): Likewise.
3538         (__old_strcpy_small): Likewise.
3539         (__old_stpcpy_small): Likewise.
3540         (__old_strpbrk_c2): Fix compat symbol name.
3541         (__old_strpbrk_c3): Likewise.
3542         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
3543         (__mempcpy_small): Remove.
3544         (__strcpy_small): Remove.
3545         (__stpcpy_small): Remove.
3546
3547 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
3548
3549         [BZ #19400]
3550         * locale/iso-639.def: Add the Talossan/tzl language.
3551
3552 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3553
3554         [BZ #16983]
3555         * locale/programs/ld-address.c (address_finish): Update postal_fmt
3556         comment.  Add "ln" to strchr check on postal_fmt.
3557
3558 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3559
3560         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
3561         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
3562         tel_dom_fmt.
3563
3564 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3565
3566         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3567         (sysdep_routines): Added __strlen_power8.
3568         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
3569         __strlen_power8 entry.
3570         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
3571         Implementation for POWER8.
3572         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
3573         for __strlen_power8.
3574         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
3575         Implementation for POWER8.
3576
3577 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
3578
3579         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
3580
3581 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
3582
3583         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
3584         Goldmont and Airmont processors.
3585
3586 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
3587
3588         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
3589         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
3590         (__STRING2_SMALL_GET32): Remove.
3591         (memset): Remove.
3592         (__memset_1): Remove.
3593         (__memset_gc): Remove.
3594         (__mempcpy): Remove.
3595         (mempcpy): Remove.
3596         (__mempcpy_args): Remove.
3597         (strchr): Remove.
3598         (strcpy): Remove.
3599         (strcpy_args): Remove.
3600         (__stpcpy_args): Remove.
3601         (__strcmp_cc): Remove.
3602         (__strcmp_gc): Remove.
3603         (strstr): Remove.
3604
3605 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
3606
3607         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
3608         * nis/nis_call.c (nis_server_cache_add): Likewise.
3609
3610 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3611
3612         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
3613
3614 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3615
3616         * malloc/arena.c (__malloc_fork_lock_parent)
3617         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
3618         internal_function attribute.
3619
3620 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
3621
3622         * stdio-common/printf_fp.c (__printf_fp_l):
3623         Rename ___printf_fp_l to __printf_fp_l and
3624         remove strong alias. Use libc_hidden_def instead
3625         of ldbl_hidden_def macro.
3626
3627 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3628
3629         Remove malloc hooks from fork handler.  They are no longer needed
3630         because malloc runs right before fork, and no malloc calls from
3631         other fork handlers are not possible anymore.
3632         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
3633         declarations.
3634         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
3635         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
3636         (atfork_recursive_cntr): Remove.
3637         (__malloc_fork_lock_parent): Do not override malloc hooks and
3638         thread_arena.
3639         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
3640         thread_arena.
3641         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
3642         thread_arena instead of save_arena.
3643
3644 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3645
3646         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
3647         (thread_atfork, thread_atfork_static): Remove.
3648         * sysdeps/mach/hurd/malloc-machine.h:
3649         (thread_atfork, thread_atfork_static): Remove.
3650
3651 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3652
3653         [BZ #19431]
3654         Run the malloc fork handler as late as possible to avoid deadlocks.
3655         * malloc/malloc-internal.h: New file.
3656         * malloc/malloc.c: Include it.
3657         * malloc/arena.c (ATFORK_MEM): Remove.
3658         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
3659         Update comment.
3660         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
3661         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
3662         Remove outdated comment.
3663         (ptmalloc_init): Do not call thread_atfork.  Remove
3664         thread_atfork_static.
3665         * malloc/tst-malloc-fork-deadlock.c: New file.
3666         * Makefile (tests): Add tst-malloc-fork-deadlock.
3667         (tst-malloc-fork-deadlock): Link against libpthread.
3668         * manual/memory.texi (Aligned Memory Blocks): Update safety
3669         annotation comments.
3670         * sysdeps/nptl/fork.c (__libc_fork): Call
3671         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
3672         __malloc_fork_unlock_child.
3673         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3674
3675 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3676
3677         [BZ #19613]
3678         Remove union wait.
3679         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
3680         (w_stopsig, w_stopval): Remove.
3681         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
3682         stat_loc argument.
3683         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
3684         (__WAIT_STATUS_DEFN): Remove.
3685         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3686         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
3687         (wait, wait3, wait4): Use int * for the stat_loc argument.
3688         * posix/wait.c (__wait): Likewise.
3689         * posix/wait3.c (__wait3): Likewise.
3690         * posix/wait4.c (__wait4): Likewise.
3691         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
3692         (__WAIT_STATUS_DEFN): Remove.
3693         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3694         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
3695         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
3696         argument.
3697         * sysdeps/posix/wait.c (__libc_wait): Likewise.
3698         * sysdeps/posix/wait3.c (__wait3): Likewise.
3699         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
3700         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
3701         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
3702         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
3703         stat_loc argument.
3704         * manual/process.texi (BSD Wait Functions): Remove union wait.
3705
3706 2016-04-13  Andreas Schwab  <schwab@suse.de>
3707
3708         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
3709         (test-extras): Add tst-tlsalign-vars.
3710         * math/Makefile: Wrap long lines.
3711         (libm-vec-test-wrappers): Define.
3712         (test-extras): Add $(libm-vec-test-wrappers).
3713         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
3714         * nss/Makefile (extra-test-objs): Add nss_test1.os.
3715         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
3716         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
3717         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
3718         (extra-test-objs): Add corresponding objects.
3719
3720 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
3721
3722         [BZ #19928]
3723         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
3724         New.
3725         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
3726         times of shared cache size.
3727         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
3728         (VMOVNT): New.
3729         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
3730         (VMOVNT): Likewise.
3731         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
3732         (VMOVNT): Likewise.
3733         (VMOVU): Changed to movups for smaller code sizes.
3734         (VMOVA): Changed to movaps for smaller code sizes.
3735         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
3736         comments.
3737         (PREFETCH): New.
3738         (PREFETCH_SIZE): Likewise.
3739         (PREFETCHED_LOAD_SIZE): Likewise.
3740         (PREFETCH_ONE_SET): Likewise.
3741         Rewrite to use forward and backward loops, which move 4 vector
3742         registers at a time, to support overlapping addresses and use
3743         non temporal store if size is above the threshold and there is
3744         no overlap between destination and source.
3745
3746 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
3747
3748         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
3749         Include dl-vdso.
3750         * sysdeps/unix/sysv/linux/mips/Versions: Add
3751         __vdso_clock_gettime.
3752         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
3753         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
3754         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
3755         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
3756         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
3757         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
3758         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
3759         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
3760         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3761
3762 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3763
3764         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
3765         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
3766         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
3767         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
3768         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3769         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
3771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
3772         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
3773         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
3774         syscalls generation.
3775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3776         [__NR_pwrite64] (__NR_write): Remove define.
3777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3778         [__NR_pwrite64] (__NR_write): Remove define.
3779         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
3780         Remove define.
3781         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
3782         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
3783         Remove define.
3784         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
3785         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
3786         Linux implementation as base.
3787         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3788
3789         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
3790         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3791         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
3792         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
3793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
3794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
3795         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
3796         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
3797         syscall generation.
3798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3799         [__NR_pread64] (__NR_pread): Remove define.
3800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3801         [__NR_pread64] (__NR_pread): Likewise.
3802         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
3803         define.
3804         (__libc_pread): Use SYSCALL_LL macro on offset argument.
3805         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
3806         Remove define.
3807         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
3808         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
3809         Linux implementation as base.
3810         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3811         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3812         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3813
3814         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
3815         definition.
3816         (__ALIGNMENT_COUNT): Likewise.
3817         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
3818         (__ALIGNMENT_COUNT): Likewise.
3819         (SYSCALL_LL): New define.
3820         (SYSCALL_LL64): Likewise.
3821         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
3822         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
3823         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
3824         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
3825
3826         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3827         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
3828         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3829         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3830         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3831         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3832
3833 2016-04-11  Florian Weimer  <fweimer@redhat.com>
3834
3835         [BZ #19865]
3836         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
3837         original buffer before retry.
3838
3839 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3840
3841         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
3842         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
3843         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
3844         GLRO(dl_auxv) list.
3845         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
3846         including <ldsodefs.h>.
3847         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
3848
3849 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
3850
3851         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
3852         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
3853         $(CPPFLAGS).
3854
3855 2016-04-09  Khem Raj  <raj.khem@gmail.com>
3856
3857         [BZ #17950]
3858         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
3859         Add -mfpmath=387.
3860
3861 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
3862
3863         * sysdeps/i386/configure.ac: Change == to = when calling test.
3864         * sysdeps/x86_64/configure.ac: Likewise.
3865         * sysdeps/i386/configure: Regenerated.
3866         * sysdeps/x86_64/configure: Likewise.
3867
3868 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
3869
3870         [BZ #16137]
3871         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
3872         * benchtests/bench-strcoll.c (input_files): Likewise.
3873         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
3874         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
3875         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
3876
3877 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
3878
3879         [BZ #19929]
3880         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
3881         [__USE_XOPEN2K8 && !__USE_GNU].
3882         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
3883         variable.
3884
3885         [BZ #19925]
3886         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
3887         define if [!__USE_MISC && __USE_XOPEN2K].
3888         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
3889         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
3890         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
3891         Likewise.
3892         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
3893         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
3894         variable.
3895         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
3896
3897 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3898
3899         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3900         (sysdep_routines): Add new strspn targets.
3901         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3902         (__libc_ifunc_impl_list): Add strspn.
3903         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3904         New file.
3905         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
3906         Likewise.
3907         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
3908         Likewise.
3909         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3910         Likewise.
3911
3912 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3913
3914         * misc/hsearch_r.c: Include <limits.h>.
3915
3916 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3917
3918         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
3919
3920 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3921
3922         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
3923         (MEMCPY_SYMBOL): New.
3924         (MEMPCPY_SYMBOL): Likewise.
3925         (MEMMOVE_CHK_SYMBOL): Likewise.
3926         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
3927         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
3928         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
3929         Provide alias for memcpy in libc.a and ld.so.
3930
3931 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3932
3933         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
3934         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
3935         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
3936         Disabled fro now.
3937         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
3938         symbols.  Properly check USE_MULTIARCH on __memset symbols.
3939
3940 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3941
3942         * benchtests/Makefile (string-benchset): Add memcpy-large,
3943         memmove-large and memset-large.
3944         * benchtests/bench-memcpy-large.c: New file.
3945         * benchtests/bench-memmove-large.c: Likewise.
3946         * benchtests/bench-memmove-large.c: Likewise.
3947         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
3948
3949 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3950
3951         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
3952         32-bit displacement to avoid long nop between instructions.
3953
3954 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3955
3956         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
3957         a comment on VMOVU and VMOVA.
3958
3959 2016-04-04  Florian Weimer  <fweimer@redhat.com>
3960
3961         [BZ #19633]
3962         Use specified locale for number formatting in strfmon_l.
3963         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
3964         (__nl_lookup_word): New inline functions.
3965         * include/printf.h (__print_fp_l): Declare.
3966         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
3967         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
3968         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
3969         (___printf_fp): New function.
3970         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
3971         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
3972         * stdlib/tst-strfmon_l.c (do_test): New test.
3973         * stdlib/Makefile (tests): Add kt.
3974         (LOCALES): Build additional locales.
3975         (tst-strfmon_l.out): Require locales.
3976
3977 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3978
3979         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
3980         if not in libc.
3981         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3982         Likewise.
3983         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
3984         Likewise.
3985         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3986         Likewise.
3987
3988 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3989
3990         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3991         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
3992         with unaligned_erms.
3993         (__memmove_erms): Skip if source == destination.
3994         (__memmove_unaligned_erms): Don't check source == destination
3995         first.
3996
3997 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3998
3999         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
4000         bit_arch_Fast_Copy_Backward for Intel Core proessors.
4001
4002 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4003
4004         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
4005         * string/strspn.c (strspn): Likewise.
4006
4007 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4008
4009         * benchtests/bench-memset.c (do_test): Support 64-byte
4010         alignment.
4011         (test_main): Test 64-byte alignment.
4012
4013 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4014
4015         * benchtests/bench-memmove.c (test_main): Test 64-byte
4016         alignment.
4017
4018 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4019
4020         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
4021
4022 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4023
4024         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
4025         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
4026         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
4027
4028         * string/strpbrk.c (strpbrk): Rewrite function.
4029         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
4030         (__strpbrk_c2): Likewise.
4031         (__strpbrk_c3): Likewise.
4032         * string/string-inlines.c
4033         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
4034         Likewise.
4035         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
4036         Likewise.
4037
4038         * string/strspn.c (strcspn): Rewrite function.
4039         * string/bits/string2.h (strspn): Use __builtin_strcspn.
4040         (__strspn_c1): Remove inline function.
4041         (__strspn_c2): Likewise.
4042         (__strspn_c3): Likewise.
4043         * string/string-inlines.c
4044         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
4045         compatibility symbol.
4046         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
4047         Likewise.
4048         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
4049         Likewise.
4050         * string/string-inlines.c: Include generic version.
4051
4052 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
4053             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4054
4055         * string/Version (libc): Add GLIBC_2.24.
4056         * string/strcspn.c (strcspn): Rewrite function.
4057         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
4058         (__strcspn_c1): Remove inline function.
4059         (__strcspn_c2): Likewise.
4060         (__strcspn_c3): Likewise.
4061         * string/string-inline.c
4062         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
4063         compatibility symbol.
4064         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
4065         Likewise.
4066         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
4067         Likewise.
4068         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
4069
4070 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
4071
4072         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
4073         Use ahi instead of aghi to adjust stack pointer.
4074
4075 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4076
4077         [BZ #19853]
4078         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
4079         TEST to take significant digits as second parameter.
4080         [TEST]: Redefine in terms of TEST_N taking 30
4081         significant digits.
4082         (do_test): Add test case to demonstrate precision
4083         failure in the ldbl-128ibm printf.
4084         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
4085         (__mpn_extract_long_double): Carry 7 extra intermediate
4086         bits of precision to aide computing difference when
4087         signs differ.
4088
4089 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
4090
4091         [BZ #19881]
4092         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4093         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
4094         memset-avx512-unaligned-erms.
4095         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4096         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
4097         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
4098         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
4099         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
4100         __memset_sse2_unaligned_erms, __memset_erms,
4101         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
4102         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
4103         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
4104         file.
4105         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
4106         Likewise.
4107         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
4108         Likewise.
4109         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
4110         Likewise.
4111
4112 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
4113
4114         [BZ #19776]
4115         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4116         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
4117         memmove-avx512-unaligned-erms.
4118         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4119         (__libc_ifunc_impl_list): Test
4120         __memmove_chk_avx512_unaligned_2,
4121         __memmove_chk_avx512_unaligned_erms,
4122         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
4123         __memmove_chk_sse2_unaligned_2,
4124         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
4125         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
4126         __memmove_avx512_unaligned_erms, __memmove_erms,
4127         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
4128         __memcpy_chk_avx512_unaligned_2,
4129         __memcpy_chk_avx512_unaligned_erms,
4130         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
4131         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
4132         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
4133         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
4134         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
4135         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
4136         __mempcpy_chk_avx512_unaligned_erms,
4137         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
4138         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
4139         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
4140         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
4141         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
4142         __mempcpy_erms.
4143         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
4144         file.
4145         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
4146         Likwise.
4147         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
4148         Likwise.
4149         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4150         Likwise.
4151
4152 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4153
4154         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
4155         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
4156         (La_s390_64_regs): Likewise.
4157         (La_s390_32_retval): Append vector register lrv_v24.
4158         (La_s390_64_retval): Likeweise.
4159         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
4160         Handle extended structs La_s390_32_regs and La_s390_32_retval.
4161         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
4162         Handle extended structs La_s390_64_regs and La_s390_64_retval.
4163
4164 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4165
4166         [BZ #19916]
4167         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
4168         to create a non-vector/vector version for _dl_runtime_resolve and
4169         _dl_runtime_profile. Move implementation to ...
4170         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
4171         (_dl_runtime_resolve) Save and restore fpr/vrs.
4172         (_dl_runtime_profile) Save and restore vrs and fix some issues
4173         if _dl_call_pltexit is called.
4174         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
4175         Choose the correct resolver function if running on a machine with vx.
4176         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
4177         to create a non-vector/vector version for _dl_runtime_resolve and
4178         _dl_runtime_profile. Move implementation to ...
4179         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
4180         (_dl_runtime_resolve) Save and restore fpr/vrs.
4181         (_dl_runtime_profile) Save and restore vrs and fix some issues
4182         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
4183         Choose the correct resolver function if running on a machine with vx.
4184
4185 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4186
4187         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
4188
4189 2016-03-31  Florian Weimer  <fweimer@redhat.com>
4190
4191         [BZ #19509]
4192         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
4193         skip_map != NULL.
4194         * elf/tst-dlsym-error.c: New file.
4195         * elf/Makefile (tests): Add tst-dlsym-error.
4196         (tst-dlsym-error): Link against libdl.
4197
4198 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
4199
4200         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4201         (__ASSUME_FUTIMESAT): Remove macro.
4202         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
4203
4204 2016-03-29  Florian Weimer  <fweimer@redhat.com>
4205
4206         [BZ #19879]
4207         CVE-2016-3075
4208         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
4209         copy name.
4210
4211 2016-03-29  Florian Weimer  <fweimer@redhat.com>
4212
4213         [BZ #19837]
4214         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
4215         error if parse_line fails.
4216
4217 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4218
4219         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
4220         (index_cpu_ERMS): Likewise.
4221         (reg_ERMS): Likewise.
4222
4223 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
4224
4225         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
4226         PER_LINUX_FDPIC): Add.
4227
4228 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4229
4230         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4231         memcpy-avx512-no-vzeroupper.
4232         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
4233         to ...
4234         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
4235         (MEMCPY): Don't define.
4236         (MEMCPY_CHK): Likewise.
4237         (MEMPCPY): Likewise.
4238         (MEMPCPY_CHK): Likewise.
4239         (MEMPCPY_CHK): Renamed to ...
4240         (__mempcpy_chk_avx512_no_vzeroupper): This.
4241         (MEMPCPY_CHK): Renamed to ...
4242         (__mempcpy_chk_avx512_no_vzeroupper): This.
4243         (MEMCPY_CHK): Renamed to ...
4244         (__memmove_chk_avx512_no_vzeroupper): This.
4245         (MEMCPY): Renamed to ...
4246         (__memmove_avx512_no_vzeroupper): This.
4247         (__memcpy_avx512_no_vzeroupper): New alias.
4248         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
4249
4250 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4251
4252         [BZ #18858]
4253         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4254         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
4255         and mempcpy-avx512-no-vzeroupper.
4256         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
4257         New.
4258         (MEMPCPY): Likewise.
4259         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
4260         (MEMPCPY_CHK): New.
4261         (MEMPCPY): Likewise.
4262         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
4263         (MEMPCPY): Likewise.
4264         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
4265         (MEMPCPY): Likewise.
4266         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
4267         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
4268         Likewise.
4269         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
4270         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
4271
4272 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4273              Amit Pawar  <Amit.Pawar@amd.com>
4274
4275         [BZ #19583]
4276         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
4277         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
4278         processors.  Set Fast_Copy_Backward for AMD Excavator
4279         processors.
4280         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
4281         New.
4282         (index_arch_Fast_Unaligned_Copy): Likewise.
4283         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
4284         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
4285
4286 2016-03-25  Florian Weimer  <fweimer@redhat.com>
4287
4288         [BZ #19791]
4289         * resolv/res_send.c (close_and_return_error): New function.
4290         (send_dg): Initialize *resplen2 after reopen failure.  Call
4291         close_and_return_error for error returns.  On error paths without
4292         __res_iclose, initialze *resplen2 explicitly.  Update comment for
4293         successful return.
4294
4295 2016-03-25  Florian Weimer  <fweimer@redhat.com>
4296
4297         [BZ# 19860]
4298         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
4299         zero if the compiler does not provide the AVX512F bit.
4300
4301 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
4302
4303         [BZ #19848]
4304         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
4305         from 8 to 4.
4306         (__ieee754_powl): Compare integer exponent against 4 not 8.
4307         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
4308         from 8 to 4.
4309         (__ieee754_powl): Compare integer exponent against 4 not 8.
4310         * math/auto-libm-test-in: Add more tests of pow.
4311         * math/auto-libm-test-out: Regenerated.
4312         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
4313         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4314
4315 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4316
4317         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
4318         Make code unconditional.
4319         [!__NR_utimensat]: Remove conditional code.
4320         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
4321         Make code unconditional.
4322         [!__NR_utimensat]: Remove conditional code.
4323         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
4324         Make code unconditional.
4325         [!__NR_utimensat]: Remove conditional code.
4326
4327 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4328
4329         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
4330         Make code unconditional.
4331
4332 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
4333
4334         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
4335         call-clobbered %eax on retry path.
4336         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
4337
4338 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4339
4340         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
4341         Don't set %rcx twice before "rep movsb".
4342
4343 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4344
4345         [BZ #19583]
4346         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
4347         inline.  Check family before setting family, model and
4348         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
4349         bits here.
4350         (init_cpu_features): Replace HAS_CPU_FEATURE and
4351         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
4352         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
4353         for Intel processors with usable AVX2.  Call get_common_indeces
4354         for other processors with family == NULL.
4355         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
4356         (CPU_FEATURES_ARCH_P): Likewise.
4357         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
4358         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
4359
4360 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4361
4362         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
4363         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
4364         $(shared-thread-library) instead of hardcoding the path to libpthread.
4365
4366 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
4367
4368         * sysdeps/unix/sysv/linux/kernel-features.h
4369         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
4370         * sysdeps/unix/sysv/linux/getdents.c
4371         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
4372         [!have_no_getdents64_defined]: Likewise.
4373         (__GETDENTS): Remove __have_no_getdents64 conditional.
4374
4375 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
4376
4377         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
4378         Remove macro.
4379         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
4380         <kernel-features.h>.
4381         (signalfd) [__NR_signalfd4]: Make code unconditional.
4382         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
4383
4384 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4385
4386         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
4387         style.
4388
4389 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4390
4391         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
4392         (__pthread_enable_asynccancel): Use JUMPTARGET to call
4393         __pthread_unwind.
4394         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
4395         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
4396         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
4397         (__condvar_cleanup1): Likewise.
4398
4399 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
4400
4401         [BZ #19822]
4402         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
4403         move it to the final $@ location.
4404
4405 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4406
4407         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
4408         access where posix_spawn success and pid argument is null.
4409         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
4410         success case.
4411
4412 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
4413
4414         * sysdeps/mach/hurd/i386/c++-types.data: New file.
4415
4416         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
4417
4418         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
4419         and __fcntl.
4420         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
4421         __fcntl only.
4422         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
4423         adding attribute_hidden to __open and __fcntl.
4424
4425         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
4426         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
4427         depend on libc-modules.h,
4428         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
4429
4430 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
4431
4432         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
4433         Remove macro.
4434         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
4435         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
4436         entry.
4437
4438         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
4439         Remove macro.
4440         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
4441         include <kernel-features.h>.
4442         [!__ASSUME_FALLOCATE]: Remove conditional code.
4443         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
4444
4445 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4446
4447         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
4448         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
4449         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
4450         (_ZGVdN4v_cos_avx2): Likewise.
4451         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
4452         (_ZGVdN4v_cos): Likewise.
4453         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
4454         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
4455         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
4456         (_ZGVdN4v_exp_avx2): Likewise.
4457         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
4458         (_ZGVdN4v_exp): Likewise.
4459         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
4460         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
4461         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
4462         (_ZGVdN4v_log_avx2): Likewise.
4463         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
4464         (_ZGVdN4v_log): Likewise.
4465         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
4466         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
4467         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
4468         (_ZGVdN4vv_pow_avx2): Likewise.
4469         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
4470         (_ZGVdN4vv_pow): Likewise.
4471         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
4472         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
4473         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
4474         (_ZGVdN4v_sin_avx2): Likewise.
4475         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
4476         (_ZGVdN4v_sin): Likewise.
4477         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
4478         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
4479         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
4480         (_ZGVdN4vvv_sincos_avx2): Likewise.
4481         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
4482         (_ZGVdN4vvv_sincos): Likewise.
4483         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
4484         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
4485         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
4486         (_ZGVbN4v_cosf_sse4): Likewise.
4487         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
4488         (_ZGVdN8v_cosf_avx2): Likewise.
4489         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
4490         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
4491         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
4492         (_ZGVbN4v_expf_sse4): Likewise.
4493         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
4494         (_ZGVdN8v_expf_avx2): Likewise.
4495         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
4496         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
4497         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
4498         (_ZGVbN4v_logf_sse4): Likewise.
4499         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
4500         (_ZGVdN8v_logf_avx2): Likewise.
4501         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
4502         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
4503         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
4504         (_ZGVbN4vv_powf_sse4): Likewise.
4505         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
4506         (_ZGVdN8vv_powf_avx2): Likewise.
4507         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
4508         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
4509         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
4510         (_ZGVbN4vvv_sincosf_sse4): Likewise.
4511         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
4512         (_ZGVdN8vvv_sincosf_avx2): Likewise.
4513         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
4514         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
4515         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
4516         (_ZGVbN4v_sinf_sse4): Likewise.
4517         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
4518         (_ZGVdN8v_sinf_avx2): Likewise.
4519         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4520         Use JUMPTARGET to call callee.
4521         (WRAPPER_IMPL_SSE2_ff): Likewise.
4522         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4523         (WRAPPER_IMPL_AVX): Likewise.
4524         (WRAPPER_IMPL_AVX_ff): Likewise.
4525         (WRAPPER_IMPL_AVX_fFF): Likewise.
4526         (WRAPPER_IMPL_AVX512): Likewise.
4527         (WRAPPER_IMPL_AVX512_ff): Likewise.
4528         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4529         Likewise.
4530         (WRAPPER_IMPL_SSE2_ff): Likewise.
4531         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4532         (WRAPPER_IMPL_AVX): Likewise.
4533         (WRAPPER_IMPL_AVX_ff): Likewise.
4534         (WRAPPER_IMPL_AVX_fFF): Likewise.
4535         (WRAPPER_IMPL_AVX512): Likewise.
4536         (WRAPPER_IMPL_AVX512_ff): Likewise.
4537         (WRAPPER_IMPL_AVX512_fFF): Likewise.
4538
4539 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4540
4541         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
4542         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
4543         qualifier.
4544         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
4545         internal_function qualifiers.
4546
4547 2016-03-15  Carlos O'Donell <carlos@redhat.com>
4548
4549         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
4550         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
4551         * math/atest-exp.c (exp_mpn): Mark chk unused.
4552         * math/atest-exp2.c (exp_mpn): Likwise.
4553         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
4554         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
4555
4556 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
4557
4558         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
4559         Remove macro.
4560         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
4561         <kernel-features.h>.
4562         [__NR_ppoll]: Make code unconditional.
4563         [!__ASSUME_PPOLL]: Remove conditional code.
4564
4565         * sysdeps/unix/sysv/linux/kernel-features.h
4566         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
4567         (__ASSUME_ACCEPT4): Likewise.
4568         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4569         Define.
4570         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
4571         Likewise.
4572         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4573         Likewise.
4574         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
4575         Likewise.
4576         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
4577         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
4578         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4579         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4580         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4581         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4582         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4583         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4584         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4585         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4586         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4587         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4588         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4589         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4590         * sysdeps/unix/sysv/linux/i386/kernel-features.h
4591         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4592         Likewise.
4593         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4594         Likewise.
4595         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4596         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4597         0x040300].
4598         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4599         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4600         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4601         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4602         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4603         0x030300].
4604         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
4605         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4606         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4607         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4608         0x040300].
4609         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4610         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4611         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4612         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4613         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4614         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4615         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4616         0x030300].
4617         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4618         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4619         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4620         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4621         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4622         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4623         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4624         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4625         * sysdeps/unix/sysv/linux/s390/kernel-features.h
4626         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4627         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4628         0x040300].
4629         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4630         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4631         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4632         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4633         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4634         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4635         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4636         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4637         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4638         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4639         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4640         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4641         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4642         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4643         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
4644         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4645         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4646         Likewise.
4647         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4648         Likewise.
4649
4650 2016-03-15  Andreas Schwab  <schwab@suse.de>
4651
4652         [BZ #19257]
4653         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
4654         statp->_u._ext.nscount as loop count.
4655
4656 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
4657
4658         * math/test-signgam-finite-c99.c: Also #undef
4659         __LIBC_INTERNAL_MATH_INLINES.
4660         * math/test-signgam-main.c: Likewise.
4661
4662 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
4663
4664         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
4665         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
4666         (MADV_FREE): Likewise.
4667         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
4668         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
4669         EPOLLEXCLUSIVE.
4670
4671 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
4672
4673         * timezone/README: Remove mention of checktab.awk. Mention wiki
4674         SharedSourceFiles.
4675
4676 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
4677
4678         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
4679         WUNTRACED.
4680
4681 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4682
4683         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
4684         order to match the type of p when calling atomic_exchange_acq().
4685
4686 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4687
4688         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
4689         cfi_offset calls.
4690         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
4691         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
4692         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
4693         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
4694         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
4695
4696 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
4697
4698         * timezone/checktab.awk: Removed.
4699
4700 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
4701
4702         * manual/math.texi (Errors in Math Functions): Document relaxed
4703         accuracy goals for IBM long double.
4704         * math/libm-test.inc (test_exceptions): Always allow spurious
4705         "underflow" and "inexact" exceptions for IBM long double.
4706
4707 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
4708
4709         [BZ #19762]
4710         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4711         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
4712         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
4713         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
4714         (bit_arch_*): This for feature array.
4715         (bit_*): Renamed to ...
4716         (bit_cpu_*): This for cpu array.
4717         (index_*): Renamed to ...
4718         (index_arch_*): This for feature array.
4719         (index_*): Renamed to ...
4720         (index_cpu_*): This for cpu array.
4721         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
4722         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
4723         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
4724         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
4725         bit_##name with index_cpu_##name and bit_cpu_##name.
4726         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
4727         bit_##name with index_arch_##name and bit_arch_##name.
4728
4729 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
4730
4731         [BZ #19792]
4732         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4733         Terminate FDE before return label.
4734
4735 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
4736
4737         [BZ #19790]
4738         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
4739         (rintl): Define as macro.
4740         [USE_AS_NEARBYINTL] (__rintl): Likewise.
4741         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
4742         of fesetround.  Ensure results are evaluated before end of scope.
4743         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
4744         USE_AS_NEARBYINTL and include s_rintl.c.
4745         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
4746         Disable exception traps in new environment.
4747         (libc_feholdsetround_ppc_ctx): Likewise.
4748
4749 2016-03-08  Roland McGrath  <roland@hack.frob.com>
4750
4751         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
4752         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
4753         (tst_audit10_aux) [__AVX512F__]: ... here.
4754
4755 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
4756
4757         * include/sys/auxv.h: New file.
4758
4759 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4760
4761         [BZ #19759]
4762         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
4763
4764 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4765
4766         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
4767         operand modifier.
4768         (feclearexcept): Likewise.
4769
4770 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4771
4772         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
4773         to reflect the entire 32-bit HWCAP.
4774         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
4775         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
4776
4777 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4778
4779         [BZ #19783]
4780         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
4781         $(test-via-rtld-prefix).
4782         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
4783
4784 2016-03-08  Florian Weimer  <fweimer@redhat.com>
4785
4786         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
4787         union wait.  Report any non-zero exit status as error.
4788
4789 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4790
4791         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
4792         configured with --enable-hardcoded-path-in-tests.
4793
4794 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
4795
4796         [BZ #19677]
4797         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4798         (__ieee754_remainderl): Put zero low parts in canonical form.
4799         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
4800         file.  Based on
4801         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
4802         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
4803         with wrapper round test-fmodrem-ldbl-128ibm.c.
4804         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
4805         file.
4806         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
4807         Likewise.
4808         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4809         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
4810
4811 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4812
4813         [BZ #19610]
4814         * elf/ldconfig.c (opt_link): Update comment.
4815         (options): Update help string for option -X.
4816         (search_dir): Unlink stale symbolic link only if updating symbolic
4817         links.
4818         * elf/tst-ldconfig-X.sh: New file.
4819         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
4820         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
4821
4822 2016-03-07  Andreas Schwab  <schwab@suse.de>
4823
4824         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
4825         needed arguments.
4826
4827 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
4828
4829         [BZ #15333]
4830         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
4831         to lstat64.
4832
4833 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4834
4835         * libio/filedoalloc.c (isatty): Remove.
4836         (local_isatty): Add comment.  Call __isatty directly.
4837         (_IO_file_doallocate): Update comment.  Assume _LIBC.
4838         * libio/wfiledoalloc.c (isatty): Remove.
4839         (_IO_wfile_doallocate): Update comment.
4840
4841 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4842
4843         [BZ #19269]
4844         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
4845         tst-audit4-aux.o.
4846         (tst-audit10): Depend on tst-audit10-aux.o.
4847         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
4848         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
4849         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
4850         instead of inline AVX code.
4851         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
4852         instead of inline AVX512 code.
4853         * sysdeps/x86_64/tst-audit4-aux.c: New file
4854         * sysdeps/x86_64/tst-audit10-aux.c: New file
4855
4856         [BZ #19648]
4857         * test-skeleton.c (main): Do not set RLIMIT_DATA.
4858
4859 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4860
4861         [BZ #14750]
4862         [BZ #10354]
4863         [BZ #18433]
4864         * include/sched.h (__clone): Add hidden prototype.
4865         (__clone2): Likewise.
4866         * include/unistd.h (__dup): Likewise.
4867         * posix/Makefile (tests): Add tst-spawn2.
4868         * posix/tst-spawn2.c: New file.
4869         * sysdeps/posix/dup.c (__dup): Add hidden definition.
4870         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
4871         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
4872         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
4873         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
4874         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
4875         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
4876         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
4877         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
4878         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
4879         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
4880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
4881         Likewise.
4882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
4883         Likewise.
4884         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
4885         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
4886         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
4887         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4888         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
4889         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
4890         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
4891         * sysdeps/unix/sysv/linux/nptl-signals.h
4892         (____nptl_is_internal_signal): New function.
4893         * sysdeps/unix/sysv/linux/spawni.c: New file.
4894
4895         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
4896         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
4897         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
4898         * posix/tst-execvp2.c (do_test): Likewise.
4899         * posix/tst-execvp3.c (do_test): Likewise.
4900         * posix/tst-execvp4.c (do_test): Likewise.
4901         * posix/tst-execvpe1.c: New file.
4902         * posix/tst-execvpe2.c: Likewise.
4903         * posix/tst-execvpe3.c: Likewise.
4904         * posix/tst-execvpe4.c: Likewise.
4905         * posix/tst-execvpe5.c: Likewise.
4906         * posix/tst-execvpe6.c: Likewise.
4907
4908         [BZ #19534]
4909         * posix/execl.c (execl): Remove dynamic memory allocation.
4910         * posix/execle.c (execle): Likewise.
4911         * posix/execlp.c (execlp): Likewise.
4912
4913 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4914
4915         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
4916         Replace .text with .text.avx512.
4917         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
4918         Likewise.
4919
4920 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
4921
4922         * sysdeps/generic/libnsl.abilist: New file.
4923         * sysdeps/generic/libutil.abilist: New file.
4924
4925 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4926
4927         [BZ #19762]
4928         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
4929         HAS_ARCH_FEATURE with Fast_Rep_String.
4930         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
4931         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
4932         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
4933         Likewise.
4934         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
4935         Likewise.
4936         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
4937         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
4938         Likewise.
4939         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
4940         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
4941         Likewise.
4942
4943 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4944
4945         [BZ #19745]
4946         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
4947         with *%rax in call.
4948
4949 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4950
4951         [BZ #19745]
4952         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
4953         with *__libc_start_main@GOTPCREL(%rip) in call.
4954
4955 2016-03-04  Roland McGrath  <roland@hack.frob.com>
4956
4957         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
4958         inside conditional for nonempty $(CXX).
4959
4960         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
4961         nonempty.
4962
4963         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
4964         to test for empty $(CXX) rather than $(CXX) of "no".
4965
4966 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4967
4968         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
4969
4970 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
4971             H.J. Lu  <hongjiu.lu@intel.com>
4972
4973         [BZ #18880]
4974         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
4975         instead of Slow_BSF, and also check for Fast_Copy_Backward to
4976         enable __memcpy_ssse3_back.
4977
4978 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4979
4980         [BZ #19758]
4981         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4982         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
4983
4984 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
4985
4986         [BZ #19490]
4987         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
4988         (__fentry__): Likewise.
4989
4990 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4991
4992         * gmon/Makefile (noprof): Add $(sysdep_noprof).
4993         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
4994
4995 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4996
4997         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
4998         __mcount_internal directly.
4999         (C_LABEL(__fentry__)): Likewise.
5000         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
5001         directly.
5002
5003 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
5004
5005         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5006         (__start_context): Call __setcontext directly.
5007
5008 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
5009
5010         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5011         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5012         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
5013         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
5014         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5015         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5016         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
5017         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5018         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
5019         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
5020         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
5021         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
5022         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
5023         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5024         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5025         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5026         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
5027         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5028         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5029         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
5030         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
5031         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5032         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5033         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
5034         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
5035         Remove conditional code.
5036         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5037         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
5038         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5039         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5040         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
5041         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5042         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
5043         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5044         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5045         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5046         * sysdeps/unix/sysv/linux/tile/kernel-features.h
5047         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5048
5049 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
5050
5051         * NEWS (2.23): Fix typo in bug 19048 text.
5052
5053 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
5054
5055         [BZ #14259]
5056         * Makeconfig: Rename msgcatdir to localedir.
5057         Rename inst_msgcatdir to inst_localedir.
5058         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
5059         * config.make.in: Add localedir.
5060         * elf/Makefile ($(objpfx)sotruss): Use localedir.
5061         (ldd-rewrite): Likewise.
5062         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
5063         (install-others): Use inst_localedir.
5064         (CPPFLAGS): Use localedir.
5065         * locale/Makefile (locale-CPPFLAGS): Likewise.
5066         * po/Makefile (mo-installed): Use inst_localedir.
5067
5068         [BZ #19575]
5069         * localedata/charmaps/GB18030: Update comments regarding PAU to
5070         non-PUA mappings.
5071
5072 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
5073
5074         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
5075         test for header.
5076         * sysdeps/unix/sysv/linux/configure: Regenerated.
5077         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
5078         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
5079         Remove conditional code.
5080         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
5081
5082         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
5083         Define to 3.2.0.
5084         (arch_minimum_kernel): Likewise.
5085         * sysdeps/unix/sysv/linux/configure: Regenerated.
5086         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
5087         Define to 2.6.32.
5088         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
5089         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
5090         (arch_minimum_kernel): Define to 2.6.32.
5091         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
5092         * README: Document Linux 3.2 requirement.
5093         * manual/install.texi (Linux): Document Linux 3.2 headers
5094         requirement.
5095         * INSTALL: Regenerated.
5096
5097 2016-02-24  Andreas Schwab  <schwab@suse.de>
5098
5099         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
5100         if !NO_LONG_DOUBLE.
5101
5102 2016-02-22  Roland McGrath  <roland@hack.frob.com>
5103
5104         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
5105         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
5106
5107 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
5108
5109         [BZ #19512]
5110         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
5111
5112 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5113
5114         * posix/tst-dir.c: Include libc-internal.h.
5115
5116 2016-02-20  Florian Weimer  <fweimer@redhat.com>
5117
5118         [BZ #19056]
5119         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
5120         * manual/filesys.texi (Reading/Closing Directory): Mention
5121         deprecaion.
5122         * posix/tst-dir.c (main): Disable deprecation warning in test.
5123
5124 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
5125
5126         [BZ #19679]
5127         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
5128         Renamed to ...
5129         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
5130         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5131         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
5132         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5133         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
5134         * sysdeps/x86_64/dl-trampoline.h
5135         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5136         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
5137
5138 2016-02-19  Mark Wielaard  <mjw@redhat.com>
5139
5140         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
5141
5142 2016-02-19  Mark Wielaard  <mjw@redhat.com>
5143
5144         * elf/elf.h (R_386_GOT32X): New.
5145         (R_386_NUM): Update.
5146         (R_X86_64_GOTPCRELX: New.
5147         (R_X86_64_REX_GOTPCRELX): New.
5148         (R_X86_64_NUM): Update.
5149
5150 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
5151
5152         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
5153
5154 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
5155
5156         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
5157         assign attr->stackaddr to it, and adjust it down when
5158         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
5159         [_STACK_GROWS_UP]: Delete assert.
5160         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
5161         Implement stack grows up logic.
5162         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
5163         stack grows up logic.
5164
5165 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5166
5167         * NEWS: Update with 2.24 template.
5168
5169 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
5170
5171         [BZ #19678]
5172         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
5173         Ensure +0.0 is returned when taking the next value below the least
5174         positive value.
5175
5176 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5177
5178         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
5179         available.  Do not define NO_THREADS.
5180         * malloc/malloc.c: Do not check NO_THREADS.
5181         * malloc/arena.c: Likewise.
5182
5183 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5184
5185         * malloc/malloc.c (__libc_mallinfo): Update comment.
5186         (struct malloc_par): Remove max_total_mem member, it was always 0.
5187         (int_mallinfo): Store 0 into usmblks (no functional change).
5188         * malloc/hooks.c (struct malloc_state): Document that
5189         max_total_mem is always 0.
5190         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
5191         always 0.
5192         * manual/memory.texi (Statistics of Malloc): Likewise.
5193
5194 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5195
5196         * malloc/malloc.c (sysmalloc): Do not update arena_max.
5197         * malloc/arena.c (arena_max): Remove.
5198         (heap_trim, _int_new_arena): Do not update arena_max.
5199
5200 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5201
5202         * resolv/res_init.c (res_ninit): Update comment.
5203
5204 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5205
5206         [BZ #19505]
5207         * posix/spawn_int.h: Add headers and include guard.
5208         (__spawn_valid_fd): New function.
5209         * posix/spawn_faction_addopen.c
5210         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
5211         * posix/spawn_faction_addclose.c
5212         (posix_spawn_file_actions_addclose): Likewise.
5213         * posix/spawn_faction_adddup2.c
5214         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
5215         second file descriptor.
5216         * posix/spawn_valid_fd.c: New file.
5217         * posix/tst-posix_spawn-fd.c: New file.
5218         * posix/Makefile (routines): Add spawn_valid_fd.
5219         (tests): Add tst-posix_spawn-fd.
5220
5221 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5222
5223         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
5224         (do_test): Limit the number of arenas, so that we can use fewer
5225         outer threads.  Limit timeout to 3 seconds, in preparation for a
5226         larger TIMEOUT value.
5227
5228 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
5229
5230         [BZ #19674]
5231         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
5232         sign in overflowing and underflowing results when overflow or
5233         underflow is detected early.  Include sign in result before rather
5234         than after scaling.
5235
5236         [BZ #19603]
5237         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
5238         (__ieee754_remainderl): Adjust sign of integer version of low part
5239         when taking absolute value of high part.
5240         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
5241         * math/libm-test.inc (remainder_test_data): Add another test.
5242         (remquo_test_data): Likewise.
5243
5244 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
5245
5246         [BZ #19602]
5247         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
5248         equal high parts and both low parts zero specially.
5249         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
5250         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
5251         Add test-fmodl-ldbl-128ibm.
5252
5253         [BZ #19595]
5254         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
5255         common logic for all cases of shifting subnormal results.  Do not
5256         insert sign bit in shifted mantissa.  Always pass -1023 as biased
5257         exponent to ldbl_insert_mantissa in subnormal case.
5258
5259         [BZ #19594]
5260         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
5261         on high and low parts then adjust result and use
5262         ldbl_canonicalize_int if needed.
5263
5264         [BZ #19593]
5265         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
5266         on high part and __floor or __ceil on low part then use
5267         ldbl_canonicalize_int if needed.
5268
5269         [BZ #19592]
5270         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
5271         high and low parts then use ldbl_canonicalize_int if needed.
5272
5273         [BZ #17899]
5274         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
5275         New function.
5276         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
5277         on high and low parts then use ldbl_canonicalize_int if needed.
5278
5279 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5280
5281         * configure: Regenerated.
5282
5283         * po/libc.pot: Regenerated.
5284
5285         * po/be.po: Updated translation.
5286         * po/bg.po: Likewise.
5287         * po/ca.po: Likewise.
5288         * po/cs.po: Likewise.
5289         * po/da.po: Likewise.
5290         * po/el.po: Likewise.
5291         * po/eo.po: Likewise.
5292         * po/es.po: Likewise.
5293         * po/fi.po: Likewise.
5294         * po/fr.po: Likewise.
5295         * po/gl.po: Likewise.
5296         * po/hr.po: Likewise.
5297         * po/hu.po: Likewise.
5298         * po/ia.po: Likewise.
5299         * po/id.po: Likewise.
5300         * po/it.po: Likewise.
5301         * po/ja.po: Likewise.
5302         * po/lt.po: Likewise.
5303         * po/nb.po: Likewise.
5304         * po/nl.po: Likewise.
5305         * po/pt_BR.po: Likewise.
5306         * po/rw.po: Likewise.
5307         * po/sk.po: Likewise.
5308         * po/sl.po: Likewise.
5309         * po/sv.po: Likewise.
5310         * po/tr.po: Likewise.
5311         * po/zh_CN.po: Likewise.
5312         * po/zh_TW.po: Likewise.
5313
5314         * version.h (RELEAES): Set to "development".
5315         (VERSION): Set to 2.23.90.
5316
5317         * version.h (RELEASE): Set to "stable".
5318         (VERSION): Set to 2.23.
5319         * include/feature.h (__GLIBC_MINOR__): Set to 23.
5320
5321         * NEWS: Updated fixed bugs.
5322
5323 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
5324             Wilco Dijkstra  <wdijkstr@arm.com>
5325
5326         [BZ #19462]
5327         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
5328         (_STRING_INLINE_unaligned): This.
5329         * include/string.h: Include <string_private.h>.
5330         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
5331         _STRING_INLINE_unaligned.
5332         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
5333         (_STRING_INLINE_unaligned): New.
5334         * sysdeps/aarch64/string_private.h: New file.
5335         * sysdeps/generic/string_private.h: Likewise.
5336         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
5337         * sysdeps/s390/string_private.h: Likewise.
5338         * sysdeps/x86/string_private.h: Likewise.
5339         * sysdeps/m68k/m680x0/m68020/bits/string.h
5340         (_STRING_ARCH_unaligned): Renamed to ...
5341         (_STRING_INLINE_unaligned): This.
5342         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
5343         to ...
5344         (_STRING_INLINE_unaligned): This.
5345         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
5346         to ...
5347         (_STRING_INLINE_unaligned): This.
5348         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
5349         to ...
5350         (_STRING_INLINE_unaligned): This.
5351
5352 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
5353             H.J. Lu  <hongjiu.lu@intel.com>
5354
5355         [BZ #19590]
5356         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
5357         relocation.
5358
5359 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
5360
5361         [BZ #18665]
5362         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
5363         *herrno_p.
5364         (gaih_getanswer): Document functional behviour. Return tryagain
5365         if any result is tryagain.
5366         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
5367         when freed.
5368         * resolv/res_send.c: Add copyright text.
5369         (__libc_res_nsend): Document that MAXPACKET is expected.
5370         (send_vc): Document. Remove buffer reuse.
5371         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
5372         size of the buffer. Add Dprint for truncated UDP buffer.
5373
5374 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
5375
5376         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
5377         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
5378         * INSTALL: Regenerate.
5379
5380 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
5381             Jonathan Wakely  <jwakely@redhat.com>
5382             Carlos O'Donell  <carlos@redhat.com>
5383
5384         [BZ 19439]
5385         * math/Makefile (tests): Add test-math-isinff.
5386         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
5387         * math/bits/mathcalls.h [__USE_MISC]: Use
5388         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
5389         functions not in C++11 and which don't conflict e.g. isinff,
5390         isinfl etc.
5391         * math/test-math-isinff.cc: New file.
5392
5393 2016-02-12  Florian Weimer  <fweimer@redhat.com>
5394
5395         * misc/bug18240.c (do_test): Set RLIMIT_AS.
5396
5397 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5398
5399         [BZ #19529]
5400         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
5401
5402 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5403
5404         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5405
5406 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
5407
5408         [BZ #19550]
5409         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
5410         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
5411         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
5412         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
5413         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
5414         New syscall entry.
5415         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
5416         New syscall entry.
5417         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
5418         syscall entry.
5419
5420 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5421
5422         [BZ #18240]
5423         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
5424         unsigned int wraparound.
5425
5426 2016-01-27  Florian Weimer  <fweimer@redhat.com>
5427
5428         [BZ #18240]
5429         * misc/bug18240.c: New test.
5430         * misc/Makefile (tests): Add it.
5431
5432 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
5433             Joseph Myers  <joseph@codesourcery.com>
5434
5435         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
5436         load in branch delay slot when less than a word of input left.
5437
5438 2016-01-27  Andreas Schwab  <schwab@suse.de>
5439
5440         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
5441         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
5442         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
5443         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
5444
5445 2016-01-26  David S. Miller  <davem@davemloft.net>
5446
5447         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
5448
5449 2016-01-25  David S. Miller  <davem@davemloft.net>
5450
5451         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
5452         __sqrtl_finite.
5453         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
5454         instead using versioned_symbol.
5455         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
5456         of entries.
5457
5458         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
5459         __sqrtl_finite to GLIBC_2.23
5460
5461 2016-01-25  Ricchard Henderson  <rth@redhat.com>
5462
5463         * sysdeps/alpha/fpu/libm-test-ulps: Update.
5464
5465 2016-01-25  Andreas Schwab  <schwab@suse.de>
5466
5467         [BZ #17514]
5468         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
5469         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
5470         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
5471         * nptl/tst-mutex-errorcheck.c: New file.
5472
5473 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5474
5475         [BZ #18560]
5476         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
5477         (IPCOP_semop): Likewise.
5478         (IPCOP_semget): Likewise.
5479         (IPCOP_semctl): Likewise.
5480         (IPCOP_msgsnd): Likewise.
5481         (IPCOP_msgrcv): Likewise.
5482         (IPCOP_msgget): Likewise.
5483         (IPCOP_msgctl): Likewise.
5484         (IPCOP_shmat): Likewise.
5485         (IPCOP_shmdt): Likewise.
5486         (IPCOP_shmget): Likewise.
5487         (IPCOP_shmctl): Likewise.
5488
5489 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5490
5491         * string/tst-endian.c: Include <libc-internal.h>.
5492         (do_test): Ignore tautological-compare warnings around
5493         "htobeXX (beXXtoh (i)) != i" and
5494         "htoleXX (leXXtoh (i)) != i" if-statements.
5495
5496 2016-01-24  David S. Miller  <davem@davemloft.net>
5497
5498         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
5499         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
5500         alias.
5501         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
5502         __sqrtl_finite.
5503
5504         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5505
5506 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
5507
5508         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
5509         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
5510         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
5511
5512 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5513
5514         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
5515         (thread_func): Use new function to simplify barrier check.
5516         (do_test): Use new function to simplify checking barrier exit
5517         code, and actually join the child thread.
5518
5519 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5520
5521         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
5522         semicolon.
5523         (__libc_tend): Likewise.
5524         (__libc_tabort): Likewise.
5525
5526 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
5527
5528         * sysdeps/nios2/libm-test-ulps: Update.
5529         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
5530         (__gtsf2): Likewise.
5531         (__unorddf2): Likewise.
5532         (__unordsf2): Likewise.
5533         (__ledf2): Likewise.
5534
5535 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
5536
5537         * nis/nis_table.c (__follow_path): Disable diagnostic for
5538         uninitialized variable that is a false positive for gcc 4.7.
5539         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
5540
5541 2016-01-20  Roland McGrath  <roland@hack.frob.com>
5542
5543         * sysdeps/nacl/lowlevellock-futex.h
5544         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
5545         Always evaluate PRIVATE argument.
5546
5547 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5548
5549         [BZ #19490]
5550         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
5551         (pthread_cond_broadcast): Use ENTRY/END
5552         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
5553         (pthread_cond_signal): Likewise.
5554         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
5555         Likewise.
5556         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
5557         Likewise.
5558         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
5559         Likewise.
5560
5561 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
5562
5563         * sysdeps/ieee754/dbl-64/s_finite.c
5564         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
5565         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
5566         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
5567         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
5568         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
5569
5570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
5571         (__gtsf2): Add as optional for libc.so.
5572         (__unordsf2): Likewise.
5573         (__signbit): Remove for libc.so.
5574         (__signbitl): Likewise.
5575
5576 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
5577
5578         * iconvdata/bug-iconv11.c (test_ibm93x):
5579         Use %zu printf format specifier for size_t argument.
5580
5581 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
5582
5583         * math/gen-libm-test.pl (parse_ulps): Do not reduce
5584         already-recorded ulps.
5585         * sysdeps/arm/libm-test-ulps: Regenerated.
5586         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5587         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5588         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5589
5590 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5591             Paul Pluzhnikov  <ppluzhnikov@google.com>
5592
5593         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
5594         assembler not supporting AVX-512.
5595
5596 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
5597
5598         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5599
5600 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
5601
5602         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
5603         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5604
5605         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
5606
5607         * sysdeps/arm/libm-test-ulps: Regenerated.
5608
5609 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
5610
5611         [BZ #19451]
5612         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
5613
5614 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
5615
5616         [BZ #19486]
5617         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
5618         * sysdeps/generic/fix-fp-int-convert-overflow.h
5619         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
5620         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
5621         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
5622         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
5623         Likewise.
5624         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
5625         Avoid conversions to long int where inexact exceptions
5626         could be raised.
5627         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
5628         Likewise.
5629         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
5630         Avoid conversions to long long int where inexact exceptions
5631         could be raised.
5632         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
5633         Likewise.
5634
5635 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
5636
5637         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
5638         * configure: Regenerated.
5639
5640 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5641
5642         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
5643
5644 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
5645
5646         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
5647         outside of comment.
5648
5649 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5650
5651         * nptl/tst-barrier1.c: Add description on first line.
5652         * nptl/tst-barrier2.c: Likewise.
5653         * nptl/tst-barrier3.c: Likewise.
5654         * nptl/tst-barrier4.c: Likewise.
5655         * nptl/tst-barrier5.c: Likewise.
5656
5657 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5658
5659         [BZ #18868]
5660         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
5661
5662 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5663
5664         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
5665         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5666         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
5667         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
5668         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
5669         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
5670         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
5671         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
5672         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5673         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
5674         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
5675
5676 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5677
5678         [BZ #13065]
5679         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
5680         new implementation.
5681         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
5682         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
5683         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
5684         (BARRIER_IN_THRESHOLD): New macro.
5685         * nptl/pthread_barrierattr_setpshared.c
5686         (pthread_barrierattr_setpshared): Clean up.
5687         * nptl/tst-barrier4.c: Correct comment.
5688         * nptl/tst-barrier5.c: New file.
5689         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
5690         (gen-as-const-headers): Remove lowlevelbarrier.sym.
5691         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
5692         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
5693         * nptl/lowlevelbarrier.sym: Remove.
5694         * nptl/DESIGN-barrier.txt: Remove.
5695         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
5696         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
5697         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
5698         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
5699         error.
5700         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
5701         implementation.
5702
5703 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5704
5705         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
5706         (do_child): Mask SIGRTMIN while thr is running.
5707
5708 2016-01-15  Martin Sebor  <msebor@redhat.com>
5709
5710         [BZ #19432]
5711         * iconvdata/Makefile: Add bug-iconv11.
5712         * iconvdata/bug-iconv11.c: New test.
5713         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
5714         * iconvdata/ibm933.c: Same.
5715         * iconvdata/ibm935.c: Same.
5716         * iconvdata/ibm937.c: Same.
5717         * iconvdata/ibm939.c: Same.
5718
5719 2016-01-15  Martin Sebor  <msebor@redhat.com>
5720
5721         [BZ #19443]
5722         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
5723         [DEBUG] (_ufc_set_bits): Declare used.
5724         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
5725         [DEBUG] (print_all): Declare used.
5726         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
5727         operands of the ternary ?: expression to target type.
5728         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
5729         calling the undeclared abort.
5730         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
5731
5732 2016-01-15  Martin Sebor  <msebor@redhat.com>
5733
5734         [BZ #18755]
5735         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
5736         warnings.
5737         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
5738         (__gai_create_helper_thread): Same.
5739         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
5740         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
5741         to suppress -Wmaybe-uninitialized warnings.
5742
5743 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
5744
5745         [BZ #19465]
5746         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
5747         inside if.
5748         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5749         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5750         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5751
5752 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
5753
5754         [BZ #19466]
5755         * time/tst-mktime2.c (time_t_max): Removed.
5756         (time_t_min): Likewise.
5757         (TYPE_SIGNED): New.
5758         (TYPE_MINIMUM): Likewise.
5759         (TYPE_MAXIMUM): Likewise.
5760         (TIME_T_MIN): Likewise.
5761         (TIME_T_MAX): Likewise.
5762         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
5763         and TIME_T_MIN.
5764         (do_test): Likewise.
5765
5766 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
5767
5768         [BZ #19467]
5769         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
5770         index_Fast_Unaligned_Load flag for Excavator family CPUs.
5771
5772 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
5773
5774         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
5775
5776 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
5777
5778         * benchtests/Makefile (PYTHON): Define.
5779         (bench-func): Use $(PYTHON) to run python scripts.
5780         ($(objpfx)bench-%.c): Likewise.
5781
5782 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
5783
5784         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
5785         leading slash when `file_name' is "/".
5786
5787 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
5788
5789         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
5790         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
5791         Likewise.
5792         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
5793         Likewise.
5794         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
5795         Likewise.
5796         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
5797         enum constant and macro.
5798         (PTRACE_SETSIGMASK): Likewise.
5799         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5800         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5801         (PTRACE_GETSIGMASK): Likewise.
5802         (PTRACE_SETSIGMASK): Likewise.
5803         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5804         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
5805         Likewise.
5806         (PTRACE_SETSIGMASK): Likewise.
5807         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5808         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5809         (PTRACE_GETSIGMASK): Likewise.
5810         (PTRACE_SETSIGMASK): Likewise.
5811         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5812         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
5813         Likewise.
5814         (PTRACE_SETSIGMASK): Likewise.
5815         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5816         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
5817         Likewise.
5818         (PTRACE_SETSIGMASK): Likewise.
5819         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5820         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
5821         Likewise.
5822         (PTRACE_SETSIGMASK): Likewise.
5823         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5824
5825 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
5826             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5827
5828         [BZ #19439]
5829         * math/bits/mathcalls.h
5830         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
5831         prototype.
5832         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
5833
5834 2016-01-11  Andreas Schwab  <schwab@suse.de>
5835
5836         [BZ #19253]
5837         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
5838         cache when TZDEFRULES was used.
5839         * time/tst-tzname.c: New file.
5840         * time/Makefile (test): Add tst-tzname.
5841         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
5842         * timezone/Makefile (test-zones): Add $(posixrules-file).
5843         ($(testdata)/$(posixrules-file)): New rule.
5844
5845 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5846
5847         Fix doc quoting problems with Texinfo 5
5848         Without this change, in the info file output, Texinfo 5 quotes code
5849         in text with undirected single quotes 'like this' and generates
5850         code examples that with many PDF readers cannot be cut out of PDFs
5851         and pasted into code.
5852         * manual/libc.texinfo: Configure the libc manual like the GNU
5853         Emacs manual, by using @documentencoding and setting
5854         txicodequoteundirected and txicodequotebacktick.  This way,
5855         Texinfo 5 quotes code in text with directed single quotes ‘like
5856         this’ and produces examples that can be cut out of PDFs.  This
5857         change causes Texinfo 5 to generate info files that contain UTF-8
5858         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
5859         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
5860
5861 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5862
5863         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
5864         __libc_tabort, __libc_tend): New wrappers that enforce compiler
5865         barriers to their respective compiler built-ins.
5866         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
5867         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
5868         * sysdeps/powerpc/sysdep.h: Likewise.
5869         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
5870         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
5871         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
5872
5873 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
5874
5875         * scripts/config.guess: Revert previous shebang change.
5876         * scripts/config.sub: Likewise.
5877         * scripts/mkinstalldirs: Likewise.
5878
5879 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5880
5881         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
5882         PPC_FEATURE2_HAS_IEEE128.
5883         * sysdeps/powerpc/dl-procinfo.c:
5884         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
5885
5886 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
5887
5888         [BZ #19415]
5889         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
5890         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
5891         (_dl_lookup_address): Rewrite using function resolver trampoline.
5892         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
5893         two bits in address.
5894
5895 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5896
5897         * longlong.h: Change !__SHMEDIA__ to
5898         (!defined (__SHMEDIA__) || !__SHMEDIA__).
5899         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
5900
5901 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
5902             Joseph Myers  <joseph@codesourcery.com>
5903             Mark Shinwell  <shinwell@codesourcery.com>
5904             Andrew Stubbs  <ams@codesourcery.com>
5905             Rich Felker <dalias@libc.org>
5906
5907         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
5908
5909 2016-01-07  Richard Henderson  <rth@redhat.com>
5910
5911         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
5912
5913 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5914
5915         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
5916         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
5917         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
5918         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
5919         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
5920
5921 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
5922             Joseph Myers  <joseph@codesourcery.com>
5923
5924         * timezone/private.h: Update from tzcode 2015g.
5925         * timezone/tzfile.h: Likewise.
5926         * timezone/tzselect.ksh: Likewise.
5927         * timezone/zdump.c: Likewise.
5928         * timezone/zic.c: Likewise.
5929         * timezone/ialloc.c: Remove file.
5930         * timezone/scheck.c: Likewise.
5931         * timezone/Makefile (extra-objs): Remove variable.
5932         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
5933         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
5934         -Wno-maybe-uninitialized.
5935         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
5936         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
5937         (CFLAGS-ialloc.c): Remove variable.
5938         (CFLAGS-scheck.c): Likewise.
5939         * timezone/README: Update list of files from tzcode.
5940
5941 2016-01-07  Khem Raj  <raj.khem@gmail.com>
5942
5943         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
5944         instead of __fxprintf when _LIBC is undefined.
5945
5946 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
5947
5948         * catgets/test-gencat.sh: Remove space after shebang.
5949         * conform/GlibcConform.pm: Likewise.
5950         * conform/check-header-lists.sh: Likewise.
5951         * conform/conformtest.pl: Likewise.
5952         * conform/linknamespace.pl: Likewise.
5953         * conform/list-header-symbols.pl: Likewise.
5954         * debug/catchsegv.sh: Likewise.
5955         * elf/genrtldtbl.awk: Likewise.
5956         * elf/tst-pathopt.sh: Likewise.
5957         * elf/tst-rtld-load-self.sh: Likewise.
5958         * grp/tst_fgetgrent.sh: Likewise.
5959         * iconvdata/gen-8bit-gap-1.sh: Likewise.
5960         * iconvdata/gen-8bit-gap.sh: Likewise.
5961         * iconvdata/gen-8bit.sh: Likewise.
5962         * iconvdata/run-iconv-test.sh: Likewise.
5963         * intl/tst-gettext.sh: Likewise.
5964         * intl/tst-gettext2.sh: Likewise.
5965         * intl/tst-gettext4.sh: Likewise.
5966         * intl/tst-gettext6.sh: Likewise.
5967         * intl/tst-translit.sh: Likewise.
5968         * io/ftwtest-sh: Likewise.
5969         * libio/test-freopen.sh: Likewise.
5970         * locale/gen-translit.pl: Likewise.
5971         * malloc/tst-mtrace.sh: Likewise.
5972         * manual/check-safety.sh: Likewise.
5973         * manual/libc-texinfo.sh: Likewise.
5974         * manual/tsort.awk: Likewise.
5975         * manual/xtract-typefun.awk: Likewise.
5976         * nptl/tst-cancel-wrappers.sh: Likewise.
5977         * nptl/tst-tls6.sh: Likewise.
5978         * posix/globtest.sh: Likewise.
5979         * posix/tst-getconf.sh: Likewise.
5980         * posix/wordexp-tst.sh: Likewise.
5981         * scripts/check-c++-types.sh: Likewise.
5982         * scripts/check-local-headers.sh: Likewise.
5983         * scripts/config.guess: Likewise.
5984         * scripts/config.sub: Likewise.
5985         * scripts/cpp: Likewise.
5986         * scripts/cross-test-ssh.sh: Likewise.
5987         * scripts/documented.sh: Likewise.
5988         * scripts/evaluate-test.sh: Likewise.
5989         * scripts/gen-libc-abis: Likewise.
5990         * scripts/gen-sorted.awk: Likewise.
5991         * scripts/list-fixed-bugs.py: Likewise.
5992         * scripts/merge-test-results.sh: Likewise.
5993         * scripts/mkinstalldirs: Likewise.
5994         * scripts/rellns-sh: Likewise.
5995         * scripts/test-installation.pl: Likewise.
5996         * scripts/update-copyrights: Likewise.
5997         * stdio-common/tst-printf.sh: Likewise.
5998         * stdio-common/tst-unbputc.sh: Likewise.
5999         * stdlib/tst-fmtmsg.sh: Likewise.
6000         * stdlib/tst-setcontext3.sh: Likewise.
6001         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
6002         * sysdeps/unix/make-syscalls.sh: Likewise.
6003
6004 2016-01-06  John David Anglin  <dave.anglin@bell.net>
6005
6006         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
6007         asm stw with atomic_exchange_rel.  Add explanatory comment.
6008         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
6009         Likewise.
6010
6011 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
6012
6013         [BZ #19122]
6014         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
6015         * sysdeps/generic/dl-unistd.h: New file.
6016         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
6017
6018 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
6019
6020          [BZ #19122]
6021          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
6022          * sysdeps/generic/dl-mman.h: New file.
6023          * sysdeps/mach/hurd/dl-mman.h: Likewise.
6024
6025 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
6026
6027         * manual/texinfo.tex: Update to version 2016-01-04.21 with
6028         trailing whitespace removed.
6029         * scripts/config.guess: Update to version 2016-01-01.
6030         * scripts/config.sub: Update to version 2016-01-01.
6031         * scripts/move-if-change: Update from gnulib.
6032
6033 2016-01-04  Anton Blanchard  <anton@samba.org>
6034
6035         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
6036         for array indices.
6037         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
6038
6039 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
6040
6041         * NEWS: Update copyright dates.
6042         * catgets/gencat.c (print_version): Likewise.
6043         * csu/version.c (banner): Likewise.
6044         * debug/catchsegv.sh: Likewise.
6045         * debug/pcprofiledump.c (print_version): Likewise.
6046         * debug/xtrace.sh (do_version): Likewise.
6047         * elf/ldconfig.c (print_version): Likewise.
6048         * elf/ldd.bash.in: Likewise.
6049         * elf/pldd.c (print_version): Likewise.
6050         * elf/sotruss.sh: Likewise.
6051         * elf/sprof.c (print_version): Likewise.
6052         * iconv/iconv_prog.c (print_version): Likewise.
6053         * iconv/iconvconfig.c (print_version): Likewise.
6054         * locale/programs/locale.c (print_version): Likewise.
6055         * locale/programs/localedef.c (print_version): Likewise.
6056         * login/programs/pt_chown.c (print_version): Likewise.
6057         * malloc/memusage.sh (do_version): Likewise.
6058         * malloc/memusagestat.c (print_version): Likewise.
6059         * malloc/mtrace.pl: Likewise.
6060         * manual/libc.texinfo: Likewise.
6061         * nptl/version.c (banner): Likewise.
6062         * nscd/nscd.c (print_version): Likewise.
6063         * nss/getent.c (print_version): Likewise.
6064         * nss/makedb.c (print_version): Likewise.
6065         * posix/getconf.c (main): Likewise.
6066         * scripts/test-installation.pl: Likewise.
6067         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
6068
6069         * All files with FSF copyright notices: Update copyright dates
6070         using scripts/update-copyrights.
6071         * intl/plural.c: Regenerated.
6072         * locale/programs/charmap-kw.h: Likewise.
6073         * locale/programs/locfile-kw.h: Likewise.
6074
6075 2016-01-02  Helge Deller  <deller@gmx.de>
6076
6077         [BZ #19285]
6078         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
6079         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
6080         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
6081         (MADV_xxK_PAGES): Remove.
6082
6083 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
6084
6085         [BZ #15421]
6086         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
6087         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
6088         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
6089         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
6090
6091 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
6092
6093         [BZ #19408]
6094         * sysdeps/unix/sysv/linux/personality.c: New file.
6095         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
6096         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
6097         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
6098         (sysdep_routines): Add personality.
6099         (tests): Add tst-personality.
6100         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
6101         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
6102         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
6103         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
6104         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
6105         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
6106         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
6107         Likewise.
6108         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
6109         Likewise.
6110         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
6111         Likewise.
6112         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
6113         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
6114         Likewise.
6115
6116 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
6117
6118         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
6119         (PATH_ARM_SYSTYPE): Remove.
6120         (PATH_CPUINFO): Likewise.
6121         (IO_BASE_FOOTBRIDGE): Likewise.
6122         (IO_SHIFT_FOOTBRIDGE): Likewise.
6123         (struct platform): Likewise.
6124         (init_iosys): Remove compatibility code for 2.4 kernels.
6125         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
6126
6127 2015-12-29  Florian Weimer  <fweimer@redhat.com>
6128
6129         * malloc/tst-malloc-thread-fail.c: New file.
6130         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
6131         (tst-malloc-thread-fail): Link against libpthread.
6132
6133 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
6134
6135         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
6136         (get_parser): New function.
6137         (main): New function.
6138
6139 2015-12-29  Rob Wu  <rob@robwu.nl>
6140
6141         [BZ #19369]
6142         * resolv/res_init.c (__res_vinit): Reset defdname before use.
6143
6144 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
6145
6146         [BZ #19270]
6147         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6148
6149 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
6150
6151         [BZ #15421]
6152         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
6153
6154 2015-12-23  Torvald Riegel  <triegel@redhat.com>
6155
6156         [BZ #13690]
6157         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
6158         after releasing it.
6159         (__lll_robust_unlock): Likewise.
6160         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6161         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
6162         (lll_robust_unlock): Likewise.
6163         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
6164         Prevent warnings in callers.
6165
6166 2015-12-23  Florian Weimer  <fweimer@redhat.com>
6167
6168         * malloc/arena.c (list_lock): Update comment.
6169
6170 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6171
6172         * sysdeps/powerpc/hwcapinfo.c: Export symbol
6173         __parse_hwcap_and_convert_at_platform to libc.a.
6174
6175 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6176
6177         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
6178         platform and feature support for POWER9.
6179         * sysdeps/powerpc/dl-procinfo.h: Likewise.
6180         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
6181         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
6182         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
6183         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
6184         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
6185         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
6186         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
6187
6188 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6189
6190         Harmonize generic stdio-lock support with nptl
6191
6192         This fixes build when _IO_funlockfile is a macro, fixes build where
6193         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
6194         stack unwind.
6195
6196         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
6197         _IO_release_lock ): Use cleanup attribute on new
6198         _IO_acquire_lock_file variable instead of assuming that
6199         _IO_release_lock will be called.
6200         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
6201         _IO_acquire_lock_needs_exceptions_enabled.
6202         (_IO_acquire_lock_clear_flags2): New macro.
6203
6204 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6205
6206         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
6207
6208 2015-12-21  Florian Weimer  <fweimer@redhat.com>
6209
6210         [BZ #19182]
6211         * malloc/arena.c (list_lock): Document lock ordering requirements.
6212         (free_list_lock): New lock.
6213         (ptmalloc_lock_all): Comment on free_list_lock.
6214         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
6215         (detach_arena): Update comment.  free_list_lock is now needed.
6216         (_int_new_arena): Use free_list_lock around detach_arena call.
6217         Acquire arena lock after list_lock.  Add comment, including FIXME
6218         about incorrect synchronization.
6219         (get_free_list): Switch to free_list_lock.
6220         (reused_arena): Acquire free_list_lock around detach_arena call
6221         and attached threads counter update.  Add two FIXMEs about
6222         incorrect synchronization.
6223         (arena_thread_freeres): Switch to free_list_lock.
6224         * malloc/malloc.c (struct malloc_state): Update comments to
6225         mention free_list_lock.
6226
6227 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6228
6229         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
6230         Remove functions.
6231         (sloww, sloww1): Accept argument to offset quadrant.
6232         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
6233         quadrant.
6234         (__sin, __cos): Consolidate common code into new functions.
6235         (reduce_sincos_1, do_sincos_1): New functions.
6236         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
6237
6238         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
6239         code to new functions.
6240         (reduce_sincos_2, do_sincos_2): New functions.
6241         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
6242
6243         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
6244         common code for sincos.
6245         (__cos) [!IN_SINCOS]: Likewise.
6246         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
6247         New function.
6248         (__sincos): Use it.
6249
6250 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
6251
6252         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
6253         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
6254         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
6255
6256 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
6257
6258         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
6259         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
6260         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
6261         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
6262         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
6263         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
6264         index_Prefer_No_VZEROUPPER): New feature.
6265         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
6266         Prefer_No_VZEROUPPER for Knights Landing.
6267
6268 015-12-18  Torvald Riegel  <triegel@redhat.com>
6269
6270         * math/atest-exp2.c (mp_exp_m1): Remove.
6271
6272 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6273
6274         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
6275         syscalls.
6276         (__SYSCALL0): New macro.
6277         (__SYSCALL1): Likewise.
6278         (__SYSCALL2): Likewise.
6279         (__SYSCALL3): Likewise.
6280         (__SYSCALL4): Likewise.
6281         (__SYSCALL5): Likewise.
6282         (__SYSCALL6): Likewise.
6283         (__SYSCALL_CONCAT_X): Likewise.
6284         (__SYSCALL_CONCAT): Likewise.
6285         (__SYSCALL_DIST): Likewise.
6286         (__SYSCALL_CALL): Likewise.
6287
6288 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
6289
6290         [BZ #19363]
6291         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
6292
6293 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6294
6295         [BZ #19375]
6296         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
6297         negative subnormals.
6298
6299 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
6300
6301         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
6302         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
6303         (INTERNAL_SYSCALL_NCS): Use it.
6304         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6305
6306 2015-12-16  Florian Weimer  <fweimer@redhat.com>
6307
6308         [BZ #19243]
6309         * malloc/arena.c (get_free_list): Remove assert and adjust
6310         reference count handling.  Add comment about reused_arena
6311         interaction.
6312         (reused_arena): Add comments abount get_free_list interaction.
6313         * malloc/tst-malloc-thread-exit.c: New file.
6314         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
6315         (tst-malloc-thread-exit): Link against libpthread.
6316
6317 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6318
6319         [BZ #19367]
6320         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
6321         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
6322         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
6323         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
6324         (index_Prefer_MAP_32BIT_EXEC): Likewise.
6325
6326 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6327
6328         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
6329         Silvermont optimizations for Knights Landing.
6330
6331 2015-12-15  Andreas Schwab  <schwab@suse.de>
6332
6333         [BZ #17197]
6334         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
6335         immediately after emitting SI.
6336         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
6337         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
6338         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
6339         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
6340         * iconvdata/bug-iconv10.c: New file.
6341         * iconvdata/Makefile (tests): Add bug-iconv10.
6342         ($(objpfx)bug-iconv10.out): New rule.
6343
6344 2015-12-15  Florian Weimer  <fweimer@redhat.com>
6345
6346         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
6347         aliasing violation.
6348
6349 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
6350
6351         [BZ #18472]
6352         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
6353         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
6354         conditionals for them.
6355         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
6356         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
6357         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
6358         sys/kdaemon.h.
6359         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
6360         compat-only syscall, obsoleted in glibc 2.23.
6361         (create_module): Likewise.
6362         (get_kernel_syms): Likewise.
6363         (query_module): Likewise.
6364         (uselib): Likewise.
6365         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
6366
6367 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
6368
6369         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
6370         <linux/version.h>.
6371         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
6372         conditional code.
6373         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
6374         and ioshift_name initialization.
6375
6376 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6377
6378         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
6379         Fix indentation.
6380
6381 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6382
6383         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
6384
6385 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6386
6387         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
6388
6389 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
6390             Jakub Wilk  <jwilk@debian.org>
6391
6392         [BZ #19347]
6393         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
6394         to change the group of the device to the tty group.
6395
6396 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
6397
6398         Split large string section; add truncation advice
6399         * manual/examples/strncat.c: Remove.
6400         This example was misleading, as the code would have undefined
6401         behavior if "hello" was longer than SIZE.  Anyway, the manual
6402         shouldn't encourage strncpy+strncat for this sort of thing.
6403         * manual/string.texi (Copying Strings and Arrays): Split into
6404         three sections Copying Strings and Arrays, Concatenating Strings,
6405         and Truncating Strings, as this section was way too long.  All
6406         cross-referenced changed.  Add advice about string-truncation
6407         functions.  Remove misleading strncat example.
6408
6409 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
6410
6411         * manual/nss.texi (NSS Modules Interface): Document
6412         NSS_STATUS_NOTFOUND and SUCCESS.
6413
6414 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6415
6416         [BZ 18568]
6417         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
6418         201505L, for Unicode 8.
6419
6420 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
6421
6422         * locale/C-translit.h: Regenerate.
6423
6424 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6425
6426         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
6427         and U+0153.
6428
6429 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
6430
6431         [BZ #19351]
6432         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
6433         expanding log(1+z), compare z rather than its square with epsilon
6434         to determine when to avoid evaluating the expansion.
6435
6436         [BZ #19350]
6437         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
6438         Increase overflow threshold.
6439
6440         [BZ #19349]
6441         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
6442         when small.
6443
6444         * sysdeps/unix/sysv/linux/i386/kernel-features.h
6445         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6446         New macro.
6447         [__LINUX_KERNEL_VERSION >= 0x040300]
6448         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6449         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6450         Likewise.
6451         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6452         Likewise.
6453         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6454         Likewise.
6455         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6456         Likewise.
6457         [__LINUX_KERNEL_VERSION >= 0x040300]
6458         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6459         [__LINUX_KERNEL_VERSION >= 0x040300]
6460         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6461         [__LINUX_KERNEL_VERSION >= 0x040300]
6462         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6463         [__LINUX_KERNEL_VERSION >= 0x040300]
6464         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6465         [__LINUX_KERNEL_VERSION >= 0x040300]
6466         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6467         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6468         Likewise.
6469         [__LINUX_KERNEL_VERSION >= 0x040300]
6470         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6471         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6472         Likewise.
6473         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6474         Likewise.
6475         [__LINUX_KERNEL_VERSION >= 0x040300]
6476         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6477         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6478         Likewise.
6479         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6480         Likewise.
6481         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6482         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
6483         Likewise.
6484         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
6485         Likewise.
6486         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6487         Likewise.
6488         [__LINUX_KERNEL_VERSION >= 0x040300]
6489         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6490         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6491         Likewise.
6492         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6493         Likewise.
6494         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6495         Likewise.
6496         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6497         Likewise.
6498         [__LINUX_KERNEL_VERSION >= 0x040300]
6499         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6500         [__LINUX_KERNEL_VERSION >= 0x040300]
6501         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6502         [__LINUX_KERNEL_VERSION >= 0x040300]
6503         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6504         [__LINUX_KERNEL_VERSION >= 0x040300]
6505         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6506         [__LINUX_KERNEL_VERSION >= 0x040300]
6507         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6508         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6509         Likewise.
6510         [__LINUX_KERNEL_VERSION >= 0x040300]
6511         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6512         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6513         Likewise.
6514         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6515         Likewise.
6516         [__LINUX_KERNEL_VERSION >= 0x040300]
6517         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6518         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6519         Likewise.
6520         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6521         Likewise.
6522         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6523         (__ASSUME_SOCKET_SYSCALL): Likewise.
6524         (__ASSUME_BIND_SYSCALL): Likewise.
6525         (__ASSUME_CONNECT_SYSCALL): Likewise.
6526         (__ASSUME_LISTEN_SYSCALL): Likewise.
6527         (__ASSUME_ACCEPT_SYSCALL): Likewise.
6528         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6529         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6530         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6531         (__ASSUME_SEND_SYSCALL): Likewise.
6532         (__ASSUME_SENDTO_SYSCALL): Likewise.
6533         (__ASSUME_RECV_SYSCALL): Likewise.
6534         (__ASSUME_RECVFROM_SYSCALL): Likewise.
6535         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
6536         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6537         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6538         (__ASSUME_SENDMSG_SYSCALL): Likewise.
6539         (__ASSUME_RECVMSG_SYSCALL): Likewise.
6540         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6541         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
6542         Likewise.
6543         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
6544         Likewise.
6545         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
6546         Likewise.
6547         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
6548         Likewise.
6549         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
6550         Likewise.
6551         [__LINUX_KERNEL_VERSION >= 0x020625]
6552         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6553         [__LINUX_KERNEL_VERSION >= 0x020625]
6554         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6555         [__LINUX_KERNEL_VERSION >= 0x020625]
6556         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6557         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
6558         Likewise.
6559         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
6560         Likewise.
6561         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
6562         Likewise.
6563         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
6564         Likewise.
6565         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
6566         Likewise.
6567         [__LINUX_KERNEL_VERSION >= 0x020625]
6568         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6569         [__LINUX_KERNEL_VERSION >= 0x020625]
6570         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6571         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
6572         Likewise.
6573         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
6574         Likewise.
6575
6576 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6577
6578         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
6579         record the current if the current ABI and CPU support the FP64
6580         extension.
6581         (has-modd-spreg): Define to record the current if the current ABI and
6582         CPU support 32-bit floating point values in odd FPU registers.
6583         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6584         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
6585         $(has-modd-spreg) equals yes.
6586         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
6587         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
6588         $(has-modd-spreg) equal yes.
6589
6590 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6591
6592         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
6593         basename.
6594
6595 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
6596
6597         * benchtests/Makefile (bench-math): Move ffs and ffsll...
6598         (bench-string): ... here.
6599         (bench): Add bench-string.
6600         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
6601         to *-benchset to reflect what they are.
6602         (benchset): Adjust.
6603
6604         * benchtests/sincos-inputs: Add inputs from sin-inputs and
6605         cos-inputs.
6606
6607 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
6608
6609         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
6610         __attribute__ ((__simd__)) for vector math function declarations.
6611
6612 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6613
6614         Fix typo in strncat, wcsncat manual entries
6615         * manual/string.texi (Copying and Concatenation): Fix typos in
6616         sample implementations of strncat and wcsncat, by having them use
6617         the old value of the destination length, not the new one.
6618
6619 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
6620
6621         [BZ #16961]
6622         [BZ #16962]
6623         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
6624         string on the stack for strtod.
6625         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
6626         a string on the stack for strtof.
6627         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
6628         constructing a string on the stack for strtold.
6629         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
6630         __strtold_nan to GLIBC_PRIVATE.
6631         * math/test-nan-overflow.c: New file.
6632         * math/test-nan-payload.c: Likewise.
6633         * math/Makefile (tests): Add test-nan-overflow and
6634         test-nan-payload.
6635
6636 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6637
6638         Consistency about byte vs character in string.texi
6639         * manual/string.texi (String and Array Utilities):
6640         Distinguish more carefully among bytes, multibyte characters,
6641         and wide characters.  Use "byte" when talking about C 'char',
6642         to distinguish it more clearly from multibyte characters.
6643         Say "wide character" or "multibyte character" instead of
6644         "character", when a wide or multibyte character is intended.
6645         Similarly for "multibyte string" versus "string".
6646         Define these terms more carefully.
6647
6648 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
6649
6650         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
6651         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
6652         Likewise.
6653         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6654         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6655         * sysdeps/sh/math_private.h: New file.
6656         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
6657         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
6658         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
6659         long double function name.
6660         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6661         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6662         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6663         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6664         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6665         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
6666         Remove __finitel, __isinfl, and __isnanl.
6667         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6668         Likewise.
6669         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6670         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6671         Remove __finitel.
6672         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6673         Likewise.
6674         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6675
6676 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
6677
6678         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
6679         installed libmvec_nonshared.a.
6680
6681 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6682
6683         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
6684         (sysdep_routines): Likewise.
6685         (sysdep-rtld-routines): Likewise.
6686         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
6687         [$(subdir) = nptl](tests-static): test-get_hwcap-static
6688         * sysdeps/powerpc/Versions: Added new
6689         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
6690         * sysdeps/powerpc/hwcapinfo.c: New file.
6691         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
6692         and parse hwcap, hwcap2 and platform number information.
6693         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
6694         to store HWCAP+HWCAP2 and platform number.
6695         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
6696         for HWCAP+HWCAP2 and platform number in the TCB.
6697         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
6698         the HWCAP, HWCAP2 and platform number in the TCB.
6699         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
6700         (TLS_INIT_TP): Included calls to add the hwcap and
6701         at_platform values in the TCB in TP initialization.
6702         (TLS_DEFINE_INIT_TP): Likewise.
6703         (THREAD_GET_HWCAP): New macro.
6704         (THREAD_SET_HWCAP): Likewise.
6705         (THREAD_GET_AT_PLATFORM): Likewise.
6706         (THREAD_SET_AT_PLATFORM): Likewise.
6707         * sysdeps/powerpc/powerpc32/dl-machine.h:
6708         (dl_platform_init): New function that calls
6709         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
6710         powerpc32.
6711         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
6712         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
6713         this functionality, static linking case.
6714         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
6715         linking case.
6716         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
6717         __parse_hwcap_and_convert_at_platform for the static linking case.
6718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
6719         Included the new __parse_hwcap_and_convert_at_platform symbol in the
6720         ABI list for GLIBC 2.23.
6721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
6722         Likewise.
6723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
6724         Likewise.
6725
6726 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
6727
6728         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
6729         * configure: Regenerate.
6730         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
6731         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
6732
6733 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
6734
6735         * iconvdata/ibm930.c: Add comment explaining encoding uses.
6736         * iconvdata/ibm933.c: Likewise.
6737         * iconvdata/ibm935.c: Likewise.
6738         * iconvdata/ibm937.c: Likewise.
6739         * iconvdata/ibm939.c: Likewise.
6740
6741 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6742
6743         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
6744         pthread_join.
6745         * nptl/tst-cancel21.c (tf): Likewise.
6746
6747 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
6748
6749         [BZ #19313]
6750         * bits/typesizes.h (__CPU_MASK_TYPE): New.
6751         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6752         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6753         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
6754         Likewise.
6755         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
6756         Likewise.
6757         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
6758         Likewise.
6759         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
6760         Likewise.
6761         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
6762         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
6763         unsigned long int with __CPU_MASK_TYPE.
6764
6765 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6766
6767         * sysdeps/aarch64/libm-test-ulps: Regenerated.
6768
6769 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
6770
6771         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
6772         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
6773         t512.x.
6774         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
6775
6776 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
6777
6778         [BZ #19214]
6779         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
6780         argument to return extended model.  Update family and model
6781         with extended family and model when family == 0x0f.
6782         (init_cpu_features): Updated.
6783
6784 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6785
6786         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
6787         signed off_t, so 32bit bigger than 2GiB values are fine actually.
6788
6789         * sysdeps/mach/hurd/mmap64.c: New file.
6790
6791 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
6792
6793         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
6794         rights for its main user thread in NEWTASK.
6795
6796 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
6797
6798         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
6799         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
6800
6801 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
6802
6803         [BZ #14259]
6804         * Makeconfig: Rename localedir to complocaledir.
6805         Rename inst_localedir to inst_complocaledir.
6806         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
6807         * config.make.in: Use complocaledir and libc_cv_complocaledir.
6808         * configure.ac: Use libc_cv_complocaledir.
6809         * configure: Regenerate.
6810         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
6811         -DCOMPLOCALEDIR.
6812         * locale/findlocale.c: Use COMPLOCALEDIR.
6813         * locale/loadarchive.c: Likewise.
6814         * locale/programs/locale.c: Likewise.
6815         * locale/programs/localedef.c: Likewise.
6816         * locale/programs/locarchive.c: Likewise.
6817         * localedata/Makefile: Use inst_complocaledir.
6818         * sysdeps/gnu/configure: Regenerate.
6819         * sysdeps/hppa/configure: Regenerate.
6820         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6821         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6823         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6824         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6825         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6826         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6827
6828 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
6829
6830         [BZ #19058]
6831         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
6832         AS_NEEDED.
6833         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
6834         workaround.
6835         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
6836         libmvec-static-only-routines): Added new file.
6837         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
6838
6839 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6840
6841         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
6842         of interrupted RPC instead of restoring it.
6843
6844         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
6845         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
6846         libc_hidden_def.
6847         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
6848         into initialized data instead of common. Define rtld_hidden_data_def.
6849         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
6850         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
6851         libc_hidden_def.
6852         (if_freenameindex): Add libc_hidden_weak.
6853         (if_nameindex): Add libc_hidden_weak.
6854         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
6855         __open64.
6856         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
6857         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
6858         * sysdeps/mach/nanosleep.c: Include <time.h>
6859         (__nanosleep): Rename to __libc_nanosleep.
6860         (__nanosleep): Add weak_alias.
6861         (nanosleep): Update alias.
6862
6863 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
6864
6865         * stdlib/strtod_nan.c: New file.
6866         * stdlib/strtod_nan_double.h: Likewise.
6867         * stdlib/strtod_nan_float.h: Likewise.
6868         * stdlib/strtod_nan_main.c: Likewise.
6869         * stdlib/strtod_nan_narrow.h: Likewise.
6870         * stdlib/strtod_nan_wide.h: Likewise.
6871         * stdlib/strtof_nan.c: Likewise.
6872         * stdlib/strtold_nan.c: Likewise.
6873         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
6874         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
6875         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
6876         * wcsmbs/wcstod_nan.c: Likewise.
6877         * wcsmbs/wcstof_nan.c: Likewise.
6878         * wcsmbs/wcstold_nan.c: Likewise.
6879         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
6880         strtold_nan.
6881         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
6882         wcstof_nan.
6883         * include/stdlib.h (__strtof_nan): Declare and use
6884         libc_hidden_proto.
6885         (__strtod_nan): Likewise.
6886         (__strtold_nan): Likewise.
6887         (__wcstof_nan): Likewise.
6888         (__wcstod_nan): Likewise.
6889         (__wcstold_nan): Likewise.
6890         * include/wchar.h (____wcstoull_l_internal): Declare.
6891         * stdlib/strtod_l.c: Do not include <ieee754.h>.
6892         (____strtoull_l_internal): Remove declaration.
6893         (STRTOF_NAN): Define macro.
6894         (SET_MANTISSA): Remove macro.
6895         (STRTOULL): Likewise.
6896         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
6897         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
6898         (STRTOF_NAN): Define macro.
6899         (SET_MANTISSA): Remove macro.
6900         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
6901         (SET_MANTISSA): Remove macro.
6902         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
6903         macro.
6904         (SET_MANTISSA): Remove macro.
6905         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
6906         macro.
6907         (SET_MANTISSA): Remove macro.
6908         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
6909         (SET_MANTISSA): Remove macro.
6910         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
6911         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
6912         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
6913
6914         [BZ #19266]
6915         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
6916         upper case and lower case letters inside NAN(), not using TOLOWER.
6917         * stdlib/tst-strtod-nan-locale-main.c: New file.
6918         * stdlib/tst-strtod-nan-locale.c: Likewise.
6919         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
6920         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
6921         Depend on $(gen-locales).
6922         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
6923         * wcsmbs/tst-wcstod-nan-locale.c: New file.
6924         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
6925         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
6926         Depend on $(gen-locales).
6927         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
6928
6929 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
6930
6931         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
6932
6933         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6934         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
6935         __finitel, __isinfl, and __isnanl.
6936         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6937         Likewise.
6938         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6939         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
6940         __finitel.
6941         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6942         Likewise.
6943         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6944
6945 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
6946
6947         * malloc/memusage.c (me): Remove redundant getenv call.
6948
6949 2015-10-24  Florian Weimer  <fweimer@redhat.com>
6950
6951         [BZ #19143]
6952         [BZ #19164]
6953         * nptl/check-cpuset.h: Remove.
6954         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
6955         Remove CPU set size check.
6956         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
6957         Likewise.
6958         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
6959         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6960         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
6961         (__pthread_setaffinity_new): Remove CPU set size check.
6962         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6963         (__kernel_cpumask_size): Remove.
6964         (__sched_setaffinity_new): Remove CPU set size check.
6965         * manual/threads.texi (Default Thread Attributes): Remove stale
6966         reference to check_cpuset_attr, determine_cpumask_size in comment.
6967         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
6968         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
6969         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
6970         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
6971         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
6972         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
6973         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
6974         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
6975         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
6976         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
6977         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
6978         skeleton test file.
6979         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
6980         tst-affinity-pid.
6981
6982 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6983
6984         * scripts/update-abilist.sh: New file.
6985         * Makefile (+subdir_targets): Add subdir_update-all-abi.
6986         * Makerules (update-all-abi-%, update-all-abi)
6987         (subdir_update-all-abi): New targets.
6988         * elf/Makefile (update-all-abi): New target.
6989
6990 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6991
6992         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
6993         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
6994         (__libc_lock_define_initialized): Use it.
6995         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
6996         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
6997         * malloc/malloc.c (main_arena): Likewise.
6998         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6999         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
7000
7001 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
7002
7003         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
7004         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
7005         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7006         (PTRACE_O_MASK): Update value.
7007         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
7008         New value in enum __ptrace_setoptions.
7009         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7010         (PTRACE_O_MASK): Update value.
7011         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
7012         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7013         (PTRACE_O_MASK): Update value.
7014         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
7015         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7016         (PTRACE_O_MASK): Update value.
7017         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
7018         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7019         (PTRACE_O_MASK): Update value.
7020         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
7021         New value in enum __ptrace_setoptions.
7022         (PTRACE_O_MASK): Update value.
7023         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
7024         New value in enum __ptrace_setoptions.
7025         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7026         (PTRACE_O_MASK): Update value.
7027
7028         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
7029         New macro.
7030         (PACKET_AUXDATA): Likewise.
7031         (PACKET_ORIGDEV): Likewise.
7032         (PACKET_VERSION): Likewise.
7033         (PACKET_HDRLEN): Likewise.
7034         (PACKET_RESERVE): Likewise.
7035         (PACKET_TX_RING): Likewise.
7036         (PACKET_LOSS): Likewise.
7037         (PACKET_VNET_HDR): Likewise.
7038         (PACKET_TX_TIMESTAMP): Likewise.
7039         (PACKET_TIMESTAMP): Likewise.
7040         (PACKET_FANOUT): Likewise.
7041         (PACKET_TX_HAS_OFF): Likewise.
7042         (PACKET_QDISC_BYPASS): Likewise.
7043         (PACKET_ROLLOVER_STATS): Likewise.
7044         (PACKET_FANOUT_DATA): Likewise.
7045         (PACKET_MR_UNICAST): Likewise.
7046
7047         [BZ #19242]
7048         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
7049         (TOUPPER): Likewise.
7050         * stdlib/tst-strtol-locale-main.c: New file.
7051         * stdlib/tst-strtol-locale.c: Likewise.
7052         * stdlib/Makefile (tests): Add tst-strtol-locale.
7053         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
7054         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
7055         Depend on $(gen-locales).
7056         * wcsmbs/tst-wcstol-locale.c: New file.
7057         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
7058         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
7059         tr_TR.ISO-8859-9.
7060         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
7061         Depend on $(gen-locales).
7062
7063 2015-11-20  Roland McGrath  <roland@hack.frob.com>
7064
7065         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
7066         __glibc_likely instead of __builtin_expect.  After falling back to
7067         dyncode_create in a non-ET_DYN case, use the allocate_code_data
7068         system interface to register the code pages as occupied.
7069
7070 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
7071
7072         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7073         [!ARM_MATH_PRIVATE_H].
7074         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
7075         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7076         [!HPPA_MATH_PRIVATE_H].
7077         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
7078         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
7079         to [!I386_MATH_PRIVATE_H].
7080         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
7081         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
7082         Change guard to [!M68K_MATH_PRIVATE_H].
7083         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
7084         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
7085         guard to [!MICROBLAZE_MATH_PRIVATE_H].
7086         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
7087         macro.
7088         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7089         [!MIPS_MATH_PRIVATE_H].
7090         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
7091         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7092         [!NIO2_MATH_PRIVATE_H].
7093         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
7094         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7095         [!TILE_MATH_PRIVATE_H].
7096         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
7097
7098         [BZ #15421]
7099         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
7100         initialize with 0 and define as weak alias of __signgam.
7101         * include/math.h [!_ISOMAC] (__signgam): Declare.
7102         * math/Makefile (libm-calls): Add w_lgamma_compat.
7103         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
7104         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
7105         test-signgam-ullong-init.
7106         (tests-static): Add test-signgam-uchar-static,
7107         test-signgam-uchar-init-static, test-signgam-uint-static,
7108         test-signgam-uint-init-static, test-signgam-ullong-static and
7109         test-signgam-ullong-init-static.
7110         (CFLAGS-test-signgam-uchar.c): New variable.
7111         (CFLAGS-test-signgam-uchar-init.c): Likewise.
7112         (CFLAGS-test-signgam-uchar-static.c): Likewise.
7113         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
7114         (CFLAGS-test-signgam-uint.c): Likewise.
7115         (CFLAGS-test-signgam-uint-init.c): Likewise.
7116         (CFLAGS-test-signgam-uint-static.c): Likewise.
7117         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
7118         (CFLAGS-test-signgam-ullong.c): Likewise.
7119         (CFLAGS-test-signgam-ullong-init.c): Likewise.
7120         (CFLAGS-test-signgam-ullong-static.c): Likewise.
7121         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
7122         * math/Versions (libm): Add GLIBC_2.23.
7123         * math/lgamma-compat.h: New file.
7124         * math/test-signgam-main.c: Likewise.
7125         * math/test-signgam-uchar-init-static.c: Likewise.
7126         * math/test-signgam-uchar-init.c: Likewise.
7127         * math/test-signgam-uchar-static.c: Likewise.
7128         * math/test-signgam-uchar.c: Likewise.
7129         * math/test-signgam-uint-init-static.c: Likewise.
7130         * math/test-signgam-uint-init.c: Likewise.
7131         * math/test-signgam-uint-static.c: Likewise.
7132         * math/test-signgam-uint.c: Likewise.
7133         * math/test-signgam-ullong-init-static.c: Likewise.
7134         * math/test-signgam-ullong-init.c: Likewise.
7135         * math/test-signgam-ullong-static.c: Likewise.
7136         * math/test-signgam-ullong.c: Likewise.
7137         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
7138         wrapper of w_lgamma_main.c.
7139         * math/w_lgamma_compat.c: New file.
7140         * math/w_lgamma_compatf.c: Likewise.
7141         * math/w_lgamma_compatl.c: Likewise.
7142         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
7143         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7144         defining compatibility symbols.
7145         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
7146         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
7147         wrapper of w_lgammaf_main.c.
7148         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
7149         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7150         defining compatibility symbols.
7151         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
7152         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
7153         wrapper of w_lgammal_main.c.
7154         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
7155         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7156         defining compatibility symbols.
7157         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
7158         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
7159         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
7160         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
7161         <lgamma-compat.h>.
7162         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
7163         (__ieee754_gamma): Define as alias.
7164         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
7165         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
7166         <lgamma-compat.h>.
7167         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
7168         (__ieee754_gammaf): Define as alias.
7169         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
7170         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
7171         <lgamma-compat.h>.
7172         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
7173         (__ieee754_gammal): Define as alias.
7174         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
7175         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
7176         <math/w_lgamma_compat.c>.
7177         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
7178         Define as alias of __lgamma_compat and use in defining lgammal.
7179         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
7180         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
7181         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
7182         (USE_AS_COMPAT): New macro.
7183         (LGAMMA_OLD_VER): Undefine and redefine.
7184         (lgammal): Do not define here.
7185         (gammal): Only define here if [GAMMA_ALIAS].
7186         * conform/linknamespace.pl (@whitelist): Remove signgam.
7187         * sysdeps/nacl/libm.abilist: Update.
7188         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7189         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7190         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7191         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7192         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7193         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7194         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7195         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7196         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7197         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7198         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7199         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7201         Likewise.
7202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7203         Likewise.
7204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7205         Likewise.
7206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7207         Likewise.
7208         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7209         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7210         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7211         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7212         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7213         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7214         Likewise.
7215         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7216         Likewise.
7217         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7218         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7219         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7220
7221 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7222
7223         [BZ #16364]
7224         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
7225         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
7226
7227 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7228
7229         * sysdeps/s390/fpu/bits/mathinline.h:
7230         Use __asm__ [__volatile__] instead of asm [volatile].
7231         * sysdeps/s390/abort-instr.h: Likewise.
7232         * sysdeps/s390/atomic-machine.h: Likewise.
7233         * sysdeps/s390/bits/string.h: Likewise.
7234         * sysdeps/s390/dl-tls.h: Likewise.
7235         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
7236         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
7237         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
7238         * sysdeps/s390/fpu/fesetround.c: Likewise.
7239         * sysdeps/s390/fpu/fpu_control.h: Likewise.
7240         * sysdeps/s390/fpu/s_fma.c: Likewise.
7241         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
7242         * sysdeps/s390/memusage.h: Likewise.
7243         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
7244         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
7245         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
7246         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
7247         * sysdeps/s390/nptl/tls.h: Likewise.
7248         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
7249         * sysdeps/s390/s390-32/backtrace.c: Likewise.
7250         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7251         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
7252         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7253         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
7254         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
7255         * sysdeps/s390/s390-64/backtrace.c: Likewise.
7256         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7257         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
7258         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
7259         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7260         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
7261         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
7262         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
7263         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
7264         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
7265         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
7266         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
7267         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7268         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
7269         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7270         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
7271
7272 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7273             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7274
7275         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
7276         Add lwarx hint, and use macro for acquire instruction.
7277         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
7278         Likewise.
7279         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
7280         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
7281         update to use new atomic macros.
7282
7283 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7284
7285         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
7286         (__lll_trylock_elision): Fix setting of adapt_count.
7287         * sysdeps/unix/sysv/linux/powerpc/htm.h
7288         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
7289         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
7290         (_ABORT_SYSCALL): Renumber, and clarify definition.
7291         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
7292
7293 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7294
7295         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
7296         after system headers to prevent MIN/MAX redefinition.  Define
7297         HAVE_ALLOCA to preserve builtin alloca usage.
7298
7299 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
7300
7301         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
7302         static and don't set or restore rounding.
7303         (__cos)[IN_SINCOS]: Likewise.
7304         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
7305         (__sincos): Set and restore rounding mode.  Remove check for infinite
7306         or NaN input.
7307
7308         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
7309
7310         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
7311         as used.
7312
7313 2015-11-16  Florian Weimer  <fweimer@redhat.com>
7314
7315         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
7316
7317 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
7318
7319         * config.make.in (have-glob-dat-reloc): New.
7320         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
7321         target supports GLOB_DAT relocaton. AC_SUBST.
7322         * configure: Regenerated.
7323         * elf/Makefile (tests): Add tst-prelink.
7324         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7325         (tst-prelink-ENV): New.
7326         ($(objpfx)tst-prelink-conflict.out): Likewise.
7327         ($(objpfx)tst-prelink-cmp.out): Likewise.
7328         * sysdeps/x86/tst-prelink.c: Moved to ...
7329         * elf/tst-prelink.c: Here.
7330         * sysdeps/x86/tst-prelink.exp: Moved to ...
7331         * elf/tst-prelink.exp: Here.
7332         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
7333         (tst-prelink-ENV): Removed.
7334         ($(objpfx)tst-prelink-conflict.out): Likewise.
7335         ($(objpfx)tst-prelink-cmp.out): Likewise.
7336         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
7337
7338 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
7339
7340         [BZ #14551]
7341         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
7342         (__mpn_construct_long_double): If high part overflows to infinity,
7343         set errno and recompute overflowed result of the correct sign.
7344         * sysdeps/ieee754/ldbl-128ibm/Makefile
7345         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
7346         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
7347         $(libm).
7348         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
7349
7350 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
7351
7352         [BZ #15479]
7353         [BZ #19238]
7354         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
7355         floating-point state after first operation on input.  Restore full
7356         state rather than just rounding mode.
7357         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
7358         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
7359         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
7360
7361         [BZ #19235]
7362         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
7363         add 0.5 to integer arguments.
7364         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
7365         Likewise.
7366         (.LC2): New object.
7367
7368 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
7369
7370         * scripts/pylintrc (reports): Set to no.
7371
7372 2015-11-10  Roland McGrath  <roland@hack.frob.com>
7373
7374         * elf/dl-load.c (open_verify): Take new argument FD.
7375         Skip __open call if passed FD is not -1.
7376         (_dl_map_object, open_path): Update callers.
7377         * elf/dl-sysdep-open.h: New file.
7378         * elf/dl-load.c: Include it.
7379         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
7380         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
7381         * sysdeps/nacl/dl-sysdep-open.h: New file.
7382         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
7383         from libc to rtld.
7384
7385 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7386
7387         [BZ #19228]
7388         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
7389         and restore full floating-point state.
7390         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
7391         Likewise.
7392         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
7393         Likewise.
7394         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
7395         Likewise.
7396         * math/test-nearbyint-except-2.c: New file.
7397         * math/Makefile (tests): Add test-nearbyint-except-2.
7398
7399 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
7400
7401         [BZ #19178]
7402         * sysdeps/x86/Makefile (tests): Add tst-prelink.
7403         (tst-prelink-ENV): New.
7404         ($(objpfx)tst-prelink-conflict.out): Likewise.
7405         ($(objpfx)tst-prelink-cmp.out): Likewise.
7406         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7407         * sysdeps/x86/tst-prelink.c: New file.
7408         * sysdeps/x86/tst-prelink.exp: Likewise.
7409
7410 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7411
7412         * math/auto-libm-test-in: Add another test of pow.
7413         * math/auto-libm-test-out: Regenerated.
7414         * math/libm-test.inc (pow_test_data): Add another test.
7415
7416 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7417
7418         [BZ #19219]
7419         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
7420         weak_alias to nearbyintl.
7421
7422 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7423
7424         * sysdeps/aarch64/bits/string.h: New file.
7425         (_STRING_ARCH_unaligned): Define.
7426
7427 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7428
7429         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
7430         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
7431         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
7432         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
7433         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
7434
7435 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
7436
7437         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
7438         for original name of the DSO.  Add it to the name list of the DSO
7439         if it is actually given.
7440         (_dl_map_object): Keep track of whether an audit module rewrote
7441         the file name.  If yes, pass the original name to
7442         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
7443         debugging is enabled, log the change of the file name.
7444         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
7445         _dl_map_object_from_fd.
7446         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
7447         * elf/tst-audit11.c: New file
7448         * elf/tst-auditmod11.c: New file.
7449         * elf/tst-audit11mod1.c: New file.
7450         * elf/tst-audit11mod2.c: New file.
7451         * elf/tst-audit11mod2.map: New file.
7452         * elf/tst-audit12.c: New file
7453         * elf/tst-auditmod12.c: New file.
7454         * elf/tst-audit12mod1.c: New file.
7455         * elf/tst-audit12mod2.c: New file.
7456         * elf/tst-audit12mod2.map: New file.
7457         * elf/tst-audit12mod3.c: New file.
7458
7459 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7460
7461         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
7462         Don't create weak aliases,
7463         because versioned symbols are created later.
7464         * sysdeps/s390/s390-32/setjmp.S
7465         (setjmp, _setjmp): Remove weak and rename to an unique name
7466         in SHARED case due to existing versioned symbols.
7467         * sysdeps/s390/s390-64/setjmp.S: Likewise.
7468         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
7469         (getcontext): Create weak alias only in non SHARED case.
7470         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
7471
7472 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7473
7474         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
7475         (__ASSUME_*_SYSCALL) Define new macros.
7476         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
7477         Remove socketcall syscalls.
7478         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
7479         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
7480         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
7481         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
7482         * sysdeps/unix/sysv/linux/send.c (__libc_send):
7483         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
7484
7485 2015-11-09  Florian Weimer  <fweimer@redhat.com>
7486
7487         [BZ #12926]
7488         Terminate process on invalid netlink response.
7489         * sysdeps/unix/sysv/linux/netlinkaccess.h
7490         (__netlink_assert_response): Declare.
7491         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
7492         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
7493         (sysdep_routines): Add netlink_assert_response.
7494         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
7495         __netlink_assert_response.
7496         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
7497         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
7498         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
7499         __netlink_assert_response.
7500
7501 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7502
7503         [BZ #19178]
7504         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
7505         (RTYPE_CLASS_PLT): Likewise.
7506         (RTYPE_CLASS_COPY): Likewise.
7507         (RTYPE_CLASS_TLS): Likewise.
7508         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
7509         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
7510         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
7511         DL_DEBUG_PRELINK.
7512
7513 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
7514
7515         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
7516         calls with argument -0.5.
7517         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
7518
7519         * configure.ac (libc_cv_z_nodelete): Remove configure test.
7520         (libc_cv_z_nodlopen): Likewise.
7521         (libc_cv_z_initfirst): Likewise.
7522         * configure: Regenerated.
7523
7524 2015-11-06  Florian Weimer  <fweimer@redhat.com>
7525
7526         Simplify abilist format to be line-based.
7527         * scripts/abilist.awk: Collect descriptors in the descs variable.
7528         (emit): Write descs variable and sort it
7529         externally, with sort.
7530         * sysdeps/**/*.abilist: Convert to new format.
7531
7532 2015-11-06  Mark Wielaard  <mjw@redhat.com>
7533
7534         [BZ #11460]
7535         * io/Makefile (routines): Add fts64.
7536         (tests): Add tst-fts and tst-fts-lfs.
7537         (CFLAGS-fts64.c): New.
7538         * io/Versions (GLIBC_2.23): New.
7539         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
7540         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
7541         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
7542         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
7543         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
7544         (FTSENT64): Likewise.
7545         (fts64_children): Likewise.
7546         (fts64_close): Likewise.
7547         (fts64_open): Likewise.
7548         (fts64_read): Likewise.
7549         (fts64_set): Likewise.
7550         * io/fts64.c: New file.
7551         * io/tst-fts.c: New test.
7552         * io/tst-fts-lfs.c: Likewise.
7553         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
7554         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
7555         fts64_set.
7556         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7557         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7558         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7559         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7560         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7561         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7562         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7563         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7564         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7565         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7566         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7567         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7568         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7570         Likewise.
7571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7572         Likewise.
7573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7575         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7576         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7577         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7578         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7579         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7580         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7581         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7582         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7583         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7584         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7585         * sysdeps/wordsize-64/fts.c: New file.
7586         * sysdeps/wordsize-64/fts64.c: Likewise.
7587         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
7588         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
7589         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
7590         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
7591
7592 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7593
7594         * math/libm-test.inc (NON_FINITE): New macro.
7595         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
7596         * math/gen-libm-test.pl (show_exceptions): Add argument
7597         $non_finite.
7598         (parse_args): Update call to show_exceptions.
7599         * math/test-math-finite.h: New file.
7600         * math/test-math-no-finite.h: Likewise.
7601         * math/test-double-finite.c: Likewise.
7602         * math/test-float-finite.c: Likewise.
7603         * math/test-ldouble-finite.c: Likewise.
7604         * math/test-double.c: Include "test-math-no-finite.h".
7605         * math/test-float.c: Include "test-math-no-finite.h".
7606         * math/test-ldouble.c: Include "test-math-no-finite.h".
7607         * math/test-math-inline.h (TEST_FINITE): New macro.
7608         * math/test-math-vector.h (TEST_FINITE): Likewise.
7609         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
7610         (libm-tests): Add test-float-finite and test-double-finite.
7611         ($(objpfx)test-float-finite.o): New dependency on
7612         $(objpfx)libm-test.stmp.
7613         ($(objpfx)test-double-finite.o): Likewise.
7614         ($(objpfx)test-ldouble-finite.o): Likewise.
7615         (libm-test-no-inline-cflags): New variable.
7616         (libm-test-finite-cflags): Likewise.
7617         (CFLAGS-test-float-finite.c): Likewise.
7618         (CFLAGS-test-double-finite.c): Likewise.
7619         (CFLAGS-test-ldouble-finite.c): Likewise.
7620         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
7621         (CFLAGS-test-double.c): Likewise.
7622         (CFLAGS-test-ldouble.c): Likewise.
7623
7624 2015-11-05  Roland McGrath  <roland@hack.frob.com>
7625
7626         * io/fcntl.c (__fcntl): Add ... to prototype.
7627         * misc/ioctl.c (__ioctl): Likewise.
7628         * misc/syscall.c (syscall): Likewise.
7629
7630 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7631
7632         * scripts/list-fixed-bugs.py: New file.
7633
7634         [BZ #19213]
7635         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
7636         returned for argument 1.
7637         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
7638         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
7639         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
7640         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
7641         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
7642         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
7643
7644         [BZ #19211]
7645         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
7646         __USE_XOPEN], not if [!__USE_ISOC99].
7647         (lgammaf): Likewise.
7648         (lgammal): Likewise.
7649         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
7650         (gammaf): Likewise.
7651         (gammal): Likewise.
7652         * math/test-signgam-finite-c11.c: New file.
7653         * math/test-signgam-finite-c99.c: Likewise.
7654         * math/test-signgam-finite.c: Likewise.
7655         * math/Makefile (tests): Add test-signgam-finite,
7656         test-signgam-finite-c99 and test-signgam-finite-c11.
7657         (CFLAGS-test-signgam-finite.c): New variable.
7658         (CFLAGS-test-signgam-finite-c99.c): Likewise.
7659         (CFLAGS-test-signgam-finite-c11.c): Likewise.
7660
7661         [BZ #19212]
7662         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
7663         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
7664         500].
7665         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
7666         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
7667         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
7668         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
7669         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
7670         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
7671         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
7672         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
7673         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
7674         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
7675
7676         [BZ #19209]
7677         * math/bits/math-finite.h (ldexp): Remove declaration.
7678         (ldexpf): Likewise.
7679         (ldexpl): Likewise.
7680
7681         [BZ #19205]
7682         * math/bits/math-finite.h (acosf): Condition declaration on
7683         [__USE_ISOC99].
7684         (acosl): Likewise.
7685         (acoshf): Likewise.
7686         (acoshl): Likewise.
7687         (asinf): Likewise.
7688         (asinl): Likewise.
7689         (atan2f): Likewise.
7690         (atan2l): Likewise.
7691         (atanhf): Likewise.
7692         (atanhl): Likewise.
7693         (coshf): Likewise.
7694         (coshl): Likewise.
7695         (expf): Likewise.
7696         (expl): Likewise.
7697         (fmodf): Likewise.
7698         (fmodl): Likewise.
7699         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
7700         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
7701         (j0l): Likewise.
7702         (y0f): Likewise.
7703         (y0l): Likewise.
7704         (j1f): Likewise.
7705         (j1l): Likewise.
7706         (y1f): Likewise.
7707         (y1l): Likewise.
7708         (jnf): Likewise.
7709         (jnl): Likewise.
7710         (ynf): Likewise.
7711         (ynl): Likewise.
7712         (lgammaf_r): Condition declaration on [__USE_ISOC99].
7713         (lgammal_r): Likewise.
7714         (__lgamma_r_finite): New declaration.
7715         (__lgammaf_r_finite): Likewise.
7716         (__lgammal_r_finite): Likewise.
7717         (lgamma): Use __lgamma_r_finite.
7718         (lgammaf): Condition definition on [__USE_ISOC99].  Use
7719         __lgammaf_r_finite.
7720         (lgammal): Condition definition on [__USE_ISOC99].  Use
7721         __lgammal_r_finite.
7722         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
7723         __lgamma_r_finite.
7724         (gammaf): Condition definition on [__USE_ISOC99].  Use
7725         __lgammaf_r_finite.
7726         (gammal): Condition definition on [__USE_ISOC99].  Use
7727         __lgammal_r_finite.
7728         (logf): Condition declaration on [__USE_ISOC99].
7729         (logl): Likewise.
7730         (log10f): Likewise.
7731         (log10l): Likewise.
7732         (ldexpf): Likewise.
7733         (ldexpl): Likewise.
7734         (powf): Likewise.
7735         (powl): Likewise.
7736         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
7737         __USE_ISOC99].
7738         (remainderf): Condition declaration on [__USE_ISOC99].
7739         (remainderl): Likewise.
7740         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
7741         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
7742         (scalbl): Likewise.
7743         (sinhf): Condition declaration on [__USE_ISOC99].
7744         (sinhl): Likewise.
7745         (sqrtf): Likewise.
7746         (sqrtl): Likewise.
7747
7748 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7749
7750         * sysdeps/arm/atomic-machine.h
7751         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7752         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7753         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
7754         Remove conditional code.
7755         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7756         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7757         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
7758         Change conditional to [__ASSEMBLER__].
7759         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7760         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
7761         [!__ASSEMBLER__].
7762         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
7763         code.
7764         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
7765         conditional macro definitions.
7766         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
7767         (__arch_compare_and_exchange_val_16_acq): Likewise.
7768         (__arch_compare_and_exchange_val_32_acq): Likewise.
7769         (atomic_exchange_and_add): Likewise.
7770         (atomic_add): Likewise.
7771         (atomic_add_negative): Likewise.
7772         (atomic_add_zero): Likewise.
7773         (atomic_bit_set): Likewise.
7774         (atomic_bit_test_set): Likewise.
7775         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
7776         code unconditional.
7777         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7778
7779         * math/test-math-errno.h: New file.
7780         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
7781         empty.
7782         (TEST_ERRNO): New macro.
7783         (TEST_EXCEPTIONS): Likewise.
7784         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
7785         (TEST_EXCEPTIONS): Likewise.
7786         * math/test-math-vector.h (TEST_ERRNO): Likewise.
7787         * math/test-double.c: Include "test-math-errno.h".
7788         * math/test-float.c: Likewise.
7789         * math/test-ldouble.c: Likewise.
7790         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
7791         code unconditional.
7792         (test_exceptions): Only run code if TEST_EXCEPTIONS.
7793         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
7794         unconditional.
7795         (test_errno): Only run code if TEST_ERRNO.
7796         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
7797
7798 2015-11-04  Florian Weimer  <fweimer@redhat.com>
7799
7800         * nptl/tst-once5.cc: Remove attribution.
7801
7802 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7803
7804         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
7805         sqrt, tan, tanh, y0, y1 and yn.
7806         * math/auto-libm-test-out: Regenerated.
7807         * math/libm-test.inc (scalb_test_data): Add more tests.
7808         (scalbn_test_data): Likewise.
7809         (scalbln_test_data): Likewise.
7810         (signbit_test_data): Likewise.
7811         (sin_test_data): Likewise.
7812         (sincos_test_data): Likewise.
7813         (sinh_test_data): Likewise.
7814         (sqrt_test_data): Likewise.
7815         (tan_test_data): Likewise.
7816         (tanh_test_data): Likewise.
7817         (tgamma_test_data): Likewise.
7818         (y0_test_data): Likewise.
7819         (y1_test_data): Likewise.
7820         (yn_test_data): Likewise.
7821         (significand_test_data): Likewise.
7822         * sysdeps/i386/fpu/libm-test-ulps: Update.
7823
7824 2015-11-03  David Kastrup  <dak@gnu.org>
7825
7826         [BZ #18604]
7827         * assert/assert.h (assert): Don't macro-expand failed assertion
7828         expression in error message.
7829         * malloc/malloc.c (assert): Likewise.
7830
7831 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
7832
7833         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
7834         test.
7835         * configure: Regenerated.
7836
7837 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
7838
7839         * math/libm-test.inc (modf_test_data): Add more tests.
7840         (nearbyint_test_data): Likewise.
7841         (nextafter_test_data): Likewise.
7842         (nexttoward_test_data): Likewise.
7843         (pow_test_data): Likewise.
7844         (remainder_test_data): Likewise.
7845         (remquo_test_data): Likewise.
7846         (rint_test_data): Likewise.
7847
7848         [BZ #19201]
7849         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7850         Check for zero remainder in case of large exponents and ensure
7851         correct sign of result in that case.
7852         * math/libm-test.inc (remainder_test_data): Add more tests.
7853
7854         [BZ #6799]
7855         * math/s_nextafter.c: Include <errno.h>.
7856         (__nextafter): Set errno on overflow and underflow.
7857         * math/s_nexttowardf.c: Include <errno.h>.
7858         (__nexttowardf): Set errno on overflow and underflow.
7859         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
7860         (__nextafterl): Set errno on overflow and underflow.
7861         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
7862         (__nexttoward): Set errno on overflow and underflow.
7863         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
7864         (__nexttowardf): Set errno on overflow and underflow.
7865         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
7866         (__nextafterf): Set errno on overflow and underflow.
7867         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
7868         (__nextafterl): Set errno on overflow and underflow.
7869         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
7870         (__nexttoward): Set errno on overflow and underflow.
7871         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
7872         (__nexttowardf): Set errno on overflow and underflow.
7873         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
7874         (__nextafterl): Set errno on overflow and underflow.
7875         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
7876         (__nexttoward): Set errno on overflow and underflow.
7877         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
7878         (__nexttowardf): Set errno on overflow and underflow.
7879         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
7880         (__nexttoward): Set errno on overflow and underflow.
7881         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
7882         (__nexttowardf): Set errno on overflow and underflow.
7883         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
7884         (__nldbl_nexttowardf): Set errno on overflow and underflow.
7885         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
7886         (__nextafterl): Set errno on overflow and underflow.
7887         * math/libm-test.inc (nextafter_test_data): Do not allow errno
7888         setting to be missing on overflow.  Add more tests.
7889         (nexttoward_test_data): Likewise.
7890
7891         * configure.ac (libc_cv_initfini_array): Remove configure test.
7892         * configure: Regenerated.
7893
7894 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
7895
7896         [BZ #19189]
7897         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
7898         non-finite argument handle arguments with negative sign.
7899
7900         * math/libm-test.inc (j0_test_data): Do not test sign of zero
7901         result from infinite argument.
7902         (j1_test_data): Likewise.
7903         (jn_test_data): Likewise.
7904         (y0_test_data): Likewise.
7905         (y1_test_data): Likewise.
7906         (yn_test_data): Likewise.
7907
7908         [BZ #16171]
7909         * math/w_remainder.c (drem): Define as weak alias of __remainder.
7910         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
7911         * math/w_remainderf.c (dremf): Define as weak alias of
7912         __remainderf.
7913         * math/w_remainderl.c (dreml): Define as weak alias of
7914         __remainderl.
7915         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
7916         __remainder.
7917         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
7918         __remainderf.
7919         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
7920         __remainderl.
7921         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
7922         weak alias of remainderl.
7923         * sysdeps/ieee754/ldbl-opt/w_remainder.c
7924         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
7925         alias of __remainder.
7926         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
7927         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
7928         strong alias of __remainderl.
7929         (dreml): Use long_double_symbol.
7930         * math/Makefile (libm-calls): Remove w_drem.
7931         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
7932         (CFLAGS-nldbl-drem.c): Remove variable.
7933         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
7934         * math/w_drem.c: Remove file.
7935         * math/w_dremf.c: Likewise.
7936         * math/w_dreml.c: Likewise.
7937         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
7938         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
7939         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
7940
7941         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
7942         * sysdeps/i386/configure: Regenerated.
7943         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
7944         * sysdeps/x86_64/configure: Regenerated.
7945
7946         * configure.ac (libc_cv_asm_protected_directive): Remove configure
7947         test.
7948         (libc_cv_visibility_attribute): Likewise.
7949         (libc_cv_protected_data): Test unconditionally.
7950         (libc_cv_broken_visibility_attribute): Remove configure test.
7951         (libc_cv_have_sdata_section): Test unconditionally.
7952         * configure: Regenerated.
7953
7954         * include/libc-internal.h (libc_max_align_t): Remove typedef.
7955         * include/scratch_buffer.h: Include <stddef.h> instead of
7956         <libc-internal.h>.
7957         (struct scratch_buffer): Use max_align_t instead of
7958         libc_max_align_t.
7959
7960 2015-10-29  Florian Weimer  <fweimer@redhat.com>
7961
7962         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
7963         instead of extend_alloca.  Change control flow to avoid a goto.
7964         Remove assert which is trivially always true.
7965
7966 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7967
7968         [BZ #16068]
7969         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
7970         (FE_ALL_EXCEPT_X86): New macro.
7971         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7972         FE_ALL_EXCEPT.  Ensure precision control is included in
7973         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7974         handle "denormal operand exception" and clear FZ and DAZ bits.
7975         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
7976         (FE_ALL_EXCEPT_X86): New macro.
7977         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7978         FE_ALL_EXCEPT.  Ensure precision control is included in
7979         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7980         handle "denormal operand exception" and clear FZ and DAZ bits.
7981         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
7982         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
7983         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7984         test-fenv-x87 and test-fenv-sse-2.
7985         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
7986
7987         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
7988         * math/test-double.h (BUILD_COMPLEX): New macro.
7989         * math/test-float.h (BUILD_COMPLEX): Likewise.
7990         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
7991
7992         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
7993         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
7994         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
7995         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
7996         instead of DBL_DENORM_MIN in comment.
7997         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
7998         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7999         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
8000         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
8001         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
8002         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
8003
8004 2015-10-28  Florian Weimer  <fweimer@redhat.com>
8005
8006         [BZ# 19048]
8007         * malloc/malloc.c (struct malloc_state): Update comment.  Add
8008         attached_threads member.
8009         (main_arena): Initialize attached_threads.
8010         * malloc/arena.c (list_lock): Update comment.
8011         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
8012         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
8013         (deattach_arena): New function.
8014         (_int_new_arena): Initialize arena reference count and deattach
8015         replaced arena.
8016         (get_free_list, reused_arena): Update reference count and deattach
8017         replaced arena.
8018         (arena_thread_freeres): Update arena reference count and only put
8019         unreferenced arenas on the free list.
8020
8021 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8022
8023         [BZ #19181]
8024         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
8025         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
8026         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
8027         * math/test-fenv-clear-main.c: New file.
8028         * math/test-fenv-clear.c: Likewise.
8029         * math/Makefile (tests): Add test-fenv-clear.
8030         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
8031         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
8032         test-fenv-clear-sse.
8033         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
8034
8035         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
8036         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
8037         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
8038
8039 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
8040
8041         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
8042         static libc.
8043
8044 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8045
8046         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
8047         test.
8048         * sysdeps/i386/configure: Regenerated.
8049         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
8050         test.
8051         * sysdeps/x86_64/configure: Regenerated.
8052         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
8053         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8054         memset-avx2 unconditionally instead of conditionally on
8055         [$(config-cflags-avx2) = yes].
8056         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
8057         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
8058         unconditional.
8059         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
8060         * sysdeps/x86_64/multiarch/memset_chk.S
8061         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
8062         to [IS_IN (libc) && SHARED].
8063
8064 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8065
8066         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
8067         configure test.
8068         * sysdeps/arm/configure: Regenerated.
8069         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
8070         Define variable if not already defined.
8071
8072         [BZ #17404]
8073         * sysdeps/mips/atomic-machine.h
8074         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
8075         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
8076         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
8077
8078         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
8079         unconditional.
8080         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
8081         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8082         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
8083         unconditional.
8084         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8085         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
8086         unconditional.
8087         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8088         * stdlib/setenv.c
8089         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
8090         code unconditional.
8091         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
8092         Remove conditional code.
8093         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
8094         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
8095         unconditional.
8096         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8097         code.
8098         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
8099         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
8100         unconditional.
8101         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8102         code.
8103         * sysdeps/ieee754/ldbl-128/k_tanl.c
8104         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8105         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8106         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
8107         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8108         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8109         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
8110         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
8111         unconditional.
8112         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8113         code.
8114         * sysdeps/ieee754/ldbl-96/k_tanl.c
8115         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8116         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8117
8118         * nptl/tst-initializers1-c11.c: New file.
8119         * nptl/tst-initializers1-gnu11.c: Likewise.
8120         * nptl/Makefile (tests): Add these new tests.
8121         (CFLAGS-tst-initializers1-c11.c): New variable.
8122         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
8123
8124         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
8125         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
8126         instead of -std=gnu99.
8127         * configure.ac (systemtap): Test with -std=gnu11 instead of
8128         -std=gnu99.
8129         * configure: Regenerated.
8130         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
8131         in compilation command in comment.
8132
8133         * sysdeps/nptl/configure.ac: Remove file.
8134         * sysdeps/nptl/configure: Remove generated file.
8135         * configure.ac (libc_cv_forced_unwind): Do not substitute.
8136         * configure: Regenerated.
8137         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
8138         * config.make.in (have-forced-unwind): Remove variable.
8139         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
8140         unconditional.
8141         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
8142         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
8143         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
8144         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
8145         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
8146         unconditional.
8147
8148 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8149
8150         [BZ #19174]
8151         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
8152         .skip_lock_out_of_tbegin_retries.
8153         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
8154         (__lll_lock_elision): Likewise, and respect a value of
8155         try_tbegin <= 0.
8156
8157 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
8158
8159         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
8160         statement.
8161
8162 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8163
8164         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
8165         variable.
8166         (test-xfail-ISO11/stdalign.h/conform): Likewise.
8167         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
8168
8169         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
8170         of -std=c1x -D_ISOC11_SOURCE.
8171
8172         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
8173         * configure: Regenerated.
8174         * manual/install.texi (Tools for Compilation): Document
8175         requirement for GCC 4.7 or later.
8176         * INSTALL: Regenerated.
8177
8178 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
8179
8180         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
8181         on CNT to a conditional jump to 'puntdata'.
8182
8183 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8184
8185         * configure.ac (libc_cv_gcc___thread): Remove configure test.
8186         (libc_cv_gcc_tls_model_attr): Likewise.
8187         * configure: Regenerated.
8188
8189         * configure.ac (libc_cv_need_minus_P): Remove configure test.
8190         * configure: Regenerated.
8191         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
8192
8193 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
8194
8195         * configure.ac (old_glibc_headers): Remove configure test.
8196         * configure: Regenerated.
8197         * config.make.in (old-glibc-headers): Remove variable.
8198         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
8199         (install): Remove dependency on remove-old-headers.
8200         (headers2_0): Remove variable.
8201         (remove-old-headers): Remove rule.
8202
8203         * configure.ac (libc_cv_dot_text): Remove configure test.
8204         (libc_cv_asm_set_directive): Use .text instead of
8205         ${libc_cv_dot_text} in configure test.
8206         * configure: Regenerated.
8207
8208 2015-10-26  Florian Weimer  <fweimer@redhat.com>
8209
8210         [BZ #19168]
8211         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8212
8213 2015-10-26  Florian Weimer  <fweimer@redhat.com>
8214
8215         * configure.ac (CXX): Clear the variable if the C++ toolchain does
8216         not support static linking.
8217         * configure: Regenerate.
8218
8219 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
8220
8221         * math/libm-test.inc (check_float_internal): Do not special-case
8222         errors up to 0.5 ulp.
8223
8224         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
8225         log2.
8226         * math/auto-libm-test-out: Regenerated.
8227         * math/libm-test.inc (MAX_EXP): New macro.
8228         (ilogb_test_data): Add more tests.
8229         (isfinite_test_data): Likewise.
8230         (isgreater_test_data): Likewise.
8231         (isgreaterequal_test_data): Likewise.
8232         (isinf_test_data): Likewise.
8233         (isless_test_data): Likewise.
8234         (islessequal_test_data): Likewise.
8235         (islessgreater_test_data): Likewise.
8236         (isnan_test_data): Likewise.
8237         (isnormal_test_data): Likewise.
8238         (issignaling_test_data): Likewise.
8239         (isunordered_test_data): Likewise.
8240         (j0_test_data): Likewise.
8241         (j1_test_data): Likewise.
8242         (jn_test_data): Likewise.
8243         (lgamma_test_data): Likewise.
8244         (log_test_data): Likewise.
8245         (log10_test_data): Likewise.
8246         (log1p_test_data): Likewise.
8247         (log2_test_data): Likewise.
8248         (logb_test_data): Likewise.
8249         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8250
8251         [BZ #18611]
8252         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
8253         avoid excess range and precision on underflow.
8254         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8255         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
8256         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8257         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
8258         underflow.
8259         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8260         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8261         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8262         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8263         * math/auto-libm-test-in: Do not allow missing errno setting for
8264         tests of j1 and jn.
8265         * math/auto-libm-test-out: Regenerated.
8266
8267 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
8268
8269         [BZ #15491]
8270         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
8271         floating-point environment instead of clearing all exceptions.
8272         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
8273         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
8274         merging in "invalid" exceptions from frndint.
8275         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
8276         * math/test-nearbyint-except.c: New file.
8277         * math/Makefile (tests): Add test-nearbyint-except.
8278
8279 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
8280
8281         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
8282
8283         * sysdeps/tile/libm-test-ulps: Regenerated.
8284
8285 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8286
8287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
8288         (__NR_sync_file_range2): Assume it is always defined.
8289         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
8290         (__NR_sync_file_range): Assume it is always defined.
8291
8292 2015-10-22  Andreas Schwab  <schwab@suse.de>
8293
8294         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
8295         INTERNAL_SYSCALL_ERRNO.
8296         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8297         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
8298         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
8299         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
8300         Likewise.
8301         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
8302
8303 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8304
8305         * io/tst-fcntl.c (fd): New static variable.
8306         (do_prepare): Open temporary file here....
8307         (do_test): ...not here.
8308
8309         * io/ftwtest-sh: Also trap on exit to remove temporary files.
8310
8311 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8312
8313         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
8314         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8315         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8316         Moved before "#ifdef __ASSEMBLER__".
8317
8318 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8319
8320         [BZ #19156]
8321         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
8322         arguments very close to 0.
8323
8324 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
8325
8326         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
8327         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
8328
8329 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8330
8331         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8332         New.  Defined for GCC 5 and above when not compiling for
8333         profiling.
8334         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8335
8336         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
8337         Renamed to ...
8338         (CFLAGS-epoll_pwait.o): This.
8339         (CFLAGS-mmap.c): Renamed to ...
8340         (CFLAGS-mmap.o): This.
8341         (CFLAGS-mmap64.c): Renamed to ...
8342         (CFLAGS-mmap64.o): This.
8343         (CFLAGS-epoll_pwait.os): New.
8344         (CFLAGS-mmap.os): Likewise.
8345         (CFLAGS-mmap64.os): Likewise.
8346         (CFLAGS-semtimedop.os): Likewise.
8347         (CFLAGS-semtimedop.c): Renamed to ...
8348         (CFLAGS-semtimedop.o): This.
8349
8350 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8351
8352         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
8353         warning message.
8354
8355 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8356
8357         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
8358         * Makefile ($(objpfx)c++-types-check.out): Filter out
8359         $(+gccwarn-c) instead of -Wstrict-prototypes.
8360
8361         * io/fts.c (fts_open): Convert to prototype-style function
8362         definition.
8363         * malloc/mcheck.c (mcheck): Likewise.
8364         (mcheck_pedantic): Likewise.
8365         * posix/regexec.c (re_search_2_stub): Likewise.  Use
8366         internal_function.
8367         (re_search_internal): Likewise.
8368         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
8369         prototype-style function definition.
8370         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8371         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
8372         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
8373         (xdr_utmpptr): Likewise.
8374         (xdr_utmparr): Likewise.
8375         (xdr_utmpidle): Likewise.
8376         (xdr_utmpidleptr): Likewise.
8377         (xdr_utmpidlearr): Likewise.
8378
8379         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
8380         log, log10 and log2.
8381         * math/auto-libm-test-out: Regenerated.
8382         * math/libm-test.inc (fmod_test_data): Add more tests.
8383         (fpclassify_test_data): Likewise.
8384         (frexp_test_data): Likewise.
8385         (hypot_test_data): Likewise.
8386         (ilogb_test_data): Likewise.
8387
8388 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
8389
8390         * debug/fortify_fail.c (__fortify_fail): Convert to
8391         prototype-style function definition.  Use internal_function.
8392         * libio/genops.c (save_for_backup): Convert to prototype-style
8393         function definition.
8394         * libio/wgenops.c (save_for_wbackup): Likewise.
8395         * login/grantpt.c (grantpt): Likewise.
8396         * login/ptsname.c (ptsname): Likewise.
8397         (__ptsname_r): Likewise.
8398         * login/unlockpt.c (unlockpt): Likewise.
8399         * mach/msgserver.c (__mach_msg_server): Likewise.
8400         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
8401         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
8402         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
8403         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
8404         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
8405         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
8406         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
8407         Likewise.
8408         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
8409         internal_function.
8410         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
8411         prototype-style function definition.
8412         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
8413         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
8414         (__pthread_create_2_0): Likewise.
8415         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
8416         * nptl/register-atfork.c (__register_atfork): Likewise.
8417         * posix/glob.c (glob): Likewise.
8418         * posix/regcomp.c (re_comp): Likewise.
8419         * posix/regexec.c (re_exec): Likewise.
8420         * stdlib/add_n.c [__STDC__]: Make code unconditional.
8421         [!__STDC__]: Remove conditional code.
8422         * stdlib/cmp.c [__STDC__]: Make code unconditional.
8423         [!__STDC__]: Remove conditional code.
8424         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
8425         [!__STDC__]: Remove conditional code.
8426         * stdlib/divrem.c [__STDC__]: Make code unconditional.
8427         [!__STDC__]: Remove conditional code.
8428         * stdlib/lshift.c [__STDC__]: Make code unconditional.
8429         [!__STDC__]: Remove conditional code.
8430         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
8431         [!__STDC__]: Remove conditional code.
8432         * stdlib/mul.c [__STDC__]: Make code unconditional.
8433         [!__STDC__]: Remove conditional code.
8434         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
8435         [!__STDC__]: Remove conditional code.
8436         * stdlib/rshift.c [__STDC__]: Make code unconditional.
8437         [!__STDC__]: Remove conditional code.
8438         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
8439         function definition.
8440         (STRTOF): Likewise.
8441         * stdlib/strtod_l.c (__STRTOF): Likewise.
8442         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
8443         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
8444         (__strtol_l): Likewise.
8445         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
8446         [!__STDC__]: Remove conditional code.
8447         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
8448         definition.
8449         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8450         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8451         type.
8452         (__strcasecmp): Convert to prototype-style function definition.
8453         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
8454         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8455         type.
8456         (__strncasecmp): Convert to prototype-style function definition.
8457         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
8458         * sunrpc/xdr.c (xdr_union): Likewise.
8459         * sunrpc/xdr_array.c (xdr_array): Likewise.
8460         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
8461         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
8462         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
8463         Likewise.
8464         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
8465         Likewise.
8466         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
8467         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8468         Likewise.
8469         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
8470         (LOCALE_PARAM_PROTO): Likewise.
8471         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
8472         argument type.
8473         (ut_argument_spec): Remove macro.
8474         (ut_argument_spec_iso): Rename to ut_argument_spec.
8475         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
8476         prototype-style function definition.
8477         (memcpy_uppcase): Likewise.
8478         (__strftime_internal): Likewise.
8479         (my_strftime): Likewise.
8480         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
8481         (LOCALE_PARAM_DECL): Likewise.
8482         [_LIBC] (LOCALE_PARAM): Include argument type.
8483         (__strptime_internal): Convert to prototype-style function
8484         definition.
8485         (strptime): Likewise.
8486         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8487         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8488         type.
8489         (__wcscasecmp): Convert to prototype-style function definition.
8490         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
8491         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8492         type.
8493         (__wcsncasecmp): Convert to prototype-style function definition.
8494
8495         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
8496         function definition.
8497         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8498         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8499         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
8500         * elf/dl-minimal.c (_itoa): Likewise.
8501         * hurd/hurdmalloc.c (malloc): Likewise.
8502         (free): Likewise.
8503         (realloc): Likewise.
8504         * inet/inet6_option.c (inet6_option_space): Likewise.
8505         (inet6_option_init): Likewise.
8506         (inet6_option_append): Likewise.
8507         (inet6_option_alloc): Likewise.
8508         (inet6_option_next): Likewise.
8509         (inet6_option_find): Likewise.
8510         * io/ftw.c (FTW_NAME): Likewise.
8511         (NFTW_NAME): Likewise.
8512         (NFTW_NEW_NAME): Likewise.
8513         (NFTW_OLD_NAME): Likewise.
8514         * libio/iofwide.c (_IO_fwide): Likewise.
8515         * libio/strops.c (_IO_str_init_static_internal): Likewise.
8516         (_IO_str_init_static): Likewise.
8517         (_IO_str_init_readonly): Likewise.
8518         (_IO_str_overflow): Likewise.
8519         (_IO_str_underflow): Likewise.
8520         (_IO_str_count): Likewise.
8521         (_IO_str_seekoff): Likewise.
8522         (_IO_str_pbackfail): Likewise.
8523         (_IO_str_finish): Likewise.
8524         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
8525         (_IO_wstr_overflow): Likewise.
8526         (_IO_wstr_underflow): Likewise.
8527         (_IO_wstr_count): Likewise.
8528         (_IO_wstr_seekoff): Likewise.
8529         (_IO_wstr_pbackfail): Likewise.
8530         (_IO_wstr_finish): Likewise.
8531         * locale/programs/localedef.c (normalize_codeset): Likewise.
8532         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8533         (add_locales_to_archive): Likewise.
8534         (delete_locales_from_archive): Likewise.
8535         * malloc/malloc.c (__libc_mallinfo): Likewise.
8536         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
8537         * misc/tsearch.c (__tfind): Likewise.
8538         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
8539         * nptl/pthread_attr_getdetachstate.c
8540         (__pthread_attr_getdetachstate): Likewise.
8541         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
8542         Likewise.
8543         * nptl/pthread_attr_getinheritsched.c
8544         (__pthread_attr_getinheritsched): Likewise.
8545         * nptl/pthread_attr_getschedparam.c
8546         (__pthread_attr_getschedparam): Likewise.
8547         * nptl/pthread_attr_getschedpolicy.c
8548         (__pthread_attr_getschedpolicy): Likewise.
8549         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
8550         Likewise.
8551         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
8552         Likewise.
8553         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
8554         Likewise.
8555         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
8556         Likewise.
8557         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
8558         (__pthread_attr_init_2_0): Likewise.
8559         * nptl/pthread_attr_setdetachstate.c
8560         (__pthread_attr_setdetachstate): Likewise.
8561         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
8562         Likewise.
8563         * nptl/pthread_attr_setinheritsched.c
8564         (__pthread_attr_setinheritsched): Likewise.
8565         * nptl/pthread_attr_setschedparam.c
8566         (__pthread_attr_setschedparam): Likewise.
8567         * nptl/pthread_attr_setschedpolicy.c
8568         (__pthread_attr_setschedpolicy): Likewise.
8569         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
8570         Likewise.
8571         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
8572         Likewise.
8573         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
8574         Likewise.
8575         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
8576         Likewise.
8577         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
8578         Likewise.
8579         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
8580         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
8581         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
8582         use internal_function.
8583         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
8584         prototype-style function definition.
8585         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
8586         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
8587         internal_function.
8588         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
8589         Convert to prototype-style function definition.
8590         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
8591         Likewise.
8592         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
8593         Likewise.
8594         (__pthread_mutex_unlock): Likewise.
8595         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
8596         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
8597         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
8598         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
8599         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
8600         * nss/makedb.c (process_input): Likewise.
8601         * posix/fnmatch.c (__strchrnul): Likewise.
8602         (__wcschrnul): Likewise.
8603         (fnmatch): Likewise.
8604         * posix/fnmatch_loop.c (FCT): Likewise.
8605         * posix/glob.c (globfree): Likewise.
8606         (__glob_pattern_type): Likewise.
8607         (__glob_pattern_p): Likewise.
8608         * posix/regcomp.c (re_compile_pattern): Likewise.
8609         (re_set_syntax): Likewise.
8610         (re_compile_fastmap): Likewise.
8611         (regcomp): Likewise.
8612         (regerror): Likewise.
8613         (regfree): Likewise.
8614         * posix/regexec.c (regexec): Likewise.
8615         (re_match): Likewise.
8616         (re_search): Likewise.
8617         (re_match_2): Likewise.
8618         (re_search_2): Likewise.
8619         (re_search_stub): Likewise.  Use internal_function
8620         (re_copy_regs): Likewise.
8621         (re_set_registers): Convert to prototype-style function
8622         definition.
8623         (prune_impossible_nodes): Likewise.  Use internal_function.
8624         * resolv/inet_net_pton.c (inet_net_pton): Convert to
8625         prototype-style function definition.
8626         (inet_net_pton_ipv4): Likewise.
8627         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8628         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
8629         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
8630         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
8631         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
8632         Make variadic.
8633         * time/strptime_l.c (localtime_r): Convert to prototype-style
8634         function definition.
8635         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
8636         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
8637         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
8638         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
8639
8640         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
8641         definition.
8642         (_ufc_doit_r): Likewise.
8643         * crypt/crypt_util.c (_ufc_copymem): Likewise.
8644         (_ufc_output_conversion_r): Likewise.
8645         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
8646         * inet/rcmd.c (rcmd_af): Likewise.
8647         (rcmd): Likewise.
8648         (ruserok_af): Likewise.
8649         (ruserok): Likewise.
8650         (ruserok2_sa): Likewise.
8651         (ruserok_sa): Likewise.
8652         (iruserok_af): Likewise.
8653         (iruserok): Likewise.
8654         (__ivaliduser): Likewise.
8655         (__validuser2_sa): Likewise.
8656         * inet/rexec.c (rexec_af): Likewise.
8657         (rexec): Likewise.
8658         * inet/ruserpass.c (ruserpass): Likewise.
8659         * locale/programs/xmalloc.c (xcalloc): Likewise.
8660         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
8661         * math/w_drem.c (__drem): Likewise.
8662         * math/w_dremf.c (__dremf): Likewise.
8663         * math/w_dreml.c (__dreml): Likewise.
8664         * misc/daemon.c (daemon): Likewise.
8665         * resolv/res_debug.c (p_fqnname): Likewise.
8666         * stdlib/div.c (div): Likewise.
8667         * string/memcmp.c (memcmp_bytes): Likewise.
8668         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
8669         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
8670
8671         * crypt/cert.c (main): Convert to prototype-style function
8672         definition.
8673         * io/pipe.c (__pipe): Likewise.
8674         * io/pipe2.c (__pipe2): Likewise.
8675         * misc/futimesat.c (futimesat): Likewise.
8676         * misc/utimes.c (__utimes): Likewise.
8677         * posix/execve.c (__execve): Likewise.
8678         * posix/execvp.c (execvp): Likewise.
8679         * posix/execvpe.c (__execvpe): Likewise.
8680         * posix/fexecve.c (fexecve): Likewise.
8681         * socket/socketpair.c (socketpair): Likewise.
8682         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8683         * stdlib/erand48.c (erand48): Likewise.
8684         * stdlib/erand48_r.c (__erand48_r): Likewise.
8685         * stdlib/jrand48.c (jrand48): Likewise.
8686         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
8687         * stdlib/lcong48.c (lcong48): Likewise.
8688         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
8689         * stdlib/nrand48.c (nrand48): Likewise.
8690         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
8691         * stdlib/seed48.c (seed48): Likewise.
8692         * stdlib/seed48_r.c (__seed48_r): Likewise.
8693         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
8694         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
8695         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
8696
8697 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8698
8699         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
8700         * configure: Regenerated.
8701         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
8702         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
8703         unconditional.
8704         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8705         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8706         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8707         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
8708         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
8709         unconditional.
8710         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8711
8712         * posix/Makefile (CFLAGS-regex.c): Remove variable.
8713         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
8714
8715         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
8716         function definition.
8717         * crypt/crypt_util.c (__encrypt_r): Likewise.
8718         * libio/genops.c (_IO_no_init): Likewise.
8719         * libio/iofopncook.c (_IO_fopencookie): Likewise.
8720         (_IO_old_fopencookie): Likewise.
8721         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
8722         * libio/iogetline.c (_IO_getline): Likewise.
8723         (_IO_getline_info): Likewise.
8724         * libio/iogetwline.c (_IO_getwline): Likewise.
8725         (_IO_getwline_info): Likewise.
8726         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
8727         * libio/vswprintf.c (_IO_vswprintf): Likewise.
8728         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
8729         (find_entry): Likewise.
8730         (iterate_table): Likewise.
8731         (lookup): Likewise.
8732         * login/forkpty.c (forkpty): Likewise.
8733         * misc/hsearch_r.c (__hsearch_r): Likewise.
8734         * misc/select.c (__select): Likewise.
8735         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
8736         Likewise.
8737         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
8738         Likewise.
8739         * nptl/old_pthread_cond_timedwait.c
8740         (__pthread_cond_timedwait_2_0): Likewise.
8741         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
8742         * nptl/pthread_barrierattr_getpshared.c
8743         (pthread_barrierattr_getpshared): Likewise.
8744         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
8745         Likewise.
8746         * nptl/pthread_mutex_setprioceiling.c
8747         (pthread_mutex_setprioceiling): Likewise.
8748         * nptl/pthread_mutexattr_getprioceiling.c
8749         (pthread_mutexattr_getprioceiling): Likewise.
8750         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
8751         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
8752         Likewise.
8753         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
8754         Likewise.
8755         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
8756         Likewise.
8757         * socket/recvfrom.c (__recvfrom): Likewise.
8758         * socket/sendto.c (__sendto): Likewise.
8759         * socket/setsockopt.c (__setsockopt): Likewise.
8760         * stdio-common/_itoa.c (_itoa): Likewise.
8761         * stdio-common/_itowa.c (_itowa): Likewise.
8762         * stdio-common/reg-printf.c (__register_printf_specifier):
8763         Likewise.
8764         (__register_printf_function): Likewise.
8765         * stdio-common/tempname.c (__path_search): Likewise.
8766         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
8767         * stdlib/mul_1.c (mpn_mul_1): Likewise.
8768         * stdlib/random_r.c (__initstate_r): Likewise.
8769         * stdlib/setenv.c (__add_to_environ): Likewise.
8770         * stdlib/submul_1.c (mpn_submul_1): Likewise.
8771         * streams/getpmsg.c (getpmsg): Likewise.
8772         * streams/putmsg.c (putmsg): Likewise.
8773         * streams/putpmsg.c (putpmsg): Likewise.
8774         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
8775         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8776         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
8777         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8778         * sunrpc/pm_getport.c (pmap_getport): Likewise.
8779         * sunrpc/svc_udp.c (cache_get): Likewise.
8780         * sunrpc/xdr_array.c (xdr_vector): Likewise.
8781         * sysdeps/mach/hurd/getcwd.c
8782         (__canonicalize_directory_name_internal): Likewise.
8783         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
8784         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
8785         * sysdeps/mach/hurd/select.c (__select): Likewise.
8786         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
8787         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
8788         * sysdeps/sparc/nptl/pthread_barrier_init.c
8789         (__pthread_barrier_init): Likewise.
8790         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
8791         (__pthread_cond_timedwait): Likewise.
8792         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
8793         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
8794         Likewise.
8795         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
8796         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
8797         Likewise.
8798         * sysvipc/semtimedop.c (semtimedop): Likewise.
8799         * time/setitimer.c (__setitimer): Likewise.
8800         * time/strftime_l.c (emacs_strftime): Likewise.
8801
8802 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8803
8804         * config.make.in (have-ssp): Delete.
8805         (stack-protector): New variable.
8806         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
8807         cache test for -fstack-protector-strong.  Export stack_protector to
8808         the best ssp flag.
8809         * configure: Regenerated.
8810         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
8811         * nscd/Makefile (CFLAGS-nscd): Likewise.
8812         * resolv/Makefile (CFLAGS-libresolv): Likewise.
8813
8814 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8815
8816         [BZ #19122]
8817         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
8818         attribute_hidden.
8819
8820 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8821
8822         [BZ #18743]
8823         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
8824         code to...
8825         (ELIDE_LOCK): ...here.
8826         (__get_new_count): New function with part of the code from
8827         __elide_lock that updates the value of adapt_count after a
8828         transaction abort.
8829         (__elided_trylock): Moved this code to...
8830         (ELIDE_TRYLOCK): ...here.
8831
8832 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8833
8834         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
8835         * configure: Regenerate.
8836         * INSTALL: Regenerate.
8837         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
8838         and tweak grammar.
8839
8840 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
8841
8842         * login/programs/pt_chown.c: Include signal.h
8843         (main): Clear any signal mask from the parent process.
8844
8845 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8846
8847         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
8848         * configure: Regenerated.
8849         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
8850         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
8851         $(gnu89-inline-CFLAGS).
8852
8853         * configure.ac (libc_cv_asm_weak_directive): Remove configure
8854         test.
8855         (libc_cv_asm_weakext_directive): Likewise.
8856         * configure: Regenerated.
8857         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
8858         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
8859         * include/libc-symbols.h
8860         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
8861         #error.
8862         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
8863         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
8864
8865         * sysdeps/arm/backtrace.c (__backtrace): Convert to
8866         prototype-style function definition.
8867         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
8868         * sysdeps/i386/ffs.c (__ffs): Likewise.
8869         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
8870         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
8871         Likewise.
8872         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8873         Likewise.
8874         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
8875         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
8876         Likewise.
8877         * sysdeps/m68k/ffs.c (__ffs): Likewise.
8878         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
8879         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
8880         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
8881         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
8882         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
8883         * sysdeps/mach/hurd/access.c (__access): Likewise.
8884         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
8885         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
8886         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
8887         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
8888         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
8889         (cthread_getspecific): Likewise.
8890         (cthread_setspecific): Likewise.
8891         (__libc_getspecific): Likewise.
8892         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
8893         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
8894         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
8895         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
8896         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
8897         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
8898         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
8899         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
8900         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
8901         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
8902         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
8903         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
8904         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
8905         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
8906         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
8907         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
8908         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
8909         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
8910         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
8911         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
8912         * sysdeps/mach/hurd/link.c (__link): Likewise.
8913         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
8914         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
8915         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
8916         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
8917         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
8918         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
8919         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
8920         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
8921         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
8922         * sysdeps/mach/hurd/rename.c (rename): Likewise.
8923         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
8924         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
8925         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
8926         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
8927         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
8928         * sysdeps/mach/hurd/send.c (__send): Likewise.
8929         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
8930         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
8931         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
8932         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
8933         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
8934         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
8935         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
8936         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
8937         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
8938         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
8939         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
8940         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
8941         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
8942         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
8943         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
8944         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
8945         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
8946         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
8947         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
8948         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
8949         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
8950         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
8951         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
8952         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
8953         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
8954         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
8955         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
8956         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
8957         * sysdeps/posix/alarm.c (alarm): Likewise.
8958         * sysdeps/posix/cuserid.c (cuserid): Likewise.
8959         * sysdeps/posix/dirfd.c (dirfd): Likewise.
8960         * sysdeps/posix/dup.c (__dup): Likewise.
8961         * sysdeps/posix/dup2.c (__dup2): Likewise.
8962         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
8963         (main): Likewise.
8964         * sysdeps/posix/flock.c (__flock): Likewise.
8965         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
8966         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8967         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
8968         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
8969         * sysdeps/posix/isatty.c (__isatty): Likewise.
8970         * sysdeps/posix/killpg.c (killpg): Likewise.
8971         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
8972         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
8973         * sysdeps/posix/raise.c (raise): Likewise.
8974         * sysdeps/posix/remove.c (remove): Likewise.
8975         * sysdeps/posix/rename.c (rename): Likewise.
8976         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
8977         * sysdeps/posix/seekdir.c (seekdir): Likewise.
8978         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
8979         * sysdeps/posix/sigignore.c (sigignore): Likewise.
8980         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
8981         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
8982         * sysdeps/posix/sigset.c (sigset): Likewise.
8983         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
8984         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
8985         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
8986         * sysdeps/posix/time.c (time): Likewise.
8987         * sysdeps/posix/ttyname.c (getttyname): Likewise.
8988         (ttyname): Likewise.
8989         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
8990         * sysdeps/posix/utime.c (utime): Likewise.
8991         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
8992         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
8993         Likewise.
8994         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
8995         (pthread_spin_trylock): Likewise.
8996         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
8997         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
8998         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
8999         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
9000         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
9001         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
9002         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
9003         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
9004         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
9005         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
9006         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
9007         * sysdeps/s390/ffs.c (__ffs): Likewise.
9008         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
9009         Likewise.
9010         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
9011         Likewise.
9012         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
9013         Likewise.
9014         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
9015         (pthread_barrier_destroy): Likewise.
9016         * sysdeps/sparc/nptl/pthread_barrier_wait.c
9017         (__pthread_barrier_wait): Likewise.
9018         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
9019         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
9020         (__pthread_barrier_wait): Likewise.
9021         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
9022         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
9023         (memcmp_not_common_alignment): Likewise.
9024         (MEMCMP): Likewise.
9025         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
9026         (_wordcopy_fwd_dest_aligned): Likewise.
9027         (_wordcopy_bwd_aligned): Likewise.
9028         (_wordcopy_bwd_dest_aligned): Likewise.
9029         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
9030         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
9031         * sysdeps/unix/bsd/stty.c (stty): Likewise.
9032         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
9033         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
9034         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
9035         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
9036         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
9037         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
9038         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
9039         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
9040         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
9041         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
9042         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
9043         * sysdeps/unix/stime.c (stime): Likewise.
9044         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
9045         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
9046         Likewise.  Use internal_function.
9047         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
9048         Convert to prototype-style function definition.
9049         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
9050         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
9051         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
9052         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
9053         Likewise.  Use internal_function.
9054         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
9055         prototype-style function definition
9056         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9057         Likewise.
9058         (__getlogin_r): Likewise.
9059         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
9060         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
9061         (__pthread_cond_broadcast): Likewise.
9062         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
9063         (__pthread_cond_destroy): Likewise.
9064         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
9065         (__pthread_cond_init): Likewise.
9066         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
9067         (__pthread_cond_signal): Likewise.
9068         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
9069         (__pthread_cond_wait): Likewise.
9070         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
9071         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
9072         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
9073         Likewise.
9074         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
9075         Likewise.
9076         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
9077         Likewise.
9078         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
9079         Likewise.
9080         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
9081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
9082         (__ftruncate64): Likewise.
9083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
9084         (truncate64): Likewise.
9085         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
9086         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
9087         (pthread_getcpuclockid): Likewise.
9088         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9089         Likewise.
9090         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9091         Likewise.
9092         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
9093         Likewise.
9094         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
9095         Likewise.
9096         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
9097         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
9098         (__libc_sigaction): Likewise.
9099         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
9100         Likewise.
9101         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
9102         (__sigprocmask): Likewise.
9103         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
9104         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
9105         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
9106         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
9107         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
9108         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
9109         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
9110         Likewise.
9111         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
9112         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
9113         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
9114         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
9115         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
9116         Likewise.
9117         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
9118         (__sigprocmask): Likewise.
9119         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
9120         (cfgetispeed): Likewise.
9121         (cfsetospeed): Likewise.
9122         (cfsetispeed): Likewise.
9123         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
9124         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
9125         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
9126         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
9127         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
9128         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
9129         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
9130         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
9131         Likewise.
9132         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
9133         Likewise.
9134         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
9135         Likewise.
9136         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
9137         Likewise.
9138         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
9139
9140 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9141
9142         sunrpc: Rewrite with explicit TLS access using __thread.
9143         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
9144         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
9145         directly.
9146         (__rpc_thread_variables): Access thread_rpc_vars directly.
9147         Eliminate redundant assignment of the tvp variable.
9148
9149 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9150
9151         malloc: Rewrite with explicit TLS access using __thread.
9152         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
9153         (tsd_setspecific, tsd_getspecific): Remove.
9154         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
9155         (tsd_setspecific, tsd_getspecific): Likewise.
9156         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
9157         (tsd_setspecific, tsd_getspecific): Likewise.
9158         * malloc/arena.c (thread_arena): New TLS variable.
9159         (arena_key): Remove variable.
9160         (arena_get): Use thread_arena.
9161         (arena_lookup): Remove macro.
9162         (malloc_atfork, free_atfork, ptmalloc_lock_all)
9163         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
9164         (_int_new_arena, get_free_list, reused_arena)
9165         (arena_thread_freeres): Use thread_arena.
9166         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
9167         tsd_getspecific, tsd_setspecific from safety annotations.
9168         (Allocating Cleared Space): Remove arena_lookup from safety
9169         annotations.
9170
9171 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9172
9173         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
9174         struct scratch_buffer instead of extend_alloca.
9175
9176 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9177
9178         * sysdeps/unix/sysv/linux/kernel-features.h
9179         (__ASSUME_SOCK_CLOEXEC): Remove.
9180         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
9181         (__have_paccept): Remove unused macro.
9182         * include/unistd.h (__have_sock_cloexec): Remove declaration.
9183         * misc/syslog.c (openlog_internal): Remove fallback code for
9184         !__ASSUME_SOCK_CLOEXEC.
9185         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
9186         missing SOCK_CLOEXEC.
9187         * nscd/connections.c (have_sock_cloexec): Remove definition.
9188         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
9189         * nscd/nscd_helper.c (open_socket): Remove fallback code for
9190         !__ASSUME_SOCK_CLOEXEC.
9191         * resolv/res_send.c (__have_o_nonblock): Remove definition.
9192         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
9193         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
9194         definition.
9195         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
9196         code for !__ASSUME_SOCK_CLOEXEC.
9197
9198 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9199
9200         [BZ #18982]
9201         * manual/stdio.texi (Variable Arguments Output): Add portability
9202         note, explaining that vfprintf clobbers the va_list pointer.
9203
9204 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
9205
9206         * math/libm-test.inc (fabs_test_data): Add more tests.
9207         (fdim_test_data): Likewise.
9208         (fma_test_data): Likewise.
9209         (fmax_test_data): Likewise.
9210         (fmin_test_data): Likewise.
9211         (fmod_test_data): Likewise.
9212
9213 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
9214
9215         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
9216         data.
9217
9218 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
9219
9220         * math/libm-test.inc (ceil_test_data): Add more tests and more
9221         expectations for "inexact".
9222         (floor_test_data): Add more tests.
9223         (round_test_data): Likewise.
9224         (trunc_test_data): Likewise.
9225
9226         * crypt/cert.c (good_bye): Convert to prototype-style function
9227         definition.
9228         (get8): Likewise.
9229         (put8): Likewise.
9230         * crypt/crypt-entry.c (crypt): Likewise.
9231         (__fcrypt): Likewise.
9232         * crypt/crypt_util.c (_ufc_prbits): Likewise.
9233         (_ufc_set_bits): Likewise.
9234         (_ufc_clearmem): Likewise.
9235         (__init_des_r): Likewise.
9236         (shuffle_sb): Likewise.
9237         (shuffle_sb): Likewise.
9238         (_ufc_setup_salt_r): Likewise.
9239         (_ufc_mk_keytab_r): Likewise.
9240         (_ufc_dofinalperm_r): Likewise.
9241         (encrypt): Likewise.
9242         (__setkey_r): Likewise.
9243         (setkey): Likewise.
9244         * crypt/md5.c (md5_init_ctx): Likewise.
9245         (md5_read_ctx): Likewise.
9246         (md5_finish_ctx): Likewise.
9247         (md5_stream): Likewise.
9248         (md5_buffer): Likewise.
9249         (md5_process_bytes): Likewise.
9250         * crypt/sha256.c (__sha256_init_ctx): Likewise.
9251         (__sha256_finish_ctx): Likewise.
9252         (__sha256_process_bytes): Likewise.
9253         * crypt/sha512.c (__sha512_init_ctx): Likewise.
9254         (__sha512_finish_ctx): Likewise.
9255         (__sha512_process_bytes): Likewise.
9256         * ctype/isctype.c (__isctype): Likewise.
9257         * debug/backtrace.c (__backtrace): Likewise.
9258         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
9259         * debug/fgets_chk.c (__fgets_chk): Likewise.
9260         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
9261         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
9262         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
9263         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
9264         * debug/memset_chk.c (__memset_chk): Likewise.
9265         * debug/strcat_chk.c (__strcat_chk): Likewise.
9266         * debug/strncat_chk.c (__strncat_chk): Likewise.
9267         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
9268         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
9269         * dirent/dirfd.c (dirfd): Likewise.
9270         * dirent/getdents.c (__getdirentries): Likewise.
9271         * dirent/getdents64.c (getdirentries64): Likewise.
9272         * dirent/rewinddir.c (__rewinddir): Likewise.
9273         * dirent/seekdir.c (seekdir): Likewise.
9274         * dirent/telldir.c (telldir): Likewise.
9275         * elf/sln.c (makesymlinks): Likewise.
9276         (makesymlink): Likewise.
9277         * gmon/gmon.c (__moncontrol): Likewise.
9278         (__monstartup): Likewise.
9279         (write_hist): Likewise.
9280         (write_call_graph): Likewise.
9281         (write_bb_counts): Likewise.
9282         * grp/setgroups.c (setgroups): Likewise.
9283         * inet/inet_lnaof.c (inet_lnaof): Likewise.
9284         * inet/inet_net.c (inet_network): Likewise.
9285         * inet/inet_netof.c (inet_netof): Likewise.
9286         * inet/rcmd.c (rresvport_af): Likewise.
9287         (rresvport): Likewise.
9288         * io/access.c (__access): Likewise.
9289         * io/chdir.c (__chdir): Likewise.
9290         * io/chmod.c (__chmod): Likewise.
9291         * io/chown.c (__chown): Likewise.
9292         * io/close.c (__close): Likewise.
9293         * io/creat.c (creat): Likewise.
9294         * io/creat64.c (creat64): Likewise.
9295         * io/dup.c (__dup): Likewise.
9296         * io/dup2.c (__dup2): Likewise.
9297         * io/dup3.c (__dup3): Likewise.
9298         * io/euidaccess.c (__euidaccess): Likewise.
9299         * io/faccessat.c (faccessat): Likewise.
9300         * io/fchmod.c (__fchmod): Likewise.
9301         * io/fchmodat.c (fchmodat): Likewise.
9302         * io/fchown.c (__fchown): Likewise.
9303         * io/fchownat.c (fchownat): Likewise.
9304         * io/fcntl.c (__fcntl): Likewise.
9305         * io/flock.c (__flock): Likewise.
9306         * io/fts.c (fts_load): Likewise.
9307         (fts_close): Likewise.
9308         (fts_read): Likewise.
9309         (fts_set): Likewise.
9310         (fts_children): Likewise.
9311         (fts_build): Likewise.
9312         (fts_stat): Likewise.
9313         (fts_sort): Likewise.
9314         (fts_alloc): Likewise.
9315         (fts_lfree): Likewise.
9316         (fts_palloc): Likewise.
9317         (fts_padjust): Likewise.
9318         (fts_maxarglen): Likewise.
9319         (fts_safe_changedir): Likewise.
9320         * io/getwd.c (getwd): Likewise.
9321         * io/isatty.c (__isatty): Likewise.
9322         * io/lchown.c (__lchown): Likewise.
9323         * io/link.c (__link): Likewise.
9324         * io/linkat.c (linkat): Likewise.
9325         * io/lseek.c (__libc_lseek): Likewise.
9326         * io/mkdir.c (__mkdir): Likewise.
9327         * io/mkdirat.c (mkdirat): Likewise.
9328         * io/mkfifo.c (mkfifo): Likewise.
9329         * io/mkfifoat.c (mkfifoat): Likewise.
9330         * io/open.c (__libc_open): Likewise.
9331         * io/open64.c (__libc_open64): Likewise.
9332         * io/readlink.c (__readlink): Likewise.
9333         * io/readlinkat.c (readlinkat): Likewise.
9334         * io/rmdir.c (__rmdir): Likewise.
9335         * io/symlink.c (__symlink): Likewise.
9336         * io/symlinkat.c (symlinkat): Likewise.
9337         * io/ttyname.c (ttyname): Likewise.
9338         * io/ttyname_r.c (__ttyname_r): Likewise.
9339         * io/umask.c (__umask): Likewise.
9340         * io/unlink.c (__unlink): Likewise.
9341         * io/unlinkat.c (unlinkat): Likewise.
9342         * io/utime.c (utime): Likewise.
9343         * libio/clearerr.c (clearerr): Likewise.
9344         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
9345         * libio/feof.c (_IO_feof): Likewise.
9346         * libio/feof_u.c (feof_unlocked): Likewise.
9347         * libio/ferror.c (_IO_ferror): Likewise.
9348         * libio/ferror_u.c (ferror_unlocked): Likewise.
9349         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
9350         * libio/fileno.c (__fileno): Likewise.
9351         * libio/fputc.c (fputc): Likewise.
9352         * libio/fputc_u.c (fputc_unlocked): Likewise.
9353         * libio/fputwc.c (fputwc): Likewise.
9354         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
9355         * libio/freopen.c (freopen): Likewise.
9356         * libio/freopen64.c (freopen64): Likewise.
9357         * libio/fseek.c (fseek): Likewise.
9358         * libio/fseeko.c (fseeko): Likewise.
9359         * libio/fseeko64.c (fseeko64): Likewise.
9360         * libio/ftello.c (__ftello): Likewise.
9361         * libio/ftello64.c (ftello64): Likewise.
9362         * libio/fwide.c (fwide): Likewise.
9363         * libio/genops.c (_IO_un_link): Likewise.
9364         (_IO_link_in): Likewise.
9365         (_IO_least_marker): Likewise.
9366         (_IO_switch_to_main_get_area): Likewise.
9367         (_IO_switch_to_backup_area): Likewise.
9368         (_IO_switch_to_get_mode): Likewise.
9369         (_IO_free_backup_area): Likewise.
9370         (_IO_switch_to_put_mode): Likewise.
9371         (__overflow): Likewise.
9372         (__underflow): Likewise.
9373         (__uflow): Likewise.
9374         (_IO_setb): Likewise.
9375         (_IO_doallocbuf): Likewise.
9376         (_IO_default_underflow): Likewise.
9377         (_IO_default_uflow): Likewise.
9378         (_IO_default_xsputn): Likewise.
9379         (_IO_sgetn): Likewise.
9380         (_IO_default_xsgetn): Likewise.
9381         (_IO_sync): Likewise.
9382         (_IO_default_setbuf): Likewise.
9383         (_IO_default_seekpos): Likewise.
9384         (_IO_default_doallocate): Likewise.
9385         (_IO_init): Likewise.
9386         (_IO_old_init): Likewise.
9387         (_IO_default_sync): Likewise.
9388         (_IO_default_finish): Likewise.
9389         (_IO_default_seekoff): Likewise.
9390         (_IO_sputbackc): Likewise.
9391         (_IO_sungetc): Likewise.
9392         (_IO_set_column): Likewise.
9393         (_IO_set_column): Likewise.
9394         (_IO_adjust_column): Likewise.
9395         (_IO_get_column): Likewise.
9396         (_IO_init_marker): Likewise.
9397         (_IO_remove_marker): Likewise.
9398         (_IO_marker_difference): Likewise.
9399         (_IO_marker_delta): Likewise.
9400         (_IO_seekmark): Likewise.
9401         (_IO_unsave_markers): Likewise.
9402         (_IO_nobackup_pbackfail): Likewise.
9403         (_IO_default_pbackfail): Likewise.
9404         (_IO_default_seek): Likewise.
9405         (_IO_default_stat): Likewise.
9406         (_IO_default_read): Likewise.
9407         (_IO_default_write): Likewise.
9408         (_IO_default_showmanyc): Likewise.
9409         (_IO_default_imbue): Likewise.
9410         (_IO_iter_next): Likewise.
9411         (_IO_iter_file): Likewise.
9412         * libio/getc.c (_IO_getc): Likewise.
9413         * libio/getwc.c (_IO_getwc): Likewise.
9414         * libio/iofclose.c (_IO_new_fclose): Likewise.
9415         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
9416         * libio/iofflush.c (_IO_fflush): Likewise.
9417         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
9418         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
9419         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
9420         * libio/iofgets.c (_IO_fgets): Likewise.
9421         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
9422         * libio/iofgetws.c (fgetws): Likewise.
9423         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
9424         * libio/iofopen64.c (_IO_fopen64): Likewise.
9425         * libio/iofopncook.c (_IO_cookie_read): Likewise.
9426         (_IO_cookie_write): Likewise.
9427         (_IO_cookie_seek): Likewise.
9428         (_IO_cookie_close): Likewise.
9429         (_IO_cookie_seekoff): Likewise.
9430         (_IO_old_cookie_seek): Likewise.
9431         * libio/iofputs.c (_IO_fputs): Likewise.
9432         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
9433         * libio/iofputws.c (fputws): Likewise.
9434         * libio/iofputws_u.c (fputws_unlocked): Likewise.
9435         * libio/iofread.c (_IO_fread): Likewise.
9436         * libio/iofread_u.c (__fread_unlocked): Likewise.
9437         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
9438         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
9439         * libio/ioftell.c (_IO_ftell): Likewise.
9440         * libio/iofwrite.c (_IO_fwrite): Likewise.
9441         * libio/iogetdelim.c (_IO_getdelim): Likewise.
9442         * libio/iogets.c (_IO_gets): Likewise.
9443         * libio/iopadn.c (_IO_padn): Likewise.
9444         * libio/iopopen.c (_IO_new_proc_open): Likewise.
9445         (_IO_new_popen): Likewise.
9446         (_IO_new_proc_close): Likewise.
9447         * libio/ioputs.c (_IO_puts): Likewise.
9448         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
9449         (_IO_seekoff): Likewise.
9450         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
9451         (_IO_seekpos): Likewise.
9452         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
9453         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
9454         * libio/ioungetc.c (_IO_ungetc): Likewise.
9455         * libio/ioungetwc.c (ungetwc): Likewise.
9456         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
9457         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
9458         * libio/iowpadn.c (_IO_wpadn): Likewise.
9459         * libio/libc_fatal.c (__libc_fatal): Likewise.
9460         * libio/memstream.c (__open_memstream): Likewise.
9461         (_IO_mem_sync): Likewise.
9462         (_IO_mem_finish): Likewise.
9463         * libio/oldfileops.c (_IO_old_file_init): Likewise.
9464         (_IO_old_file_close_it): Likewise.
9465         (_IO_old_file_finish): Likewise.
9466         (_IO_old_file_fopen): Likewise.
9467         (_IO_old_file_attach): Likewise.
9468         (_IO_old_file_setbuf): Likewise.
9469         (_IO_old_do_write): Likewise.
9470         (old_do_write): Likewise.
9471         (_IO_old_file_underflow): Likewise.
9472         (_IO_old_file_overflow): Likewise.
9473         (_IO_old_file_sync): Likewise.
9474         (_IO_old_file_seekoff): Likewise.
9475         (_IO_old_file_write): Likewise.
9476         (_IO_old_file_xsputn): Likewise.
9477         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
9478         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
9479         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
9480         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
9481         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
9482         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
9483         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
9484         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9485         (_IO_old_popen): Likewise.
9486         (_IO_old_proc_close): Likewise.
9487         * libio/oldpclose.c (__old_pclose): Likewise.
9488         * libio/pclose.c (__new_pclose): Likewise.
9489         * libio/peekc.c (_IO_peekc_locked): Likewise.
9490         * libio/putc.c (_IO_putc): Likewise.
9491         * libio/putc_u.c (putc_unlocked): Likewise.
9492         * libio/putchar.c (putchar): Likewise.
9493         * libio/putchar_u.c (putchar_unlocked): Likewise.
9494         * libio/putwc.c (putwc): Likewise.
9495         * libio/putwc_u.c (putwc_unlocked): Likewise.
9496         * libio/putwchar.c (putwchar): Likewise.
9497         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
9498         * libio/rewind.c (rewind): Likewise.
9499         * libio/setbuf.c (setbuf): Likewise.
9500         * libio/setlinebuf.c (setlinebuf): Likewise.
9501         * libio/vasprintf.c (_IO_vasprintf): Likewise.
9502         * libio/vscanf.c (_IO_vscanf): Likewise.
9503         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
9504         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
9505         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
9506         * libio/wgenops.c (_IO_least_wmarker): Likewise.
9507         (_IO_switch_to_main_wget_area): Likewise.
9508         (_IO_switch_to_wbackup_area): Likewise.
9509         (_IO_wsetb): Likewise.
9510         (_IO_wdefault_pbackfail): Likewise.
9511         (_IO_wdefault_finish): Likewise.
9512         (_IO_wdefault_uflow): Likewise.
9513         (__woverflow): Likewise.
9514         (__wuflow): Likewise.
9515         (__wunderflow): Likewise.
9516         (_IO_wdefault_xsputn): Likewise.
9517         (_IO_wdefault_xsgetn): Likewise.
9518         (_IO_wdoallocbuf): Likewise.
9519         (_IO_wdefault_doallocate): Likewise.
9520         (_IO_switch_to_wget_mode): Likewise.
9521         (_IO_free_wbackup_area): Likewise.
9522         (_IO_switch_to_wput_mode): Likewise.
9523         (_IO_sputbackwc): Likewise.
9524         (_IO_sungetwc): Likewise.
9525         (_IO_adjust_wcolumn): Likewise.
9526         (_IO_init_wmarker): Likewise.
9527         (_IO_wmarker_delta): Likewise.
9528         (_IO_seekwmark): Likewise.
9529         (_IO_unsave_wmarkers): Likewise.
9530         * libio/wmemstream.c (open_wmemstream): Likewise.
9531         (_IO_wmem_sync): Likewise.
9532         (_IO_wmem_finish): Likewise.
9533         * locale/nl_langinfo.c (nl_langinfo): Likewise.
9534         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
9535         * locale/programs/simple-hash.c (init_hash): Likewise.
9536         (delete_hash): Likewise.
9537         (insert_entry): Likewise.
9538         (set_entry): Likewise.
9539         (next_prime): Likewise.
9540         (is_prime): Likewise.
9541         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
9542         (xmalloc): Likewise.
9543         (xrealloc): Likewise.
9544         * locale/programs/xstrdup.c (xstrdup): Likewise.
9545         * localedata/collate-test.c (xstrcoll): Likewise.
9546         * localedata/xfrm-test.c (xstrcmp): Likewise.
9547         * login/getlogin_r.c (__getlogin_r): Likewise.
9548         * login/getpt.c (__posix_openpt): Likewise.
9549         * login/login_tty.c (login_tty): Likewise.
9550         * login/setlogin.c (setlogin): Likewise.
9551         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
9552         (mach_msg_destroy_port): Likewise.
9553         (mach_msg_destroy_memory): Likewise.
9554         * malloc/mcheck.c (flood): Likewise.
9555         * misc/acct.c (acct): Likewise.
9556         * misc/brk.c (__brk): Likewise.
9557         * misc/chflags.c (chflags): Likewise.
9558         * misc/chroot.c (chroot): Likewise.
9559         * misc/fchflags.c (fchflags): Likewise.
9560         * misc/fstab.c (getfsspec): Likewise.
9561         (getfsfile): Likewise.
9562         * misc/fsync.c (fsync): Likewise.
9563         * misc/ftruncate.c (__ftruncate): Likewise.
9564         * misc/ftruncate64.c (__ftruncate64): Likewise.
9565         * misc/getdomain.c (getdomainname): Likewise.
9566         (getdomainname): Likewise.
9567         * misc/gethostname.c (__gethostname): Likewise.
9568         * misc/getpass.c (getpass): Likewise.
9569         * misc/getttyent.c (skip): Likewise.
9570         (value): Likewise.
9571         * misc/gtty.c (gtty): Likewise.
9572         * misc/hsearch.c (hsearch): Likewise.
9573         (hcreate): Likewise.
9574         * misc/hsearch_r.c (__hcreate_r): Likewise.
9575         (__hdestroy_r): Likewise.
9576         * misc/ioctl.c (__ioctl): Likewise.
9577         * misc/mkdtemp.c (mkdtemp): Likewise.
9578         * misc/mkostemp.c (mkostemp): Likewise.
9579         * misc/mkostemp64.c (mkostemp64): Likewise.
9580         * misc/mkostemps.c (mkostemps): Likewise.
9581         * misc/mkostemps64.c (mkostemps64): Likewise.
9582         * misc/mkstemp.c (mkstemp): Likewise.
9583         * misc/mkstemp64.c (mkstemp64): Likewise.
9584         * misc/mkstemps.c (mkstemps): Likewise.
9585         * misc/mkstemps64.c (mkstemps64): Likewise.
9586         * misc/mktemp.c (__mktemp): Likewise.
9587         * misc/preadv.c (preadv): Likewise.
9588         * misc/preadv64.c (preadv64): Likewise.
9589         * misc/pwritev.c (pwritev): Likewise.
9590         * misc/pwritev64.c (pwritev64): Likewise.
9591         * misc/readv.c (__readv): Likewise.
9592         * misc/revoke.c (revoke): Likewise.
9593         * misc/setdomain.c (setdomainname): Likewise.
9594         * misc/setegid.c (setegid): Likewise.
9595         * misc/seteuid.c (seteuid): Likewise.
9596         * misc/sethostid.c (sethostid): Likewise.
9597         * misc/sethostname.c (sethostname): Likewise.
9598         * misc/setregid.c (__setregid): Likewise.
9599         * misc/setreuid.c (__setreuid): Likewise.
9600         * misc/sstk.c (sstk): Likewise.
9601         * misc/stty.c (stty): Likewise.
9602         * misc/syscall.c (syscall): Likewise.
9603         * misc/syslog.c (setlogmask): Likewise.
9604         * misc/truncate.c (__truncate): Likewise.
9605         * misc/truncate64.c (truncate64): Likewise.
9606         * misc/ualarm.c (ualarm): Likewise.
9607         * misc/usleep.c (usleep): Likewise.
9608         * misc/ustat.c (ustat): Likewise.
9609         * misc/writev.c (__writev): Likewise.
9610         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
9611         * nptl/old_pthread_cond_broadcast.c
9612         (__pthread_cond_broadcast_2_0): Likewise.
9613         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
9614         Likewise.
9615         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
9616         Likewise.
9617         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
9618         Likewise.
9619         * nptl/pt-raise.c (raise): Likewise.
9620         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
9621         Likewise.
9622         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
9623         * nptl/pthread_barrierattr_destroy.c
9624         (pthread_barrierattr_destroy): Likewise.
9625         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
9626         Likewise.
9627         * nptl/pthread_barrierattr_setpshared.c
9628         (pthread_barrierattr_setpshared): Likewise.
9629         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
9630         Likewise.
9631         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
9632         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
9633         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
9634         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
9635         Likewise.
9636         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
9637         Likewise.
9638         * nptl/pthread_condattr_getpshared.c
9639         (pthread_condattr_getpshared): Likewise.
9640         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
9641         Likewise.
9642         * nptl/pthread_condattr_setpshared.c
9643         (pthread_condattr_setpshared): Likewise.
9644         * nptl/pthread_detach.c (pthread_detach): Likewise.
9645         * nptl/pthread_equal.c (__pthread_equal): Likewise.
9646         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
9647         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
9648         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
9649         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
9650         Likewise.
9651         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
9652         Likewise.
9653         * nptl/pthread_mutex_getprioceiling.c
9654         (pthread_mutex_getprioceiling): Likewise.
9655         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
9656         Likewise.
9657         * nptl/pthread_mutexattr_getprotocol.c
9658         (pthread_mutexattr_getprotocol): Likewise.
9659         * nptl/pthread_mutexattr_getpshared.c
9660         (pthread_mutexattr_getpshared): Likewise.
9661         * nptl/pthread_mutexattr_getrobust.c
9662         (pthread_mutexattr_getrobust): Likewise.
9663         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
9664         Likewise.
9665         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
9666         Likewise.
9667         * nptl/pthread_mutexattr_setprioceiling.c
9668         (pthread_mutexattr_setprioceiling): Likewise.
9669         * nptl/pthread_mutexattr_setprotocol.c
9670         (pthread_mutexattr_setprotocol): Likewise.
9671         * nptl/pthread_mutexattr_setpshared.c
9672         (pthread_mutexattr_setpshared): Likewise.
9673         * nptl/pthread_mutexattr_setrobust.c
9674         (pthread_mutexattr_setrobust): Likewise.
9675         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
9676         Likewise.
9677         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
9678         Likewise.
9679         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
9680         Likewise.
9681         * nptl/pthread_rwlockattr_getkind_np.c
9682         (pthread_rwlockattr_getkind_np): Likewise.
9683         * nptl/pthread_rwlockattr_getpshared.c
9684         (pthread_rwlockattr_getpshared): Likewise.
9685         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
9686         Likewise.
9687         * nptl/pthread_rwlockattr_setkind_np.c
9688         (pthread_rwlockattr_setkind_np): Likewise.
9689         * nptl/pthread_rwlockattr_setpshared.c
9690         (pthread_rwlockattr_setpshared): Likewise.
9691         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
9692         Likewise.
9693         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
9694         Likewise.
9695         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
9696         Likewise.
9697         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
9698         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
9699         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
9700         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
9701         * nptl/sem_close.c (sem_close): Likewise.
9702         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
9703         * nptl/sem_init.c (__old_sem_init): Likewise.
9704         * nptl/sigaction.c (__sigaction): Likewise.
9705         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
9706         * posix/_exit.c (_exit): Likewise.
9707         * posix/alarm.c (alarm): Likewise.
9708         * posix/confstr.c (confstr): Likewise.
9709         * posix/fpathconf.c (__fpathconf): Likewise.
9710         * posix/getgroups.c (__getgroups): Likewise.
9711         * posix/getpgid.c (__getpgid): Likewise.
9712         * posix/group_member.c (__group_member): Likewise.
9713         * posix/pathconf.c (__pathconf): Likewise.
9714         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
9715         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
9716         * posix/setgid.c (__setgid): Likewise.
9717         * posix/setpgid.c (__setpgid): Likewise.
9718         * posix/setuid.c (__setuid): Likewise.
9719         * posix/sleep.c (__sleep): Likewise.
9720         * posix/sysconf.c (__sysconf): Likewise.
9721         * posix/times.c (__times): Likewise.
9722         * posix/uname.c (__uname): Likewise.
9723         * posix/waitid.c (__waitid): Likewise.
9724         * pwd/getpw.c (__getpw): Likewise.
9725         * resolv/base64.c (b64_pton): Likewise.
9726         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
9727         * resolv/gethnamaddr.c (Dprintf): Likewise.
9728         (gethostbyname): Likewise.
9729         (gethostbyname2): Likewise.
9730         (gethostbyaddr): Likewise.
9731         (_sethtent): Likewise.
9732         (_gethtbyname): Likewise.
9733         (_gethtbyname2): Likewise.
9734         (_gethtbyaddr): Likewise.
9735         (map_v4v6_address): Likewise.
9736         (map_v4v6_hostent): Likewise.
9737         (addrsort): Likewise.
9738         (ht_sethostent): Likewise.
9739         (ht_gethostbyname): Likewise.
9740         (ht_gethostbyaddr): Likewise.
9741         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
9742         (inet_net_ntop_ipv4): Likewise.
9743         * resolv/inet_neta.c (inet_neta): Likewise.
9744         * resolv/inet_ntop.c (inet_ntop): Likewise.
9745         (inet_ntop4): Likewise.
9746         (inet_ntop6): Likewise.
9747         * resolv/inet_pton.c (__inet_pton): Likewise.
9748         (inet_pton4): Likewise.
9749         (inet_pton6): Likewise.
9750         * resolv/res_debug.c (loc_aton): Likewise.
9751         (loc_ntoa): Likewise.
9752         * resource/getpriority.c (__getpriority): Likewise.
9753         * resource/getrusage.c (__getrusage): Likewise.
9754         * resource/nice.c (nice): Likewise.
9755         * resource/setpriority.c (__setpriority): Likewise.
9756         * resource/setrlimit64.c (setrlimit64): Likewise.
9757         * resource/vlimit.c (vlimit): Likewise.
9758         * resource/vtimes.c (vtimes): Likewise.
9759         * rt/aio_error.c (aio_error): Likewise.
9760         * rt/aio_return.c (aio_return): Likewise.
9761         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
9762         * signal/kill.c (__kill): Likewise.
9763         * signal/killpg.c (killpg): Likewise.
9764         * signal/raise.c (raise): Likewise.
9765         * signal/sigaction.c (__sigaction): Likewise.
9766         * signal/sigaddset.c (sigaddset): Likewise.
9767         * signal/sigaltstack.c (sigaltstack): Likewise.
9768         * signal/sigandset.c (sigandset): Likewise.
9769         * signal/sigblock.c (__sigblock): Likewise.
9770         * signal/sigdelset.c (sigdelset): Likewise.
9771         * signal/sigempty.c (sigemptyset): Likewise.
9772         * signal/sigfillset.c (sigfillset): Likewise.
9773         * signal/sighold.c (sighold): Likewise.
9774         * signal/sigignore.c (sigignore): Likewise.
9775         * signal/sigintr.c (siginterrupt): Likewise.
9776         * signal/sigisempty.c (sigisemptyset): Likewise.
9777         * signal/sigismem.c (sigismember): Likewise.
9778         * signal/signal.c (signal): Likewise.
9779         * signal/sigorset.c (sigorset): Likewise.
9780         * signal/sigpause.c (__sigpause): Likewise.
9781         * signal/sigpending.c (sigpending): Likewise.
9782         * signal/sigprocmask.c (__sigprocmask): Likewise.
9783         * signal/sigrelse.c (sigrelse): Likewise.
9784         * signal/sigreturn.c (__sigreturn): Likewise.
9785         * signal/sigset.c (sigset): Likewise.
9786         * signal/sigsetmask.c (__sigsetmask): Likewise.
9787         * signal/sigstack.c (sigstack): Likewise.
9788         * signal/sigsuspend.c (__sigsuspend): Likewise.
9789         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
9790         * signal/sysv_signal.c (__sysv_signal): Likewise.
9791         * socket/accept.c (accept): Likewise.
9792         * socket/accept4.c (__libc_accept4): Likewise.
9793         * socket/bind.c (__bind): Likewise.
9794         * socket/connect.c (__connect): Likewise.
9795         * socket/getpeername.c (getpeername): Likewise.
9796         * socket/getsockname.c (__getsockname): Likewise.
9797         * socket/getsockopt.c (getsockopt): Likewise.
9798         * socket/listen.c (__listen): Likewise.
9799         * socket/recv.c (__recv): Likewise.
9800         * socket/recvmsg.c (__recvmsg): Likewise.
9801         * socket/send.c (__send): Likewise.
9802         * socket/sendmsg.c (__sendmsg): Likewise.
9803         * socket/shutdown.c (shutdown): Likewise.
9804         * socket/sockatmark.c (sockatmark): Likewise.
9805         * socket/socket.c (__socket): Likewise.
9806         * stdio-common/ctermid.c (ctermid): Likewise.
9807         * stdio-common/cuserid.c (cuserid): Likewise.
9808         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9809         * stdio-common/remove.c (remove): Likewise.
9810         * stdio-common/rename.c (rename): Likewise.
9811         * stdio-common/renameat.c (renameat): Likewise.
9812         * stdio-common/tempname.c (__gen_tempname): Likewise.
9813         * stdio-common/xbug.c (InitBuffer): Likewise.
9814         (AppendToBuffer): Likewise.
9815         (ReadFile): Likewise.
9816         * stdlib/a64l.c (a64l): Likewise.
9817         * stdlib/drand48_r.c (drand48_r): Likewise.
9818         * stdlib/getcontext.c (getcontext): Likewise.
9819         * stdlib/getenv.c (getenv): Likewise.
9820         * stdlib/l64a.c (l64a): Likewise.
9821         * stdlib/llabs.c (llabs): Likewise.
9822         * stdlib/lldiv.c (lldiv): Likewise.
9823         * stdlib/lrand48_r.c (lrand48_r): Likewise.
9824         * stdlib/mrand48_r.c (mrand48_r): Likewise.
9825         * stdlib/putenv.c (putenv): Likewise.
9826         * stdlib/random.c (__srandom): Likewise.
9827         (__initstate): Likewise.
9828         (__setstate): Likewise.
9829         * stdlib/random_r.c (__srandom_r): Likewise.
9830         (__setstate_r): Likewise.
9831         (__random_r): Likewise.
9832         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
9833         * stdlib/setcontext.c (setcontext): Likewise.
9834         * stdlib/setenv.c (setenv): Likewise.
9835         (unsetenv): Likewise.
9836         * stdlib/srand48.c (srand48): Likewise.
9837         * stdlib/srand48_r.c (__srand48_r): Likewise.
9838         * stdlib/swapcontext.c (swapcontext): Likewise.
9839         * stdlib/system.c (__libc_system): Likewise.
9840         * stdlib/tst-strtod.c (expand): Likewise.
9841         * stdlib/tst-strtol.c (expand): Likewise.
9842         * stdlib/tst-strtoll.c (expand): Likewise.
9843         * streams/fattach.c (fattach): Likewise.
9844         * streams/fdetach.c (fdetach): Likewise.
9845         * streams/getmsg.c (getmsg): Likewise.
9846         * streams/isastream.c (isastream): Likewise.
9847         * string/ffs.c (__ffs): Likewise.
9848         * string/ffsll.c (ffsll): Likewise.
9849         * string/memcmp.c (memcmp_common_alignment): Likewise.
9850         (memcmp_not_common_alignment): Likewise.
9851         (MEMCMP): Likewise.
9852         * string/memcpy.c (memcpy): Likewise.
9853         * string/memmove.c (MEMMOVE): Likewise.
9854         * string/memset.c (memset): Likewise.
9855         * string/rawmemchr.c (RAWMEMCHR): Likewise.
9856         * string/strchrnul.c (STRCHRNUL): Likewise.
9857         * string/strerror.c (strerror): Likewise.
9858         * string/strndup.c (__strndup): Likewise.
9859         * string/strverscmp.c (__strverscmp): Likewise.
9860         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
9861         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
9862         (clnttcp_freeres): Likewise.
9863         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
9864         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
9865         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
9866         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
9867         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
9868         (xdr_callhdr): Likewise.
9869         * sunrpc/rpcinfo.c (udpping): Likewise.
9870         (tcpping): Likewise.
9871         (pstatus): Likewise.
9872         (pmapdump): Likewise.
9873         (brdcst): Likewise.
9874         (deletereg): Likewise.
9875         (getprognum): Likewise.
9876         (getvers): Likewise.
9877         (get_inet_address): Likewise.
9878         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
9879         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9880         (svcudp_stat): Likewise.
9881         (svcudp_recv): Likewise.
9882         (svcudp_reply): Likewise.
9883         (svcudp_getargs): Likewise.
9884         (svcudp_freeargs): Likewise.
9885         (svcudp_destroy): Likewise.
9886         * sunrpc/xdr.c (xdr_bytes): Likewise.
9887         (xdr_netobj): Likewise.
9888         (xdr_string): Likewise.
9889         (xdr_wrapstring): Likewise.
9890         * sunrpc/xdr_float.c (xdr_float): Likewise.
9891         (xdr_double): Likewise.
9892         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
9893         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
9894         * sysvipc/ftok.c (ftok): Likewise.
9895         * sysvipc/msgctl.c (msgctl): Likewise.
9896         * sysvipc/msgget.c (msgget): Likewise.
9897         * sysvipc/msgrcv.c (msgrcv): Likewise.
9898         * sysvipc/msgsnd.c (msgsnd): Likewise.
9899         * sysvipc/semget.c (semget): Likewise.
9900         * sysvipc/semop.c (semop): Likewise.
9901         * sysvipc/shmat.c (shmat): Likewise.
9902         * sysvipc/shmctl.c (shmctl): Likewise.
9903         * sysvipc/shmdt.c (shmdt): Likewise.
9904         * sysvipc/shmget.c (shmget): Likewise.
9905         * termios/cfmakeraw.c (cfmakeraw): Likewise.
9906         * termios/speed.c (cfgetospeed): Likewise.
9907         (cfgetispeed): Likewise.
9908         (cfsetospeed): Likewise.
9909         (cfsetispeed): Likewise.
9910         * termios/tcflow.c (tcflow): Likewise.
9911         * termios/tcflush.c (tcflush): Likewise.
9912         * termios/tcgetattr.c (__tcgetattr): Likewise.
9913         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
9914         * termios/tcgetsid.c (tcgetsid): Likewise.
9915         * termios/tcsendbrk.c (tcsendbreak): Likewise.
9916         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
9917         * time/adjtime.c (__adjtime): Likewise.
9918         * time/dysize.c (dysize): Likewise.
9919         * time/ftime.c (ftime): Likewise.
9920         * time/getitimer.c (__getitimer): Likewise.
9921         * time/gettimeofday.c (__gettimeofday): Likewise.
9922         * time/gmtime.c (__gmtime_r): Likewise.
9923         (gmtime): Likewise.
9924         * time/localtime.c (__localtime_r): Likewise.
9925         (localtime): Likewise.
9926         * time/offtime.c (__offtime): Likewise.
9927         * time/settimeofday.c (__settimeofday): Likewise.
9928         * time/stime.c (stime): Likewise.
9929         * time/strftime_l.c (tm_diff): Likewise.
9930         (iso_week_days): Likewise.
9931         * time/strptime.c (strptime): Likewise.
9932         * time/time.c (time): Likewise.
9933         * time/timespec_get.c (timespec_get): Likewise.
9934         * time/tzset.c (tzset_internal): Likewise.
9935         (compute_change): Likewise.
9936         (__tz_compute): Likewise.
9937         * wcsmbs/btowc.c (__btowc): Likewise.
9938         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
9939         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
9940         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
9941         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
9942         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
9943         * wcsmbs/wcscat.c (__wcscat): Likewise.
9944         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
9945         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
9946         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
9947         * wcsmbs/wcscspn.c (wcscspn): Likewise.
9948         * wcsmbs/wcsdup.c (wcsdup): Likewise.
9949         * wcsmbs/wcslen.c (__wcslen): Likewise.
9950         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
9951         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
9952         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
9953         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
9954         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
9955         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
9956         * wcsmbs/wcsspn.c (wcsspn): Likewise.
9957         * wcsmbs/wcsstr.c (wcsstr): Likewise.
9958         * wcsmbs/wcstok.c (wcstok): Likewise.
9959         * wcsmbs/wctob.c (wctob): Likewise.
9960         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
9961         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9962         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
9963         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
9964         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
9965         * wcsmbs/wmemset.c (__wmemset): Likewise.
9966         * wctype/wcfuncs.c (__towlower): Likewise.
9967         (__towupper): Likewise.
9968
9969         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
9970         (lll_unlock_elision): Add adapt_count parameter.
9971
9972 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9973
9974         * sysdeps/nptl/configure.ac: Do not give errors based on the
9975         results of top-level configure tests.
9976         * sysdeps/nptl/configure: Regenerated.
9977
9978         * configure.ac (libc_cv_Bgroup): Remove configure test.
9979         * configure: Regenerated.
9980         * config.make.in (have-Bgroup): Remove variable.
9981
9982         * configure.ac (sizeof_long_double): Remove configure test.
9983         * configure: Regenerated.
9984         * config.make.in (sizeof-long-double): Remove variable.
9985
9986         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
9987         * configure: Regenerated.
9988         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
9989         variable.
9990         (exceptions): Likewise.
9991         * sysdeps/arm/configure: Regenerated.
9992         * config.make.in (exceptions): Remove variable.
9993         * Makeconfig (uses-callbacks): Use -fexceptions instead of
9994         $(exceptions).
9995         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
9996         (CFLAGS-vdprintf_chk.c): Likewise.
9997         (CFLAGS-printf_chk.c): Likewise.
9998         (CFLAGS-fprintf_chk.c): Likewise.
9999         (CFLAGS-vprintf_chk.c): Likewise.
10000         (CFLAGS-vfprintf_chk.c): Likewise.
10001         (CFLAGS-gets_chk.c): Likewise.
10002         (CFLAGS-fgets_chk.c): Likewise.
10003         (CFLAGS-fgets_u_chk.c): Likewise.
10004         (CFLAGS-fread_chk.c): Likewise.
10005         (CFLAGS-fread_u_chk.c): Likewise.
10006         (CFLAGS-wprintf_chk.c): Likewise.
10007         (CFLAGS-fwprintf_chk.c): Likewise.
10008         (CFLAGS-vwprintf_chk.c): Likewise.
10009         (CFLAGS-vfwprintf_chk.c): Likewise.
10010         (CFLAGS-fgetws_chk.c): Likewise.
10011         (CFLAGS-fgetws_u_chk.c): Likewise.
10012         * libio/Makefile (CFLAGS-fileops.c): Likewise.
10013         (CFLAGS-fputc.c): Likewise.
10014         (CFLAGS-fputwc.c): Likewise.
10015         (CFLAGS-freopen64.c): Likewise.
10016         (CFLAGS-freopen.c): Likewise.
10017         (CFLAGS-fseek.c): Likewise.
10018         (CFLAGS-fseeko64.c): Likewise.
10019         (CFLAGS-fseeko.c): Likewise.
10020         (CFLAGS-ftello64.c): Likewise.
10021         (CFLAGS-ftello.c): Likewise.
10022         (CFLAGS-fwide.c): Likewise.
10023         (CFLAGS-genops.c): Likewise.
10024         (CFLAGS-getc.c): Likewise.
10025         (CFLAGS-getchar.c): Likewise.
10026         (CFLAGS-getwc.c): Likewise.
10027         (CFLAGS-getwchar.c): Likewise.
10028         (CFLAGS-iofclose.c): Likewise.
10029         (CFLAGS-iofflush.c): Likewise.
10030         (CFLAGS-iofgetpos64.c): Likewise.
10031         (CFLAGS-iofgetpos.c): Likewise.
10032         (CFLAGS-iofgets.c): Likewise.
10033         (CFLAGS-iofgetws.c): Likewise.
10034         (CFLAGS-iofputs.c): Likewise.
10035         (CFLAGS-iofputws.c): Likewise.
10036         (CFLAGS-iofread.c): Likewise.
10037         (CFLAGS-iofsetpos64.c): Likewise.
10038         (CFLAGS-iofsetpos.c): Likewise.
10039         (CFLAGS-ioftell.c): Likewise.
10040         (CFLAGS-iofwrite.c): Likewise.
10041         (CFLAGS-iogetdelim.c): Likewise.
10042         (CFLAGS-iogetline.c): Likewise.
10043         (CFLAGS-iogets.c): Likewise.
10044         (CFLAGS-iogetwline.c): Likewise.
10045         (CFLAGS-ioputs.c): Likewise.
10046         (CFLAGS-ioseekoff.c): Likewise.
10047         (CFLAGS-ioseekpos.c): Likewise.
10048         (CFLAGS-iosetbuffer.c): Likewise.
10049         (CFLAGS-iosetvbuf.c): Likewise.
10050         (CFLAGS-ioungetc.c): Likewise.
10051         (CFLAGS-ioungetwc.c): Likewise.
10052         (CFLAGS-oldfileops.c): Likewise.
10053         (CFLAGS-oldiofclose.c): Likewise.
10054         (CFLAGS-oldiofgetpos64.c): Likewise.
10055         (CFLAGS-oldiofgetpos.c): Likewise.
10056         (CFLAGS-oldiofsetpos64.c): Likewise.
10057         (CFLAGS-oldiofsetpos.c): Likewise.
10058         (CFLAGS-peekc.c): Likewise.
10059         (CFLAGS-putc.c): Likewise.
10060         (CFLAGS-putchar.c): Likewise.
10061         (CFLAGS-putwc.c): Likewise.
10062         (CFLAGS-putwchar.c): Likewise.
10063         (CFLAGS-rewind.c): Likewise.
10064         (CFLAGS-wfileops.c): Likewise.
10065         (CFLAGS-wgenops.c): Likewise.
10066         (CFLAGS-oldiofopen.c): Likewise.
10067         (CFLAGS-iofopen.c): Likewise.
10068         (CFLAGS-iofopen64.c): Likewise.
10069         (CFLAGS-oldtmpfile.c): Likewise.
10070         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
10071         (CFLAGS-fprintf.c): Likewise.
10072         (CFLAGS-printf.c): Likewise.
10073         (CFLAGS-vfwprintf.c): Likewise.
10074         (CFLAGS-vfscanf.c): Likewise.
10075         (CFLAGS-vfwscanf.c): Likewise.
10076         (CFLAGS-fscanf.c): Likewise.
10077         (CFLAGS-scanf.c): Likewise.
10078         (CFLAGS-isoc99_vfscanf.c): Likewise.
10079         (CFLAGS-isoc99_vscanf.c): Likewise.
10080         (CFLAGS-isoc99_fscanf.c): Likewise.
10081         (CFLAGS-isoc99_scanf.c): Likewise.
10082         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
10083         (CFLAGS-isoc99_fwscanf.c): Likewise.
10084         (CFLAGS-isoc99_vwscanf.c): Likewise.
10085         (CFLAGS-isoc99_vfwscanf.c): Likewise.
10086
10087         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
10088         after mkstemp64.
10089         * login/tst-utmp.c (do_prepare): Likewise.
10090         * rt/tst-aio.c (do_prepare): Likewise.
10091         * rt/tst-aio64.c (do_prepare): Likewise.
10092
10093 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10094
10095         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
10096         (__lll_lock_elision): Remove adapt_count decrement...
10097         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
10098         (__lll_trylock_elision): Likewise.
10099         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
10100         (__lll_unlock_elision): ... to here. And utilize
10101         new adapt_count parameter.
10102         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
10103         (__lll_unlock_elision): Update to include adapt_count
10104         parameter.
10105         (lll_unlock_elision): Pass pointer to adapt_count
10106         variable.
10107
10108 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10109
10110         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
10111         Add elision adapt_count parameter to list of arguments.
10112         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
10113         (lll_unlock_elision): Update with new parameter list
10114         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
10115         (lll_unlock_elision): Likewise.
10116         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
10117         (lll_unlock_elision): Likewise.
10118
10119 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10120
10121         [BZ #19122]
10122         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
10123         attribute_hidden.
10124
10125         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
10126         attribute_hidden.
10127         [IS_IN (rtld)] (__strdup): Likewise.
10128         [IS_IN (rtld)] (__strerror_r): Likewise.
10129         [IS_IN (rtld)] (__strsep_g): Likewise.
10130         [IS_IN (rtld)] (memchr): Likewise.
10131         [IS_IN (rtld)] (memcmp): Likewise.
10132         [IS_IN (rtld)] (memcpy): Likewise.
10133         [IS_IN (rtld)] (memmove): Likewise.
10134         [IS_IN (rtld)] (memset): Likewise.
10135         [IS_IN (rtld)] (rawmemchr): Likewise.
10136         [IS_IN (rtld)] (stpcpy): Likewise.
10137         [IS_IN (rtld)] (strchr): Likewise.
10138         [IS_IN (rtld)] (strcmp): Likewise.
10139         [IS_IN (rtld)] (strlen): Likewise.
10140         [IS_IN (rtld)] (strnlen): Likewise.
10141         [IS_IN (rtld)] (strsep): Likewise.
10142
10143         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
10144         attribute_hidden.
10145         [IS_IN (rtld)] (__strtoul_internal): Likewise.
10146
10147         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
10148         attribute_hidden.
10149         [IS_IN (rtld)] (__libc_sigaction): Likewise.
10150
10151         * include/setjmp.h (__longjmp): Add attribute_hidden.
10152         [IS_IN (rtld)] (__sigsetjmp): Likewise.
10153
10154         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
10155         Add attribute_hidden.
10156
10157         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
10158         [IS_IN (rtld)] (__open): Likewise.
10159         [IS_IN (rtld)] (__fcntl): Likewise.
10160
10161         * include/dirent.h (__opendirat): Add attribute_hidden.
10162         (__getdents): Likewise.
10163         (__getdents64): Likewise.
10164         (__alloc_dir): Likewise.
10165         [IS_IN (rtld)] (__closedir): Likewise.
10166         [IS_IN (rtld)] (__fdopendir): Likewise.
10167         [IS_IN (rtld)] (__readdir): Likewise.
10168         [IS_IN (rtld)] (__readdir64): Likewise.
10169         [IS_IN (rtld)] (__rewinddir): Likewise.
10170
10171         * include/dlfcn.h (_dl_catch_error): Moved to ...
10172         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
10173         attribute_hidden.
10174
10175         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
10176         (_itoa_word): Likewise.
10177
10178         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
10179         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
10180         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
10181         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
10182         (_dl_higher_prime_number): Likewise.
10183         (_dl_debug_printf_c): Likewise.
10184         (_dl_signal_cerror): Likewise.
10185         (_dl_receive_error): Likewise.
10186         (_dl_reloc_bad_type): Likewise.
10187         (_dl_resolve_conflicts): Likewise.
10188         (_dl_check_all_versions): Likewise.
10189         (_dl_check_map_versions): Likewise.
10190         (_dl_sort_fini): Likewise.
10191         (_dl_debug_initialize): Likewise.
10192         (_dl_init_paths): Likewise.
10193         (_dl_show_auxv): Likewise.
10194         (_dl_next_ld_env_entry): Likewise.
10195         (_dl_important_hwcaps): Likewise.
10196         (_dl_load_cache_lookup): Likewise.
10197         (_dl_update_slotinfo): Likewise.
10198         (_dl_show_scope): Likewise.
10199
10200         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
10201         attribute_hidden.
10202         (_wordcopy_fwd_dest_aligned): Likewise.
10203         (_wordcopy_bwd_aligned): Likewise.
10204         (_wordcopy_bwd_dest_aligned): Likewise.
10205
10206         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
10207         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
10208         Likewise.
10209         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
10210         Likewise.
10211         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
10212
10213 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10214
10215         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
10216         GCC 5 requirement.
10217
10218 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
10219
10220         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
10221         test.
10222         * sysdeps/i386/configure: Regenerated.
10223         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
10224         code unconditional.
10225
10226         * configure.ac (libc_cv_asm_previous_directive): Remove configure
10227         test.
10228         (libc_cv_asm_popsection_directive): Likewise.
10229         * configure: Regenerated.
10230         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
10231         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
10232         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
10233         (__make_section_unallocated): Make definition unconditional.
10234         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
10235         Remove conditional definition.
10236         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
10237         (__make_section_unallocated): Likewise.
10238
10239         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
10240         * configure: Regenerated.
10241         * config.make.in (static-libgcc): Remove variable.
10242         * Makerules (build-shlib-helper): Use -static-libgcc instead of
10243         $(static-libgcc).
10244         (build-module-helper): Likewise.
10245
10246         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
10247         * configure: Regenerated.
10248
10249 2015-10-15  Florian Weimer  <fweimer@redhat.com>
10250
10251         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
10252         (struct char_buffer): New type.
10253         (char_buffer_start, char_buffer_size, char_buffer_error)
10254         (char_buffer_rewind, char_buffer_add): New functions.
10255         (ADDW): Remove macro, replaced by the char_buffer_add function.
10256         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
10257         of extend_alloca.  Make control flow more explicit.
10258
10259 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10260
10261         [BZ #19137]
10262         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
10263         Add -fomit-frame-pointer.
10264         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
10265
10266 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10267
10268         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
10269         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
10270         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
10271         only if !__GNUC_PREREQ (5,0).
10272         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
10273         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
10274         (INTERNAL_SYSCALL_NCS): Likewise.
10275         (LOADREGS_0): New macro for GCC 5.
10276         (ASMARGS_0): Likewise.
10277         (LOADREGS_1): Likewise.
10278         (ASMARGS_1): Likewise.
10279         (LOADREGS_2): Likewise.
10280         (ASMARGS_2): Likewise.
10281         (LOADREGS_3): Likewise.
10282         (ASMARGS_3): Likewise.
10283         (LOADREGS_4): Likewise.
10284         (ASMARGS_4): Likewise.
10285         (LOADREGS_5): Likewise.
10286         (ASMARGS_5): Likewise.
10287         (LOADREGS_6): Likewise.
10288         (ASMARGS_6): Likewise.
10289
10290 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10291
10292         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
10293         -fomit-frame-pointer.
10294         (CFLAGS-mmap64.c): Likewise.
10295         (CFLAGS-semtimedop.c): Likewise.
10296         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
10297         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
10298         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
10299         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
10300
10301 2015-10-15  Florian Weimer  <fweimer@redhat.com>
10302
10303         [BZ #18928]
10304         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
10305         _dl_pointer_guard member.
10306         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
10307         initializer.
10308         (security_init): Always set up pointer guard.
10309         (process_envvars): Do not process LD_POINTER_GUARD.
10310
10311 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
10312
10313         [BZ #19134]
10314         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
10315         (.LC2): Likewise.
10316         (.LC3): Likewise.
10317         (__lround): Do not add 0.5 to integer or out-of-range arguments.
10318
10319 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10320
10321         [BZ #19129]
10322         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
10323         r0 and r1.
10324
10325 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
10326
10327         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
10328
10329 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
10330
10331         * include/stap-probe.h: Fix macro definition formatting.
10332
10333 2015-10-14  Florian Weimer  <fweimer@redhat.com>
10334
10335         [BZ #19074]
10336         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
10337         load and store num_ifs.
10338
10339 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10340
10341         [BZ #18822]
10342         * sysdeps/unix/sysv/linux/sched_getaffinity.c
10343         (__sched_getaffinity_new): Add libc_hidden_proto and
10344         libc_hidden_def.
10345
10346 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10347
10348         [BZ #19007]
10349         * scripts/localplt.awk: Also allow GOT references.
10350         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
10351         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
10352         with "+ REL R_386_GLOB_DAT".
10353         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
10354         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
10355
10356 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10357
10358         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
10359         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10360         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
10361         Likewise.
10362         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
10363         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
10364         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
10365         INTERNAL_SYSCALLINTERNAL_SYSCALL and
10366         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10367         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
10368         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
10369         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
10370         Likewise.
10371         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
10372
10373 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10374
10375         [BZ #19125]
10376         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
10377         <math_private.h> and <stdint.h>.
10378         (__llround): Avoid conversions to and from long long int, and
10379         subtractions, where those might raise spurious exceptions.
10380         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
10381         <math_private.h> and <stdint.h>.
10382         (__llroundf): Avoid conversions to and from long long int, and
10383         subtractions, where those might raise spurious exceptions.
10384
10385 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10386
10387         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
10388         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10389         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
10390         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
10391         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
10392         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
10393         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
10394         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
10395         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
10396         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
10397         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
10398         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
10399         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
10400         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
10401         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
10402         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
10403         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
10404         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
10405         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
10406         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
10407         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
10408         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
10409         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
10410         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
10411         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
10412         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
10413         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
10414         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
10415         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
10416         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
10417         (__xstat64_conv): Likewise.
10418         (__xstat32_conv): Likewise.
10419
10420 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10421
10422         * sysdeps/unix/sysv/linux/sysdep.h: New file.
10423         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
10424         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
10425         <sysdeps/unix/sysv/linux/sysdep.h>.
10426         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
10427         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
10428         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
10429         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
10430         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
10431         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
10432         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
10433         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
10434         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
10435         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10437         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10438         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10439         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10440         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10441         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10442         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
10443         (sysdep-dl-routines): Add sysdep.
10444         [$(subdir) == nptl] (libpthread-routines): Likewise.
10445         [$(subdir) == rt] (librt-routines): Likewise.
10446         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
10447         PIC when branching to SYSCALL_ERROR_LABEL.
10448         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
10449         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
10450         <sysdeps/unix/sysv/linux/sysdep.h>.
10451         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
10452         (SYSCALL_ERROR_ERRNO): Removed.
10453         (SYSCALL_ERROR_HANDLER): Changed to empty.
10454         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
10455         (__syscall_error): New prototype.
10456         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
10457         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
10458
10459 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10460
10461         [BZ #19124]
10462         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
10463         (_dl_runtime_resolve_avx512): Make it a hidden alias of
10464         _dl_runtime_resolve_avx.
10465         (_dl_runtime_profile_avx512): Make it a hidden alias of
10466         _dl_runtime_profile_avx.
10467
10468 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10469
10470         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
10471         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
10472         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
10473         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
10474
10475         [BZ #16422]
10476         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
10477         New configure test.
10478         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
10479         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
10480         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
10481         <math_private.h> and <stdint.h>.
10482         (__llrint): Avoid conversions to long long int where those might
10483         raise spurious exceptions.
10484         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
10485         <math_private.h> and <stdint.h>.
10486         (__llrintf): Avoid conversions to long long int where those might
10487         raise spurious exceptions.
10488
10489 2015-10-12  Andreas Schwab  <schwab@suse.de>
10490
10491         [BZ #18969]
10492         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
10493         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
10494         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
10495         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
10496         $(gen-locales).
10497         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
10498         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
10499         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
10500         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
10501         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
10502         $(gen-locales).
10503         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
10504         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
10505         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
10506         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
10507         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
10508         ($(objpfx)tst-ftell-active-handler.out)
10509         ($(objpfx)tst-ftell-append.out)
10510         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
10511         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
10512         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
10513         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
10514         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
10515         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
10516         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
10517         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
10518         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
10519         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
10520         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
10521         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
10522         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
10523         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
10524         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
10525         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
10526         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
10527         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
10528         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
10529         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
10530         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
10531         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
10532         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
10533         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
10534         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
10535         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
10536         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
10537         $(gen-locales).
10538         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
10539         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
10540         $(gen-locales).
10541         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
10542         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
10543         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
10544         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
10545         $(gen-locales).
10546         * libio/tst_wprintf2.c (main): Use explicit locale.
10547         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
10548
10549 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10550
10551         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
10552         __msg_sig_post.
10553         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
10554
10555 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10556
10557         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
10558         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10559
10560         * sysdeps/arm/libm-test-ulps: Regenerated.
10561
10562         [BZ #15470]
10563         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
10564
10565         [BZ #16399]
10566         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
10567         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
10568         and <fix-fp-int-convert-overflow.h>.
10569         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10570         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10571         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
10572         and <fix-fp-int-convert-overflow.h>.
10573         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
10574         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10575         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
10576         <fix-fp-int-convert-overflow.h>.
10577         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10578         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10579         * sysdeps/ieee754/dbl-64/s_lround.c: Include
10580         <fix-fp-int-convert-overflow.h>.
10581         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
10582         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10583         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
10584         and <fix-fp-int-convert-overflow.h>.
10585         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10586         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10587         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
10588         <limits.h> and <fix-fp-int-convert-overflow.h>.
10589         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10590         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10591         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
10592         and <fix-fp-int-convert-overflow.h>.
10593         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10594         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10595         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
10596         and <fix-fp-int-convert-overflow.h>.
10597         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10598         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10599         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
10600
10601 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
10602
10603         [BZ #18589]
10604         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
10605         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
10606         $(gen-locales).
10607
10608 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10609             Phil Blundell <pb@pbcl.net>
10610
10611         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
10612         * nptl/tst-cancel26.c: New file.
10613         * nptl/tst-cancel27.c: Likewise.
10614
10615 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
10616
10617         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
10618         __ILP32__ isn't defined.
10619         (lrint): Likewise.
10620         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
10621         (lrintf): Likewise.
10622         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
10623         (lrintl): Likewise.
10624         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
10625         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
10626         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
10627
10628 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10629
10630         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10631         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10632
10633         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
10634         file.
10635         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
10636         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10637
10638 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10639
10640         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
10641         configure test.
10642         * sysdeps/i386/configure: Regenerated.
10643         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
10644         configure test.
10645         * sysdeps/x86_64/configure: Regenerated.
10646         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
10647         Make code unconditional.
10648
10649         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
10650         test.
10651         * sysdeps/i386/configure: Regenerated.
10652         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
10653         test.
10654         * sysdeps/x86_64/configure: Regenerated.
10655         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
10656         Make code unconditional.
10657         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
10658         Likewise.
10659         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
10660         Likewise.
10661         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10662         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
10663         code unconditional.
10664         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10665         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
10666         code unconditional.
10667         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10668         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
10669         code unconditional.
10670         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
10671         code unconditional.
10672         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10673         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
10674         code unconditional.
10675         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10676         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
10677         code unconditional.
10678         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10679         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
10680         code unconditional.
10681         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10682         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
10683         code unconditional.
10684         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10685         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
10686
10687         [BZ #19095]
10688         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
10689         mantissa to long int before shifting left.
10690
10691 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10692
10693         [BZ #19094]
10694         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
10695         <limits.h>.
10696         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10697         when result overflows but exception would not result from cast.
10698         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
10699         <limits.h>.
10700         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10701         when result overflows but exception would not result from cast.
10702         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
10703         <limits.h>.
10704         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10705         when result overflows but exception would not result from cast.
10706         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
10707         <limits.h>.
10708         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10709         when result overflows but exception would not result from cast.
10710         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
10711         <limits.h>.
10712         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10713         when result overflows but exception would not result from cast.
10714         * math/libm-test.inc (lrint_test_data): Add more tests.
10715         (llrint_test_data): Likewise.
10716
10717 2015-10-08  Roland McGrath  <roland@hack.frob.com>
10718
10719         [BZ #18872]
10720         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
10721         Move out from under [$(run-built-tests) = yes] conditional.
10722         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
10723         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
10724
10725 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
10726
10727         [BZ #18589]
10728         * string/Makefile (tests): Add bug-strcoll2.
10729         (LOCALES): Add cs_CZ.UTF-8.
10730         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
10731
10732         [BZ #18589]
10733         * string/bug-strcoll2.c: New file.
10734         * locale/categories.def: Revert commit
10735         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
10736         * locale/langinfo.h: Likewise.
10737         * locale/localeinfo.h: Likewise.
10738         * locale/C-collate.c: Likewise.
10739         * locale/programs/ld-collate.c (collate_output): Likewise.
10740         * string/strcoll_l.c (STRDIFF): Likewise.
10741         (STRCOLL): Likewise.
10742         * wcsmbs/wcscoll_l.c: Likewise.
10743
10744 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10745
10746         * math/libm-test.inc (lround_test_data): Do not expect the absence
10747         of "inexact" for some tests with non-integer arguments.
10748         (llround_test_data): Likewise.
10749
10750         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
10751         test.
10752         (libc_cv_cc_sse2avx): Likewise.
10753         * sysdeps/i386/configure: Regenerated.
10754         * sysdeps/i386/i686/multiarch/Makefile
10755         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
10756         [$(subdir) = math].
10757         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
10758         code unconditional.
10759         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10760         Likewise.
10761         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
10762         Likewise.
10763         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10764         Likewise.
10765         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
10766         test.
10767         (libc_cv_cc_sse2avx): Likewise.
10768         * sysdeps/x86_64/configure: Regenerated.
10769         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
10770         unconditional.
10771         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
10772         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
10773         unconditional.
10774         (_dl_runtime_profile)
10775         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
10776         conditional code.
10777         * sysdeps/x86_64/fpu/multiarch/Makefile
10778         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
10779         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
10780         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10781         * sysdeps/x86_64/fpu/multiarch/e_exp.c
10782         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10783         * sysdeps/x86_64/fpu/multiarch/e_log.c
10784         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10785         * sysdeps/x86_64/fpu/multiarch/s_atan.c
10786         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10787         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10788         Likewise.
10789         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10790         Likewise.
10791         * sysdeps/x86_64/fpu/multiarch/s_sin.c
10792         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10793         * sysdeps/x86_64/fpu/multiarch/s_tan.c
10794         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10795         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
10796         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
10797         (HAVE_SSE2AVX_SUPPORT): Likewise.
10798
10799 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
10800
10801         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
10802         instead of #pragma optimize.
10803
10804 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10805
10806         [BZ #17195]
10807         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
10808         as is similarly done in systrim and _int_free already.
10809
10810 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10811
10812         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
10813
10814 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10815
10816         [BZ #19088]
10817         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
10818         <limits.h>.
10819         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10820         overflows but exception would not result from cast.
10821         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
10822         and <limits.h>.
10823         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10824         overflows but exception would not result from cast.
10825         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
10826         <limits.h>.
10827         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10828         overflows but exception would not result from cast.
10829         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
10830         <limits.h>.
10831         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10832         overflows but exception would not result from cast.
10833         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
10834         <limits.h>.
10835         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10836         overflows but exception would not result from cast.
10837         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
10838         <limits.h>.
10839         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10840         overflows but exception would not result from cast.
10841         * math/libm-test.inc (lround_test_data): Add more tests.
10842         (llround_test_data): Likewise.
10843
10844 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
10845
10846         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
10847         (CFLAGS-ialloc.c): Ditto.
10848         (CFLAGS-scheck.c): Ditto.
10849
10850 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10851
10852         [BZ #19086]
10853         * manual/filesys.texi (Storage Allocation): Fix argument order for
10854         posix_fallocate64.
10855
10856 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10857
10858         [BZ #19085]
10859         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
10860         exponent below 48 inside case for non-overflowing exponent.
10861         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10862
10863 2015-10-07  Florian Weimer  <fweimer@redhat.com>
10864
10865         * iconvdata/cp737.h (from_idx): Add const.
10866         * iconvdata/cp775.h (from_idx): Likewise.
10867
10868 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10869
10870         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
10871         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10872         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
10873
10874         [BZ #19079]
10875         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
10876         file, conditioned on [!_LP64].
10877         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
10878         [!_LP64] (__lround): Do not define as function or alias.
10879         [!_LP64] (lround): Likewise.
10880         [!_LP64] (__lroundl): Likewise.
10881         [!_LP64] (lroundl): Likewise.
10882         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
10883         macro.
10884         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
10885         Likewise.
10886
10887 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10888
10889         * math/libm-test.inc (lrint_test_data): Add more tests.
10890         (llrint_test_data): Likewise.
10891         (lround_test_data): Likewise.
10892         (llround_test_data): Likewise.
10893
10894         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
10895         (llrint_test_data): Add tests used for lrint.
10896
10897         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
10898         test.
10899         * sysdeps/i386/configure: Regenerated.
10900         * sysdeps/i386/i686/multiarch/Makefile
10901         [$(config-cflags-sse4) = yes]: Make code unconditional.
10902         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10903         Likewise.
10904         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
10905         Likewise.
10906         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
10907         test.
10908         * sysdeps/x86_64/configure: Regenerated.
10909         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
10910         Make code unconditional.
10911         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10912         Likewise.
10913         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
10914         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
10915
10916         * scripts/rpm2dynsym.sh: Remove file.
10917
10918 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10919
10920         * configure.ac (libc_cv_cxx_thread_local): Define.
10921         * configure: Regenerate.
10922         * config.make.in (have-cxx-thread_local): Define.
10923         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
10924         (LDLIBS-tst-thread_local1): Define.
10925         (tests): Add tst-thread_local1.
10926         [have-cxx-thread_local != yes] (tests-unsupported): Add
10927         tst-thread_local1.
10928         * nptl/tst-thread_local1.cc: New file.
10929
10930 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10931
10932         [BZ #19078]
10933         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
10934         (u_thres): Likewise.
10935         (__expl): Determine whether to call __kernel_standard_l based on
10936         value of result, not argument.
10937
10938         * math/libm-test.inc (scalb_test_data): Add more expectations for
10939         the "inexact" exception.
10940
10941         [BZ #19077]
10942         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
10943         0.0L for argument 1.0L.
10944
10945         [BZ #19076]
10946         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
10947         constant 0.0L when computing infinite result.
10948
10949 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10950
10951         [BZ #10432]
10952         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
10953         malloc_usable_size.
10954
10955 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10956
10957         [BZ #19018]
10958         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
10959         Mangle function pointer before storing it.
10960         (__call_tls_dtors): Demangle function pointer before calling it.
10961
10962 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10963
10964         [BZ #19012]
10965         * iconv/gconv_db.c (gen_steps): Check for additional errors.
10966         Clean up on failure.
10967
10968 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
10969
10970         [BZ #19071]
10971         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
10972         long int variable to store possibly incremented high part of
10973         mantissa.
10974         * math/libm-test.inc (lround_test_data): Add tests used for
10975         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
10976         for tests requiring 64-bit long.  Do not condition tests on
10977         [TEST_FLOAT] unnecessarily.
10978         (llround_test_data): Add tests used for lround.  Add another
10979         expectation for the "inexact" exception.  Do not condition tests
10980         on [TEST_FLOAT] unnecessarily.
10981
10982         [BZ #887]
10983         [BZ #19049]
10984         [BZ #19050]
10985         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
10986         * sysdeps/ieee754/dbl-64/e_log10.c: Include
10987         <fix-int-fp-convert-zero.h>.
10988         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10989         * sysdeps/ieee754/dbl-64/e_log2.c: Include
10990         <fix-int-fp-convert-zero.h>.
10991         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10992         * sysdeps/ieee754/dbl-64/s_erf.c: Include
10993         <fix-int-fp-convert-zero.h>.
10994         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10995         * sysdeps/ieee754/dbl-64/s_logb.c: Include
10996         <fix-int-fp-convert-zero.h>.
10997         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10998         * sysdeps/ieee754/flt-32/e_log10f.c: Include
10999         <fix-int-fp-convert-zero.h>.
11000         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11001         * sysdeps/ieee754/flt-32/e_log2f.c: Include
11002         <fix-int-fp-convert-zero.h>.
11003         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11004         * sysdeps/ieee754/flt-32/s_erff.c: Include
11005         <fix-int-fp-convert-zero.h>.
11006         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11007         * sysdeps/ieee754/flt-32/s_logbf.c: Include
11008         <fix-int-fp-convert-zero.h>.
11009         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11010         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
11011         <fix-int-fp-convert-zero.h>.
11012         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11013         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
11014         <fix-int-fp-convert-zero.h>.
11015         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11016         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
11017         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
11018         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
11019         file.
11020         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
11021
11022 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
11023
11024         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
11025
11026 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
11027
11028         [BZ #19059]
11029         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
11030         overflowing computation.
11031         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11032         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11033         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
11034         Likewise.
11035         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
11036         Likewise.
11037         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11038         Likewise.
11039         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11040         Likewise.
11041         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11042         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11043         Likewise.
11044         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11045         Likewise.
11046         * math/libm-test.inc (nexttoward_test_data): Add more tests.
11047
11048         * nss/rewrite_field.c (__nss_rewrite_field): Use
11049         internal_function.
11050         * nss/valid_field.c (__nss_valid_field): Likewise.
11051         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
11052
11053 2015-10-02  Florian Weimer  <fweimer@redhat.com>
11054
11055         [BZ #18724]
11056         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
11057         (__nss_invalid_field_characters, __nss_valid_field)
11058         (__nss_valid_list_field, __nss_rewrite_field): Declare.
11059         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
11060         tst-field.c: New file.
11061         * nss/Makefile (routines): Add valid_field, rewrite_field.
11062         (tests-static): Define unconditionally.
11063         (tests): Include tests-static.
11064         [build-static-nss] (tests-static): Use append.
11065         [build-static-nss] (tests): Remove modification.
11066         * nss/getent.c (print_group): Call putgrent.  Report error.
11067         (print_gshadow): Call putsgent.  Report error.
11068         (print_passwd): Call putpwent.  Report error.
11069         (print_shadow): Call putspent.  Report error.
11070         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
11071         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
11072         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
11073         name, password, directory, shell fields for valid syntax.  Rewrite
11074         GECOS field to match syntax.
11075         * pwd/Makefile (tests): Add tst-putpwent.
11076         * pwd/tst-putpwent.c: New file.
11077         * grp/putgrent.c (putgrent): Convert to ISO function definition.
11078         Check grName, grpasswd, gr_mem fields for valid syntax.
11079         Change loop variable i to size_t.
11080         * grp/Makefile (tests): Add tst-putgrent.
11081         * grp/tst-putgrent.c: New file.
11082         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
11083         valid syntax.
11084         * shadow/Makefile (tests): Add tst-putspent.
11085         * shadow/tst-putspent.c: New file.
11086         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
11087         sg_mem fields for valid syntax.
11088         * gshadow/Makefile (tests): Add tst-putsgent.
11089         * gshadow/tst-putsgent.c: New file.
11090
11091 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11092
11093         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
11094         assembly instructions.
11095
11096 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11097
11098         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
11099         prefix from operands.
11100
11101 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
11102
11103         [BZ #16347]
11104         [BZ #19046]
11105         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
11106         <libc-internal.h>.
11107         (MAXLGM): Do not use diagnostic control macros.
11108         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
11109         threshold for ldbl-128ibm.
11110         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
11111         instead of multiplying by log then subtracting.
11112         * math/auto-libm-test-in: Add more tests of lgamma.
11113         * math/auto-libm-test-out: Regenerated.
11114
11115         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
11116         (TYPE_HEX_DIG): Likewise.
11117         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
11118         precisions when printing floating-point numbers.
11119         (check_float_internal): Likewise.
11120
11121 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
11122
11123         [BZ #16620]
11124         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
11125         of log (10) rounded downward to 48 bits.
11126         (log10_low): Use corresponding low part of log (10).
11127
11128         [BZ #19032]
11129         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
11130         compute result as (x - x) / (x - x) not as 0 / 0.
11131         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
11132         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
11133
11134         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
11135         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
11136         and expm1.
11137         * math/auto-libm-test-out: Regenerated.
11138         * math/libm-test.inc (acos_test_data): Add more tests.
11139         (asin_test_data): Likewise.
11140         (asinh_test_data): Likewise.
11141         (atan_test_data): Likewise.
11142         (atanh_test_data): Likewise.
11143         (atan2_test_data): Likewise.
11144         (cbrt_test_data): Likewise.
11145         (ceil_test_data): Likewise.
11146         (copysign_test_data): Likewise.
11147         (cos_test_data): Likewise.
11148         (cosh_test_data): Likewise.
11149         (erf_test_data): Likewise.
11150         (erfc_test_data): Likewise.
11151         (exp_test_data): Likewise.
11152         (exp10_test_data): Likewise.
11153         (exp2_test_data): Likewise.
11154         (expm1_test_data): Likewise.
11155         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11156
11157 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
11158
11159         [BZ #19006]
11160         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
11161         to ...
11162         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
11163         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
11164         to ...
11165         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
11166         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
11167         to ...
11168         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
11169         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
11170         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
11171         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
11172         to ...
11173         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
11174         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
11175         Moved to ...
11176         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
11177         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
11178         Moved to ...
11179         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
11180         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
11181         to ...
11182         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
11183         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
11184         Moved to ...
11185         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
11186         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
11187         to ...
11188         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
11189         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
11190         Removed.
11191         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
11192         Likewise.
11193         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
11194         Likewise.
11195         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
11196         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
11197         Likewise.
11198         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
11199         Likewise.
11200         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
11201         Likewise.
11202         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
11203         Likewise.
11204         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
11205         Likewise.
11206         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
11207         Likewise.
11208         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
11209         Likewise.
11210         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
11211         Likewise.
11212         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
11213         Likewise.
11214         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
11215         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
11216         Likewise.
11217         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
11218         Likewise.
11219         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
11220         Likewise.
11221         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
11222         Likewise.
11223         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
11224         Likewise.
11225         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
11226         Replace ../i486/pthread_cond_timedwait.S with
11227         ../pthread_cond_timedwait.S.
11228
11229 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
11230
11231         * math/libm-test.inc (acos_test_data): Refine expectations for
11232         errno and "inexact" exceptions.
11233         (acosh_test_data): Likewise.
11234         (asin_test_data): Likewise.
11235         (asinh_test_data): Likewise.
11236         (atan_test_data): Likewise.
11237         (atanh_test_data): Likewise.
11238         (atan2_test_data): Likewise.
11239         (cbrt_test_data): Likewise.
11240         (ceil_test_data): Likewise.
11241         (copysign_test_data): Likewise.
11242         (cosh_test_data): Likewise.
11243         (erf_test_data): Likewise.
11244         (erfc_test_data): Likewise.
11245         (exp_test_data): Likewise.
11246         (exp10_test_data): Likewise.
11247         (exp2_test_data): Likewise.
11248         (expm1_test_data): Likewise.
11249         (fabs_test_data): Likewise.
11250         (floor_test_data): Likewise.
11251         (fma_test_data): Likewise.
11252         (fmax_test_data): Likewise.
11253         (fmin_test_data): Likewise.
11254         (fmod_test_data): Likewise.
11255         (fpclassify_test_data): Likewise.
11256         (frexp_test_data): Likewise.
11257         (hypot_test_data): Likewise.
11258         (ilogb_test_data): Likewise.
11259         (isgreater_test_data): Likewise.
11260         (isgreaterequal_test_data): Likewise.
11261         (isinf_test_data): Likewise.
11262         (isless_test_data): Likewise.
11263         (islessequal_test_data): Likewise.
11264         (islessgreater_test_data): Likewise.
11265         (isnan_test_data): Likewise.
11266         (isnormal_test_data): Likewise.
11267         (issignaling_test_data): Likewise.
11268         (isunordered_test_data): Likewise.
11269         (j0_test_data): Likewise.
11270         (j1_test_data): Likewise.
11271         (jn_test_data): Likewise.
11272         (lgamma_test_data): Likewise.
11273         (lrint_test_data): Likewise.
11274         (llrint_test_data): Likewise.
11275         (log_test_data): Likewise.
11276         (log10_test_data): Likewise.
11277         (log1p_test_data): Likewise.
11278         (log2_test_data): Likewise.
11279         (logb_test_data): Likewise.
11280         (lround_test_data): Likewise.
11281         (llround_test_data): Likewise.
11282         (modf_test_data): Likewise.
11283         (nearbyint_test_data): Likewise.
11284         (nextafter_test_data): Likewise.
11285         (nexttoward_test_data): Likewise.
11286         (pow_test_data): Likewise.
11287         (remainder_test_data): Likewise.
11288         (remquo_test_data): Likewise.
11289         (rint_test_data): Likewise.
11290         (round_test_data): Likewise.
11291         (signbit_test_data): Likewise.
11292         (sinh_test_data): Likewise.
11293         (sqrt_test_data): Likewise.
11294         (tanh_test_data): Likewise.
11295         (tgamma_test_data): Likewise.
11296         (trunc_test_data): Likewise.
11297         (y0_test_data): Likewise.
11298         (y1_test_data): Likewise.
11299         (yn_test_data): Likewise.
11300         (significand_test_data): Likewise.
11301
11302 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
11303
11304         * manual/filesys.texi (Storage Allocation): Document that
11305         posix_fallocate emulation fails when fd is open with O_WRONLY.
11306
11307 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
11308
11309         [BZ #19016]
11310         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
11311         allow more cases with X^2 + Y^2 >= 0.5.
11312         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
11313         normal element in sum instead of special-casing based on values of
11314         arguments.
11315         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
11316         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
11317         -1 as normal element in sum instead of special-casing based on
11318         values of arguments.
11319         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
11320         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
11321         (__x2y2m1): Update comment.
11322         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
11323         as normal element in sum instead of special-casing based on values
11324         of arguments.
11325         * math/s_clog.c (__clog): Handle more cases using log1p without
11326         hypot.
11327         * math/s_clog10.c (__clog10): Likewise.
11328         * math/s_clog10f.c (__clog10f): Likewise.
11329         * math/s_clog10l.c (__clog10l): Likewise.
11330         * math/s_clogf.c (__clogf): Likewise.
11331         * math/s_clogl.c (__clogl): Likewise.
11332         * math/auto-libm-test-in: Add more tests of clog and clog10.
11333         * math/auto-libm-test-out: Regenerated.
11334         * sysdeps/i386/fpu/libm-test-ulps: Update.
11335         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11336
11337 2015-09-28  Martin Sebor  <msebor@redhat.com>
11338
11339         [BZ #18969]
11340         * string/Makefile (LOCALES): Define.
11341         (gen-locales.mk): Include.
11342         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
11343         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
11344         * string/tst-strxfrm2.c (do_test): Print the name of the locale
11345         on setlocale failure.
11346
11347 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
11348
11349         [BZ #18985]
11350         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
11351         (__strftime_internal): Likewise.
11352         * time/tst-strftime.c (do_bz18985): New test.
11353         (do_test): Call it.
11354
11355 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
11356
11357         [BZ #18956]
11358         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
11359         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
11360         extracting high part.
11361         * math/auto-libm-test-in: Add another test of pow.
11362         * math/auto-libm-test-out: Regenerated.
11363         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11364
11365 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11366
11367         [BZ #18825]
11368         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
11369         New macro.
11370         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
11371         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11372         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
11373         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
11374         DBL_NARROW_EVAL, reloading the PIC register as needed.
11375         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
11376         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
11377         FLT_NARROW_EVAL.  Use separate return path for case when first
11378         argument is NaN.
11379         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
11380         DEFINE_LDBL_MIN.
11381         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
11382         PIC register.
11383         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
11384         math_check_force_underflow_nonneg.
11385         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
11386         underflow for subnormal result.
11387         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
11388         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
11389         math_check_force_underflow_nonneg.
11390         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
11391         math_check_force_underflow.
11392         * sysdeps/x86_64/fpu/x86_64-math-asm.h
11393         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
11394         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
11395         DEFINE_LDBL_MIN.
11396         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
11397         * math/auto-libm-test-in: Add more tests of pow.
11398         * math/auto-libm-test-out: Regenerated.
11399
11400 2015-09-25  Florian Weimer  <fweimer@redhat.com>
11401
11402         * nss/bug17079.c (init_test_items): Add diagnostic for
11403         inconsistent entries.
11404         (test_buffer_size): Skip inconsistent entries.
11405
11406 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11407
11408         [BZ #13304]
11409         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
11410         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
11411         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
11412
11413         [BZ #13304]
11414         * sysdeps/microblaze/s_fma.c: New file.
11415         * sysdeps/microblaze/s_fmaf.c: Likewise.
11416         * sysdeps/microblaze/sfp-machine.h: Likewise.
11417
11418 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
11419
11420         [BZ #17250]
11421         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
11422         member.
11423
11424 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11425
11426         [BZ #18803]
11427         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
11428         (MO): New macro.
11429         (__ieee754_hypot) [PIC]: Load PIC register.
11430         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
11431         DBL_NARROW_EVAL.
11432         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
11433         math_check_force_underflow_nonneg in case where result might be
11434         tiny.
11435         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
11436         Likewise.
11437         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11438         Likewise.
11439         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
11440         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
11441         * math/auto-libm-test-in: Add more tests of hypot.
11442         * math/auto-libm-test-out: Regenerated.
11443
11444 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
11445
11446         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
11447
11448 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11449
11450         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
11451         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
11452         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11453         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11454         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
11455         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11456         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11457
11458         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
11459         LOAD_PIC_REG.
11460
11461         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
11462         (FLT_CHECK_FORCE_UFLOW): Likewise.
11463         (DBL_CHECK_FORCE_UFLOW): Likewise.
11464         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
11465         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
11466         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
11467         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11468         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11469         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11470         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11471         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11472         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
11473         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11474         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
11475         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
11476         (flt_min): Replace with use of DEFINE_FLT_MIN.
11477         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
11478         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
11479         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11480         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
11481         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
11482         (flt_min): Replace with use of DEFINE_FLT_MIN.
11483         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
11484         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
11485         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11486         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
11487         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
11488         (flt_min): Replace with use of DEFINE_FLT_MIN.
11489         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
11490         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
11491         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11492         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11493         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
11494         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11495         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11496         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
11497         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11498         (__atan): Use DBL_CHECK_FORCE_UFLOW.
11499         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
11500         (flt_min): Replace with use of DEFINE_FLT_MIN.
11501         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
11502         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
11503         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11504         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
11505         main computation.
11506         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
11507         (flt_min): Replace with use of DEFINE_FLT_MIN.
11508         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
11509         main computation.
11510         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
11511         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11512         (MO): New macro.
11513         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
11514         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
11515         (flt_min): Replace with use of DEFINE_FLT_MIN.
11516         (MO): New macro.
11517         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
11518         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
11519         (__log1pl): Use MO.
11520
11521         [BZ #19003]
11522         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
11523         $(config-cflags-nofma).
11524
11525 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11526
11527         * sysdeps/aarch64/libm-test-ulps: Regenerated.
11528
11529 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
11530
11531         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
11532         (TWO127): Likewise.
11533
11534         * sysdeps/generic/math_private.h (fabs_tg): New macro.
11535         (min_of_type): Likewise.
11536         (math_check_force_underflow): Likewise.
11537         (math_check_force_underflow_nonneg): Likewise.
11538         (math_check_force_underflow_complex): Likewise.
11539         * math/e_exp2l.c (__ieee754_exp2l): Use
11540         math_check_force_underflow_nonneg.
11541         * math/k_casinh.c (__kernel_casinh): Likewise.
11542         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11543         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11544         * math/s_catan.c (__catan): Use
11545         math_check_force_underflow_complex.
11546         * math/s_catanf.c (__catanf): Likewise.
11547         * math/s_catanh.c (__catanh): Likewise.
11548         * math/s_catanhf.c (__catanhf): Likewise.
11549         * math/s_catanhl.c (__catanhl): Likewise.
11550         * math/s_catanl.c (__catanl): Likewise.
11551         * math/s_ccosh.c (__ccosh): Likewise.
11552         * math/s_ccoshf.c (__ccoshf): Likewise.
11553         * math/s_ccoshl.c (__ccoshl): Likewise.
11554         * math/s_cexp.c (__cexp): Likewise.
11555         * math/s_cexpf.c (__cexpf): Likewise.
11556         * math/s_cexpl.c (__cexpl): Likewise.
11557         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
11558         * math/s_clog10.c (__clog10): Likewise.
11559         * math/s_clog10f.c (__clog10f): Likewise.
11560         * math/s_clog10l.c (__clog10l): Likewise.
11561         * math/s_clogf.c (__clogf): Likewise.
11562         * math/s_clogl.c (__clogl): Likewise.
11563         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
11564         * math/s_csinf.c (__csinf): Likewise.
11565         * math/s_csinh.c (__csinh): Likewise.
11566         * math/s_csinhf.c (__csinhf): Likewise.
11567         * math/s_csinhl.c (__csinhl): Likewise.
11568         * math/s_csinl.c (__csinl): Likewise.
11569         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
11570         * math/s_csqrtf.c (__csqrtf): Likewise.
11571         * math/s_csqrtl.c (__csqrtl): Likewise.
11572         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
11573         * math/s_ctanf.c (__ctanf): Likewise.
11574         * math/s_ctanh.c (__ctanh): Likewise.
11575         * math/s_ctanhf.c (__ctanhf): Likewise.
11576         * math/s_ctanhl.c (__ctanhl): Likewise.
11577         * math/s_ctanl.c (__ctanl): Likewise.
11578         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
11579         instead of volatile.
11580         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
11581         math_check_force_underflow.
11582         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11583         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
11584         volatile when forcing underflow.
11585         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11586         math_check_force_underflow_nonneg.
11587         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11588         Likewise.
11589         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
11590         math_check_force_underflow.
11591         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11592         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11593         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11594         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
11595         math_check_force_underflow_nonneg.
11596         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
11597         math_check_force_underflow.
11598         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
11599         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
11600         instead of volatile.
11601         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
11602         math_check_force_underflow.
11603         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11604         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11605         math_check_force_underflow_nonneg.
11606         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
11607         math_check_force_underflow.
11608         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
11609         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11610         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
11611         math_check_force_underflow_nonneg.
11612         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11613         Likewise.
11614         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
11615         math_check_force_underflow.
11616         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11617         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11618         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
11619         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
11620         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11621         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
11622         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
11623         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
11624         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
11625         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
11626         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
11627         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
11628         Likewise.
11629         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
11630         math_check_force_underflow_nonneg.
11631         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11632         Likewise.
11633         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
11634         math_check_force_underflow.
11635         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11636         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
11637         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11638         Likewise.
11639         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
11640         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
11641         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
11642         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
11643         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
11644         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
11645         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
11646         instead of volatile.
11647         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
11648         math_check_force_underflow.
11649         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
11650         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
11651         math_check_force_underflow.
11652         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
11653         Likewise.
11654         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11655         Use math_check_force_underflow_nonneg.
11656         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
11657         math_check_force_underflow.
11658         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
11659         Likewise.
11660         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11661         Likewise.
11662         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11663         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
11664         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
11665         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
11666         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
11667         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
11668         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11669         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
11670         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
11671         math_check_force_underflow_nonneg.
11672         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
11673         math_check_force_underflow.
11674         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11675         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
11676         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
11677         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
11678         math_check_force_underflow_nonneg.
11679         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
11680         math_check_force_underflow.
11681         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
11682         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
11683         instead of volatile.
11684         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
11685         math_check_force_underflow.
11686
11687         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
11688         * stdlib/strtod_l.c: Include <math_private.h>.
11689         (overflow_value): Use math_narrow_eval.
11690         (underflow_value): Likewise.
11691         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11692         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11693         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
11694         (__ieee754_gamma_r): Likewise.
11695         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
11696         Likewise.
11697         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11698         Likewise.
11699         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
11700         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
11701         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
11702         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11703         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11704         (__ieee754_gammaf_r): Likewise.
11705         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11706         Likewise.
11707         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
11708         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
11709         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11710         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11711         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
11712         volatile.
11713         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11714         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
11715         math_narrow_eval.
11716         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11717         Likewise.
11718         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11719         Likewise.
11720         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
11721         Likewise.
11722         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
11723         volatile.
11724         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11725         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
11726         math_narrow_eval.
11727         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11728         Likewise.
11729         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11730         Likewise.
11731
11732 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
11733
11734         * nptl/Versions: Remove ignored symbols.
11735
11736 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11737
11738         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
11739         * nss/Makefile (tests): Update.
11740
11741 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11742
11743         * nss/bug18287.c: New file.
11744         * nss/Makefile (tests): Add bug18287.
11745
11746 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11747
11748         * mach/Versions (__mach_host_self_): Add symbol.
11749
11750 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11751
11752         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
11753         vm_page_size.
11754
11755 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11756
11757         Really fix sysdeps/i386/fpu/s_scalbn.S build
11758
11759         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
11760         (libc: GLIBC_2_22): Remove unused version set.
11761
11762 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11763
11764         * config.make.in (enable-timezone-tools): New variable.
11765         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
11766         (enable_timezone_tools): Export to generated files.
11767         * configure: Regenerate.
11768         * INSTALL: Regenerate.
11769         * manual/install.texi (--disable-timezone-tools): Document new flag.
11770         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
11771         ifeq ($(enable-timezone-tools),yes) check.
11772
11773 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11774
11775         * timezone/Makefile: Revert previous change.
11776
11777         [BZ #18980]
11778         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
11779         (DEFINE_DBL_MIN): Likewise.
11780         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11781         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11782         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11783         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11784         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
11785         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11786         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11787         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
11788         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
11789         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11790         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11791         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
11792         (flt_min): Replace with use of DEFINE_FLT_MIN.
11793         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11794         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
11795         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11796         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11797         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
11798         (flt_min): Replace with use of DEFINE_FLT_MIN.
11799         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11800         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
11801         (flt_min): Replace with use of DEFINE_FLT_MIN.
11802         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11803         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
11804         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
11805         (__ieee754_hypot): Use DBL_NARROW_EVAL.
11806         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
11807         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
11808         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
11809         (__ieee754_pow): Use DBL_NARROW_EVAL.
11810         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
11811         (__ieee754_powf): Use FLT_NARROW_EVAL.
11812         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
11813         (__ieee754_expf_sse2): Convert double-precision result to single
11814         precision.
11815         * sysdeps/i386/fpu/libm-test-ulps: Update.
11816
11817 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11818
11819         * timezone/Makefile: Ignore unused variable errors due to private.h
11820         (time_t_min) and (time_t_max).
11821         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
11822         Likewise.
11823
11824 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11825
11826         [BZ #18981]
11827         * sysdeps/i386/fpu/i386-math-asm.h: New file.
11828         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
11829         (__ieee754_scalb): Use DBL_NARROW_EVAL.
11830         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
11831         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
11832         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
11833         (__scalbn): Use DBL_NARROW_EVAL.
11834         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
11835         (__scalbnf): Use FLT_NARROW_EVAL.
11836
11837 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11838
11839         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
11840         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
11841         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
11842         * stdio-common/printf_fp.c (___printf_fp):
11843         Use signbit to get the sign. Use isinf macro to allow inlining.
11844         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
11845         * stdio-common/printf_size.c (__printf_size): Likewise.
11846
11847 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11848
11849         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
11850
11851 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11852
11853         [BZ #18980]
11854         * sysdeps/generic/math_private.h: Include <float.h>.
11855         (math_narrow_eval): New macro.
11856         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11857         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
11858         math_narrow_eval on overflowing return value.
11859         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
11860         Likewise.
11861         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11862         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
11863         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
11864         Likewise.
11865         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11866
11867 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11868
11869         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
11870         * math/Makefile: Remove isinf_ns.c.
11871         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
11872         * math/multc3.c (__multc3): Likewise.
11873         * math/s_casin.c (__casin): Likewise.
11874         * math/s_casinf.c (__casinf): Likewise.
11875         * math/s_casinl.c (__casinl): Likewise.
11876         * math/s_cproj.c (__cproj): Likewise.
11877         * math/s_cprojf.c (__cprojf): Likewise.
11878         * math/s_cprojl.c (__cprofl): Likewise.
11879         * math/s_ctan.c (__ctan): Likewise.
11880         * math/s_ctanf.c (__ctanf): Likewise.
11881         * math/s_ctanh.c (__ctanh): Likewise.
11882         * math/s_ctanhf.c (__ctanhf): Likewise.
11883         * math/s_ctanhl.c (__ctanhl): Likewise.
11884         * math/s_ctanl.c (__ctanl): Likewise.
11885         * math/w_fmod.c (__fmod): Likewise.
11886         * math/w_fmodf.c (__fmodf): Likewise.
11887         * math/w_fmodl.c (_fmodl): Likewise.
11888         * math/w_remainder.c (__remainder): Likewise.
11889         * math/w_remainderf.c (__remainderf): Likewise.
11890         * math/w_remainderl.c (__remainderl): Likewise.
11891         * math/w_scalb.c (__scalb): Likewise.
11892         * math/w_scalbf.c (__scalbf): Likewise.
11893         * math/w_scalbl.c (__scalbl): Likewise.
11894         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
11895         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
11896         with isinf.
11897         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
11898         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
11899         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
11900         __isinf_nsf with isinf.
11901         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
11902         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
11903         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
11904         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
11905         with isinf.
11906         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
11907         __isinf_nsl with isinf.
11908         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
11909         with isinf.
11910         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
11911         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
11912         __isinf_nsl with isinf.
11913         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
11914         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
11915         with isinf.
11916
11917 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11918
11919         * resolv/base64.c (rcsid): Remove unused static.
11920         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
11921         static.  (tqpi1): Likewise.
11922         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
11923         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
11924         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
11925         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
11926         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
11927         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
11928         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
11929         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
11930         Likewise.
11931
11932 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
11933
11934         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
11935         <nptl/pthreadP.h>.
11936         (_longjmp_unwind): Use __libc_ptf_call.
11937         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
11938
11939 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
11940
11941         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
11942         * sysdeps/arm/__longjmp.S: Likewise.
11943
11944 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11945
11946         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
11947         Use __builtin_signbit.
11948         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
11949         Use __builtin_signbitf.
11950         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
11951         Use __builtin_signbitl.
11952         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
11953         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
11954
11955 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11956
11957         [BZ #15367]
11958         [BZ #17441]
11959
11960         * math/Makefile: Build test-snan.c with -fsignaling-nans.
11961         * math/math.h (fpclassify): Use __builtin_fpclassify when
11962         available.  (signbit): Use __builtin_signbit(f/l).
11963         (isfinite): Use__builtin_isfinite.  (isnormal): Use
11964         __builtin_isnormal.  (isnan): Use __builtin_isnan.
11965         (isinf): Use __builtin_isinf_sign.
11966
11967 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11968
11969         * benchtests/Makefile: Add bench-math-inlines, link with libm.
11970         * benchtests/bench-math-inlines.c: New benchmark.
11971         * benchtests/bench-util.h: New file.
11972         * benchtests/bench-util.c: New file.
11973         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
11974
11975 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
11976
11977         * elf/tst-dlmopen1.c: Define TEST_SO.
11978         (do_test): Use TEST_SO.
11979
11980         * elf/dl-load.c: Include libc-internal.h.
11981         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
11982
11983 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11984
11985         [BZ #17887]
11986         * time/strptime_l.c (__strptime_internal): Make %z accept
11987         [+-]HH:MM time zones.
11988
11989 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11990
11991         [BZ #17886]
11992         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
11993         valid time zone.
11994
11995 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
11996
11997         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
11998         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
11999         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12000         (__ASSUME_FDATASYNC): Delete.
12001
12002 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12003
12004         * conform/linknamespace.pl: Require weak undefined symbols to be
12005         in the standard namespace.
12006         (%strong_syms): Rename to %seen_syms.
12007         (%strong_seen): Rename to %seen_where.
12008
12009 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
12010
12011         [BZ #18970]
12012         * misc/error.c (error): Replace pthread_setcancelstate with
12013         __pthread_setcancelstate.
12014         (error_at_line): Likewise.
12015         * posix/wordexp.c (parse_comm): Likewise.
12016         * stdlib/fmtmsg.c (fmtmsg): Likewise.
12017         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
12018         (__pthread_setcancelstate): This.
12019         (pthread_setcancelstate): Add an alias.
12020         * nptl/nptl-init.c (pthread_functions): Replace
12021         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
12022         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
12023         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
12024         hidden_proto.
12025         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
12026         it with hidden_def.
12027         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
12028         (pthread_setcancelstate): Renamed to ...
12029         (__pthread_setcancelstate): This.
12030         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
12031         __libc_ptf_call with __pthread_setcancelstate.
12032
12033 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12034             Andreas Schwab  <schwab@suse.de>
12035
12036         [BZ #17118]
12037         * math/s_ctan.c (__ctan): Determine sign of zero real part of
12038         result when imaginary part of argument is infinite using sine and
12039         cosine.
12040         * math/s_ctanf.c (__ctanf): Likewise.
12041         * math/s_ctanl.c (__ctanl): Likewise.
12042         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
12043         of result when real part of argument is infinite using sine and
12044         cosine.
12045         * math/s_ctanhf.c (__ctanhf): Likewise.
12046         * math/s_ctanhl.c (__ctanhl): Likewise.
12047         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
12048         (ctanh_test_data): Add more tests of ctanh.
12049
12050 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12051
12052         [BZ #15384]
12053         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
12054         bit-mask as in subtraction.
12055         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
12056         Likewise.
12057         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
12058         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
12059         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
12060
12061         [BZ #18951]
12062         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
12063         underflow exception for small results.
12064         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12065         Likewise.
12066         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12067         Likewise.
12068         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12069         Likewise.
12070         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12071         Likewise.
12072         * math/auto-libm-test-in: Add more tests of tgamma.
12073         * math/auto-libm-test-out: Regenerated.
12074
12075 2015-09-17  Andreas Schwab  <schwab@suse.de>
12076
12077         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
12078
12079 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
12080
12081         [BZ #18977]
12082         * math/bits/mathcalls.h
12083         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
12084         not declare.
12085         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
12086         Likewise.
12087         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
12088         Likewise.
12089         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
12090         Likewise.
12091         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
12092         Likewise.
12093         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
12094         Likewise.
12095         * conform/data/math.h-data
12096         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
12097         function.
12098         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
12099         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
12100         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
12101         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
12102         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
12103         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
12104         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
12105         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
12106         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
12107         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
12108         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
12109
12110         [BZ #6803]
12111         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
12112         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
12113         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
12114         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
12115         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
12116         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
12117         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
12118         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
12119         [NO_LONG_DOUBLE] (scalbnl): Likewise.
12120         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
12121         Likewise.
12122         [NO_LONG_DOUBLE] (scalbnl): Likewise.
12123         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
12124         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
12125         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
12126         long_double_symbol calls.
12127         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
12128         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
12129         strong alias of __ldexpl.
12130         (scalbnl): Define using long_double_symbol.
12131         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
12132         Remove alias.
12133         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
12134         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
12135         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
12136         (scalbln_test_data): Add more errno expectations.
12137
12138 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
12139
12140         Cache the host port like we cache the task port.  This way we do not
12141         need to call the kernel just to get the port.  Furthermore, we no
12142         longer increase the reference count on every invocation of
12143         `mach_host_self'.
12144
12145         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
12146         Protect declarations against the macro expansion.
12147         * mach/mach_init.c (__mach_host_self_): New variable.
12148         (mach_init): Initialize `__mach_host_self_'.
12149         * mach/mach_init.h (__mach_host_self_): New declaration.
12150         (__mach_host_self, mach_host_self): New macros.
12151         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
12152         Release reference.
12153
12154 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
12155
12156         [BZ #4404]
12157         * po/de.po: Update from Translation Project.
12158
12159         [BZ #16415]
12160         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
12161         (__expm1l): Remove code to handle positive infinity and overflow.
12162         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
12163         variable.
12164         (__expm1l): Remove code to handle positive infinity and overflow.
12165
12166 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12167             Paul Pluzhnikov  <ppluzhnikov@google.com>
12168
12169         [BZ #18872]
12170         * stdio-common/Makefile (tst-printf-bz18872): New test.
12171         (tst-printf-bz18872-mem.out): Likewise.
12172         * stdio-common/tst-printf-bz18872.sh: Generate new test.
12173         * stdio-common/vfprintf.c: Fix memory leaks.
12174
12175 2015-09-16  Andreas Schwab  <schwab@suse.de>
12176
12177         [BZ #17244]
12178         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
12179         Remove extra va_start/va_end calls.
12180
12181         [BZ #17243]
12182         * posix/execl.c (execl): Add missing va_end.
12183         * posix/execle.c (execle): Likewise.
12184         * posix/execlp.c (execlp): Likewise.
12185
12186 2015-09-15  Roland McGrath  <roland@hack.frob.com>
12187
12188         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
12189         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
12190
12191 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
12192
12193         [BZ #18967]
12194         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
12195         undefine around includes of <bits/mathcalls.h>.
12196         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
12197         not declare function.
12198         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
12199         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
12200         (scalb): Likewise.
12201         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
12202         not define macro.
12203         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
12204         variable.
12205         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
12206         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
12207         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
12208
12209         [BZ #18857]
12210         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
12211         return non-finite argument without doing ordered comparisons on
12212         it.
12213
12214         [BZ #16296]
12215         * math/fenv.h (fegetround): Use __attribute_pure__.
12216         * include/fenv.h (__fegetround): Likewise.
12217
12218         [BZ #18595]
12219         * math/s_ctan.c (__ctan): Force underflow exception for results
12220         whose real or imaginary part has small absolute value.
12221         * math/s_ctanf.c (__ctanf): Likewise.
12222         * math/s_ctanh.c (__ctanh): Likewise.
12223         * math/s_ctanhf.c (__ctanhf): Likewise.
12224         * math/s_ctanhl.c (__ctanhl): Likewise.
12225         * math/s_ctanl.c (__ctanl): Likewise.
12226         * math/auto-libm-test-in: Do not allow missing underflow for ctan
12227         and ctanh.  Add more tests of ctan and ctanh.
12228
12229         [BZ #15918]
12230         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
12231         handling of cases where one argument is an infinity.
12232
12233         [BZ #18875]
12234         [BZ #18966]
12235         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
12236         (MO): New macro.
12237         (__ieee754_exp10): For small results, force underflow exception
12238         and remove excess range and precision from return value.
12239         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
12240         (MO): New macro.
12241         (__ieee754_exp10f): For small results, force underflow exception
12242         and remove excess range and precision from return value.
12243         * math/auto-libm-test-in: Add more tests of exp10.
12244         * math/auto-libm-test-out: Regenerated.
12245
12246 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
12247
12248         [BZ #18875]
12249         [BZ #18961]
12250         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
12251         (MO): New macro.
12252         (__ieee754_exp): For small results, force underflow exception and
12253         remove excess range and precision from return value.
12254         (__exp_finite): Likewise.
12255         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
12256         (MO): New macro.
12257         (__ieee754_expf): For small results, force underflow exception and
12258         remove excess range and precision from return value.
12259         (__expf_finite): Likewise.
12260         * math/auto-libm-test-in: Add more tests of exp.
12261         * math/auto-libm-test-out: Regenerated.
12262
12263         [BZ #16521]
12264         [BZ #18875]
12265         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
12266         small results.
12267         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
12268         (MO): New macro.
12269         (__ieee754_exp2): For small results, force underflow exception and
12270         remove excess range and precision from return value.
12271         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
12272         (MO): New macro.
12273         (__ieee754_exp2f): For small results, force underflow exception
12274         and remove excess range and precision from return value.
12275         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
12276         (MO): New macro.
12277         (__ieee754_exp2l): Force underflow exception for small results.
12278         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
12279         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
12280         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
12281         (MO): New macro.
12282         (__ieee754_exp2l): Force underflow exception for small results.
12283         * math/auto-libm-test-in: Add more tests or exp2.
12284         * math/auto-libm-test-out: Regenerated.
12285
12286 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
12287
12288         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
12289
12290         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
12291         /dev/null.
12292
12293 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12294
12295         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12296         io fs process)): Drop spurious backslash.
12297
12298 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
12299
12300         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
12301         Use sysinfo system call instead of parsing /proc/meminfo.
12302         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
12303         Likewise.
12304
12305 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
12306
12307         [BZ #16985]
12308         * programs/localedef.c (main): Display argv[remaining] when
12309         output_path is NULL.
12310
12311 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12312
12313         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
12314         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
12315         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
12316         tanh.
12317         * math/auto-libm-test-out: Regenerated.
12318         * sysdeps/i386/fpu/libm-test-ulps: Update.
12319         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
12320         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12321         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12322
12323 2015-09-11  Roland McGrath  <roland@hack.frob.com>
12324
12325         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
12326         Use 'override' keyword to freeze the value here, preventing
12327         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
12328
12329 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12330
12331         [BZ #14912]
12332         * sysdeps/aarch64/bits/atomic.h: Move to ...
12333         * sysdeps/aarch64/atomic-machine.h: ...here.
12334         (_AARCH64_BITS_ATOMIC_H): Rename macro to
12335         _AARCH64_ATOMIC_MACHINE_H.
12336         * sysdeps/alpha/bits/atomic.h: Move to ...
12337         * sysdeps/alpha/atomic-machine.h: ...here.
12338         * sysdeps/arm/bits/atomic.h: Move to ...
12339         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
12340         * bits/atomic.h: Move to ...
12341         * sysdeps/generic/atomic-machine.h: ...here.
12342         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12343         * sysdeps/i386/bits/atomic.h: Move to ...
12344         * sysdeps/i386/atomic-machine.h: ...here.
12345         * sysdeps/ia64/bits/atomic.h: Move to ...
12346         * sysdeps/ia64/atomic-machine.h: ...here.
12347         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
12348         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
12349         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12350         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
12351         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
12352         * sysdeps/microblaze/bits/atomic.h: Move to ...
12353         * sysdeps/microblaze/atomic-machine.h: ...here.
12354         * sysdeps/mips/bits/atomic.h: Move to ...
12355         * sysdeps/mips/atomic-machine.h: ...here.
12356         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
12357         * sysdeps/powerpc/bits/atomic.h: Move to ...
12358         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
12359         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
12360         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
12361         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
12362         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
12363         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
12364         <atomic-machine.h> instead of <bits/atomic.h>.
12365         * sysdeps/s390/bits/atomic.h: Move to ...
12366         * sysdeps/s390/atomic-machine.h: ...here.
12367         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
12368         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
12369         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12370         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
12371         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
12372         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
12373         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
12374         * sysdeps/tile/bits/atomic.h: Move to ...
12375         * sysdeps/tile/atomic-machine.h: ...here.
12376         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
12377         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
12378         <sysdeps/tile/atomic-machine.h> instead of
12379         <sysdeps/tile/bits/atomic.h>.
12380         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12381         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
12382         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
12383         <sysdeps/tile/atomic-machine.h> instead of
12384         <sysdeps/tile/bits/atomic.h>.
12385         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12386         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
12387         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
12388         <sysdeps/arm/atomic-machine.h> instead of
12389         <sysdeps/arm/bits/atomic.h>.
12390         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
12391         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
12392         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12393         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
12394         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
12395         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12396         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
12397         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
12398         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
12399         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
12400         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
12401         * sysdeps/x86_64/bits/atomic.h: Move to ...
12402         * sysdeps/x86_64/atomic-machine.h: ...here.
12403         * include/atomic.h: Include <atomic-machine.h> instead of
12404         <bits/atomic.h>.
12405
12406         * sysdeps/mips/mips32/libm-test-ulps: Update.
12407         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12408
12409         [BZ #18952]
12410         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
12411         not convert non-integer negative arguments to int to determine the
12412         value of signgam.
12413         * math/auto-libm-test-in: Add more tests of lgamma.
12414         * math/auto-libm-test-out: Regenerated.
12415
12416         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
12417         cosh, csqrt, erfc, expm1 and lgamma.
12418         * math/auto-libm-test-out: Regenerated.
12419         * sysdeps/i386/fpu/libm-test-ulps: Update.
12420         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12421
12422 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
12423
12424         [BZ #2542]
12425         [BZ #2543]
12426         [BZ #2558]
12427         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
12428         __lgamma_neg for arguments from -28.0 to -2.0.
12429         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
12430         __lgamma_negf for arguments from -15.0 to -2.0.
12431         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12432         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
12433         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
12434         Call __lgamma_negl for arguments from -33.0 to -2.0.
12435         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
12436         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
12437         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12438         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
12439         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12440         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12441         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
12442         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
12443         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
12444         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
12445         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
12446         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
12447         (__lgamma_neg): Likewise.
12448         (__lgamma_negl): Likewise.
12449         (__lgamma_product): Likewise.
12450         (__lgamma_productl): Likewise.
12451         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
12452         * math/auto-libm-test-in: Add more tests of lgamma.
12453         * math/auto-libm-test-out: Regenerated.
12454         * sysdeps/i386/fpu/libm-test-ulps: Update.
12455         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12456
12457 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
12458
12459         [BZ #18675]
12460         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
12461
12462 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
12463
12464         [BZ #14912]
12465         * bits/libc-lock.h: Move to ...
12466         * sysdeps/generic/libc-lock.h: ...here.
12467         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12468         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
12469         * sysdeps/mach/hurd/libc-lock.h: ...here.
12470         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12471         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
12472         * sysdeps/mach/bits/libc-lock.h: Move to ...
12473         * sysdeps/mach/libc-lock.h: ...here.
12474         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12475         * sysdeps/nptl/bits/libc-lock.h: Move to ...
12476         * sysdeps/nptl/libc-lock.h: ...here.
12477         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12478         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
12479         * sysdeps/nptl/libc-lockP.h: ...here.
12480         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
12481         * crypt/crypt_util.c: Include <libc-lock.h> instead of
12482         <bits/libc-lock.h>.
12483         * dirent/scandir-tail.c: Likewise.
12484         * dlfcn/dlerror.c: Likewise.
12485         * elf/dl-close.c: Likewise.
12486         * elf/dl-iteratephdr.c: Likewise.
12487         * elf/dl-lookup.c: Likewise.
12488         * elf/dl-open.c: Likewise.
12489         * elf/dl-support.c: Likewise.
12490         * elf/dl-writev.h: Likewise.
12491         * elf/rtld.c: Likewise.
12492         * grp/fgetgrent.c: Likewise.
12493         * gshadow/fgetsgent.c: Likewise.
12494         * gshadow/sgetsgent.c: Likewise.
12495         * iconv/gconv_conf.c: Likewise.
12496         * iconv/gconv_db.c: Likewise.
12497         * iconv/gconv_dl.c: Likewise.
12498         * iconv/gconv_int.h: Likewise.
12499         * iconv/gconv_trans.c: Likewise.
12500         * include/link.h: Likewise.
12501         * inet/getnameinfo.c: Likewise.
12502         * inet/getnetgrent.c: Likewise.
12503         * inet/getnetgrent_r.c: Likewise.
12504         * intl/bindtextdom.c: Likewise.
12505         * intl/dcigettext.c: Likewise.
12506         * intl/finddomain.c: Likewise.
12507         * intl/gettextP.h: Likewise.
12508         * intl/loadmsgcat.c: Likewise.
12509         * intl/localealias.c: Likewise.
12510         * intl/textdomain.c: Likewise.
12511         * libidn/idn-stub.c: Likewise.
12512         * libio/libioP.h: Likewise.
12513         * locale/duplocale.c: Likewise.
12514         * locale/freelocale.c: Likewise.
12515         * locale/newlocale.c: Likewise.
12516         * locale/setlocale.c: Likewise.
12517         * login/getutent_r.c: Likewise.
12518         * login/getutid_r.c: Likewise.
12519         * login/getutline_r.c: Likewise.
12520         * login/utmp-private.h: Likewise.
12521         * login/utmpname.c: Likewise.
12522         * malloc/mtrace.c: Likewise.
12523         * misc/efgcvt.c: Likewise.
12524         * misc/error.c: Likewise.
12525         * misc/fstab.c: Likewise.
12526         * misc/getpass.c: Likewise.
12527         * misc/mntent.c: Likewise.
12528         * misc/syslog.c: Likewise.
12529         * nis/nis_call.c: Likewise.
12530         * nis/nis_callback.c: Likewise.
12531         * nis/nss-default.c: Likewise.
12532         * nis/nss_compat/compat-grp.c: Likewise.
12533         * nis/nss_compat/compat-initgroups.c: Likewise.
12534         * nis/nss_compat/compat-pwd.c: Likewise.
12535         * nis/nss_compat/compat-spwd.c: Likewise.
12536         * nis/nss_nis/nis-alias.c: Likewise.
12537         * nis/nss_nis/nis-ethers.c: Likewise.
12538         * nis/nss_nis/nis-grp.c: Likewise.
12539         * nis/nss_nis/nis-hosts.c: Likewise.
12540         * nis/nss_nis/nis-network.c: Likewise.
12541         * nis/nss_nis/nis-proto.c: Likewise.
12542         * nis/nss_nis/nis-pwd.c: Likewise.
12543         * nis/nss_nis/nis-rpc.c: Likewise.
12544         * nis/nss_nis/nis-service.c: Likewise.
12545         * nis/nss_nis/nis-spwd.c: Likewise.
12546         * nis/nss_nisplus/nisplus-alias.c: Likewise.
12547         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
12548         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12549         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
12550         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
12551         * nis/nss_nisplus/nisplus-network.c: Likewise.
12552         * nis/nss_nisplus/nisplus-proto.c: Likewise.
12553         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
12554         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
12555         * nis/nss_nisplus/nisplus-service.c: Likewise.
12556         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
12557         * nis/ypclnt.c: Likewise.
12558         * nptl/libc_pthread_init.c: Likewise.
12559         * nss/getXXbyYY.c: Likewise.
12560         * nss/getXXent.c: Likewise.
12561         * nss/getXXent_r.c: Likewise.
12562         * nss/nss_db/db-XXX.c: Likewise.
12563         * nss/nss_db/db-netgrp.c: Likewise.
12564         * nss/nss_db/nss_db.h: Likewise.
12565         * nss/nss_files/files-XXX.c: Likewise.
12566         * nss/nss_files/files-alias.c: Likewise.
12567         * nss/nsswitch.c: Likewise.
12568         * posix/regex_internal.h: Likewise.
12569         * posix/wordexp.c: Likewise.
12570         * pwd/fgetpwent.c: Likewise.
12571         * resolv/res_hconf.c: Likewise.
12572         * resolv/res_libc.c: Likewise.
12573         * shadow/fgetspent.c: Likewise.
12574         * shadow/lckpwdf.c: Likewise.
12575         * shadow/sgetspent.c: Likewise.
12576         * socket/opensock.c: Likewise.
12577         * stdio-common/reg-modifier.c: Likewise.
12578         * stdio-common/reg-printf.c: Likewise.
12579         * stdio-common/reg-type.c: Likewise.
12580         * stdio-common/vfprintf.c: Likewise.
12581         * stdio-common/vfscanf.c: Likewise.
12582         * stdlib/abort.c: Likewise.
12583         * stdlib/cxa_atexit.c: Likewise.
12584         * stdlib/fmtmsg.c: Likewise.
12585         * stdlib/random.c: Likewise.
12586         * stdlib/setenv.c: Likewise.
12587         * string/strsignal.c: Likewise.
12588         * sunrpc/auth_none.c: Likewise.
12589         * sunrpc/bindrsvprt.c: Likewise.
12590         * sunrpc/create_xid.c: Likewise.
12591         * sunrpc/key_call.c: Likewise.
12592         * sunrpc/rpc_thread.c: Likewise.
12593         * sysdeps/arm/backtrace.c: Likewise.
12594         * sysdeps/generic/ldsodefs.h: Likewise.
12595         * sysdeps/generic/stdio-lock.h: Likewise.
12596         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
12597         * sysdeps/i386/backtrace.c: Likewise.
12598         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
12599         * sysdeps/m68k/backtrace.c: Likewise.
12600         * sysdeps/mach/hurd/cthreads.c: Likewise.
12601         * sysdeps/mach/hurd/dirstream.h: Likewise.
12602         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12603         * sysdeps/nptl/malloc-machine.h: Likewise.
12604         * sysdeps/nptl/stdio-lock.h: Likewise.
12605         * sysdeps/posix/dirstream.h: Likewise.
12606         * sysdeps/posix/getaddrinfo.c: Likewise.
12607         * sysdeps/posix/system.c: Likewise.
12608         * sysdeps/pthread/aio_suspend.c: Likewise.
12609         * sysdeps/s390/s390-32/backtrace.c: Likewise.
12610         * sysdeps/s390/s390-64/backtrace.c: Likewise.
12611         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
12612         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
12613         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
12614         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
12615         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
12616         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
12617         * sysdeps/unix/sysv/linux/system.c: Likewise.
12618         * sysdeps/x86_64/backtrace.c: Likewise.
12619         * time/alt_digit.c: Likewise.
12620         * time/era.c: Likewise.
12621         * time/tzset.c: Likewise.
12622         * wcsmbs/wcsmbsload.c: Likewise.
12623         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
12624         instead of <bits/libc-lock.h> in comment.
12625
12626 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
12627
12628         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
12629         Only use .set mips2 if the current ISA is below mips2.
12630         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
12631         Likewise.
12632         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
12633         mips32r2 if the current ISA is below mips32r2.
12634         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
12635         (TLS_IE): Updated to use the TLD_RDHWR macro.
12636         (TLS_LE): Likewise.
12637         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
12638         __ASSEMBLER__ condition.
12639
12640 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12641
12642         Fix parallel build of before-compile targets.
12643
12644         * sysdeps/mach/Makefile ($(patsubst
12645         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
12646         mach-before-compile target.
12647         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12648         io fs process)): Move rule to dedicated hurd-before-compile target.
12649
12650 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12651
12652         Fix rules generating headers in hurd/ and mach/ when initial make call
12653         has subdir= explicitly set.
12654
12655         * sysdeps/mach/Makefile ($(patsubst
12656         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
12657         calling $(MAKE).
12658         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12659         io fs process)): Force subdir to hurd when calling $(MAKE).
12660         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
12661         subdir to mach when calling $(MAKE).
12662
12663 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
12664
12665         Check sysheaders when looking for Mach and Hurd headers
12666
12667         * sysdeps/mach/configure.ac: Add sysheaders check.
12668         * sysdeps/mach/configure: Regenerate.
12669         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
12670         * sysdeps/mach/hurd/configure: Regenerate.
12671
12672 2015-09-04  Roland McGrath  <roland@hack.frob.com>
12673
12674         [BZ #18921]
12675         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
12676         Fix inverted sense of test of 'o_directory_works' value.
12677         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
12678         Bernhard Voelker <mail@bernhard-voelker.de>.
12679
12680 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12681
12682         [BZ #14912]
12683         * bits/linkmap.h: Move to ...
12684         * sysdeps/generic/linkmap.h: ...here.
12685         * sysdeps/aarch64/bits/linkmap.h: Move to ...
12686         * sysdeps/aarch64/linkmap.h: ...here.
12687         * sysdeps/arm/bits/linkmap.h: Move to ...
12688         * sysdeps/arm/linkmap.h: ...here.
12689         * sysdeps/hppa/bits/linkmap.h: Move to ...
12690         * sysdeps/hppa/linkmap.h: ...here.
12691         * sysdeps/ia64/bits/linkmap.h: Move to ...
12692         * sysdeps/ia64/linkmap.h: ...here.
12693         * sysdeps/mips/bits/linkmap.h: Move to ...
12694         * sysdeps/mips/linkmap.h: ...here.
12695         * sysdeps/s390/bits/linkmap.h: Move to ...
12696         * sysdeps/s390/linkmap.h: ...here.
12697         * sysdeps/sh/bits/linkmap.h: Move to ...
12698         * sysdeps/sh/linkmap.h: ...here.
12699         * sysdeps/x86/bits/linkmap.h: Move to ...
12700         * sysdeps/x86/linkmap.h: ...here.
12701         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
12702
12703 2015-09-04  Andreas Schwab  <schwab@suse.de>
12704
12705         [BZ #18635]
12706         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12707         (__makecontext): Terminate FDE before return label.
12708         (__novec_makecontext): Likewise.
12709
12710 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12711
12712         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
12713         first member of struct sv in syscall macro.
12714
12715 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12716
12717         [BZ #14912]
12718         * bits/stdio-lock.h: Move to ...
12719         * sysdeps/generic/stdio-lock.h: ...here.
12720         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12721         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
12722         * sysdeps/nptl/stdio-lock.h: ...here.
12723         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12724         * include/libio.h: Include <stdio-lock.h> instead of
12725         <bits/stdio-lock.h>.
12726         * sysdeps/nptl/fork.c: Likewise.
12727         * sysdeps/pthread/flockfile.c: Likewise.
12728         * sysdeps/pthread/ftrylockfile.c: Likewise.
12729         * sysdeps/pthread/funlockfile.c: Likewise.
12730
12731         [BZ #14912]
12732         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
12733         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
12734         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
12735         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
12736         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
12737         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
12738         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
12739
12740 2015-09-03  Roland McGrath  <roland@hack.frob.com>
12741
12742         * elf/Makefile (test-xfail-tst-protected1a): New variable.
12743         (test-xfail-tst-protected1b): New variable.
12744
12745 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
12746
12747         [BZ #14912]
12748         * bits/libc-tsd.h: Move to ...
12749         * sysdeps/generic/libc-tsd.h: ...here.
12750         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
12751         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
12752         * sysdeps/mach/hurd/libc-tsd.h: ...here.
12753         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
12754         * include/ctype.h: Include <libc-tsd.h> instead of
12755         <bits/libc-tsd.h>.
12756         * include/rpc/rpc.h: Likewise.
12757         * locale/localeinfo.h: Likewise.
12758         * sunrpc/rpc_thread.c: Likewise.
12759         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12760         * sysdeps/nptl/malloc-machine.h: Likewise.
12761
12762         * Makefile (headers): Remove bits/libc-lock.h.
12763         * libio/Makefile (headers): Remove bits/stdio-lock.h.
12764
12765         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
12766         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
12767         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
12768         <bits/stdio-lock.h>.
12769         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
12770         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
12771
12772 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12773
12774         [BZ #18757]
12775         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
12776         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
12777         BZ #18757.
12778
12779 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12780
12781         * malloc/mtrace.pl: Filter out NULL entries.
12782
12783 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
12784
12785         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
12786         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
12787         macro.
12788
12789         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
12790         (TCP_CC_INFO): Likewise.
12791         (TCP_SAVE_SYN): Likewise.
12792         (TCP_SAVED_SYN): Likewise.
12793
12794 2015-08-31  Brett Neumeier <brett@neumeier.us>
12795
12796         [BZ #18870]
12797         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
12798
12799 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12800
12801         [BZ #18873]
12802         Fix broken overflow check in posix_fallocate
12803         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
12804         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
12805         Fix parenthesization typo.
12806
12807 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
12808
12809         [BZ #18887]
12810         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
12811         tst-mntent-blank-passno.
12812         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
12813         * misc/tst-mntent-blank-corrupt.c: New test.
12814         * misc/tst-mntent-blank-passno.c: New test ripped from ...
12815         * misc/tst-mntent.c (do_test): ... here.
12816
12817 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
12818
12819         [BZ #4404]
12820         * po/de.po: Fix SIGALRM typo.
12821
12822 2015-08-28  James Perkins  <james@loowit.net>
12823
12824         * time/tst-strptime2.c (tests): Replace short list of test
12825         strings for strptime %z specifier with code which exhaustively
12826         tests every combination of sign and 0 to 5 digits. Tests for
12827         rejection of invalid strings.
12828
12829 2015-08-28  James Perkins  <james@loowit.net>
12830
12831         [BZ #16141]
12832         * time/strptime_l.c (__strptime_internal): Fix %z minutes
12833         calculation, removing incorrect decimal time rounding, so that
12834         all minute values result in a valid seconds value.
12835         * time/strptime_l.c (__strptime_internal): Extend %z time zone
12836         offset range limits to UTC-99:59 through UTC+99:59 to parse
12837         current and historical use cases.
12838         * time/tst-strptime2.c (tests): Modify and add tests for the
12839         strptime %z input field descriptor, specifically conversion of
12840         minutes to seconds and validating an offset range of -9959 to
12841         +9959.
12842
12843 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12844             Dmitry V. Levin  <ldv@altlinux.org>
12845
12846         [BZ #18877]
12847         * posix/Makefile (tests): Add tst-mmap-offset.
12848         * posix/tst-mmap.c: New file.
12849         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
12850         offset calculation for negative values.
12851
12852 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12853
12854         * sysdeps/i386/init-arch.h: New file.
12855         * sysdeps/i386/i586/init-arch.h: Likewise.
12856         * sysdeps/i386/i686/init-arch.h: Likewise.
12857         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
12858         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
12859         * sysdeps/x86/cpu-features.h (bit_I586): New.
12860         (bit_I686): Likewise.
12861         (bit_CX8): Likewise.
12862         (bit_CMOV): Likewise.
12863         (index_CX8): Likewise.
12864         (index_CMOV): Likewise.
12865         (index_I586): Likewise.
12866         (index_I686): Likewise.
12867         (reg_CX8): Likewise.
12868         (reg_CMOV): Likewise.
12869         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
12870         available at compile-time.
12871         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
12872         available at compile-time.
12873         * sysdeps/x86/init-arch.h (USE_I586): New macro.
12874         (USE_I686): Likewise.
12875
12876 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12877
12878         * sysdeps/i386/bcopy.S: New file.
12879         * sysdeps/i386/bzero.S: Likewise.
12880         * sysdeps/i386/memcpy.S: Likewise.
12881         * sysdeps/i386/memmove.S: Likewise.
12882         * sysdeps/i386/mempcpy.S: Likewise.
12883         * sysdeps/i386/memset.S: Likewise.
12884         * sysdeps/i386/bzero.c: Removed.
12885         * sysdeps/i386/memset.c: Likewise.
12886         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
12887         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
12888         * sysdeps/i386/i586/memset_chk.S: Likewise.
12889         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
12890         * sysdeps/i386/memcpy_chk.S: Here.
12891         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
12892         * sysdeps/i386/memmove_chk.S: Here.
12893         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
12894         * sysdeps/i386/mempcpy_chk.S: Likewise.
12895         * sysdeps/i386/i686/memset_chk.S: Moved to ...
12896         * sysdeps/i386/memset_chk.S: Likewise.
12897
12898 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
12899
12900         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
12901         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
12902         file, move DIAG_POP_NEEDS_COMMENT to end of file.
12903         * soft-fp/fmadf4.c: Ditto.
12904         * soft-fp/fmatf4.c: Ditto.
12905
12906 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12907
12908         * sysdeps/i386/i586/Implies: Removed.
12909         * sysdeps/i386/i686/Implies: Likewise.
12910
12911 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12912
12913         * sysdeps/i386/i486/strlen.S: Moved to ...
12914         * sysdeps/i386/strlen.S: Here.
12915
12916 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12917
12918         * sysdeps/i386/i486/strcat.S: Moved to ...
12919         * sysdeps/i386/strcat.S: Here.
12920
12921 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12922
12923         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
12924         * sysdeps/i386/pthread_spin_trylock.S: Here.
12925         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
12926         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
12927
12928 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12929
12930         * sysdeps/i386/i486/string-inlines.c: Moved to ...
12931         * sysdeps/i386/string-inlines.c: Here.
12932
12933 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12934
12935         * sysdeps/i386/i486/htonl.S: Moved ...
12936         * sysdeps/i386/htonl.S: here.
12937
12938 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12939
12940         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
12941         * sysdeps/i386/bits/atomic.h: Here.
12942
12943 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12944
12945         * sysdeps/i386/i486/Versions: Removed.
12946
12947 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
12948
12949         [BZ #2898]
12950         * misc/mktemp.c: Add mkdtemp to the link_warning message.
12951         Based on patch by Aurelien Jarno.
12952
12953 2015-08-26  Stan Shebs  <stanshebs@google.com>
12954
12955         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
12956         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
12957
12958 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12959
12960         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
12961         * sysdeps/powerpc/dl-procinfo.c:
12962         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
12963         feature so it shows when LD_SHOW_AUXV=1.
12964
12965 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12966
12967         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
12968         (__arch_compare_and_exchange_val_32_acq): Remove and use common
12969         definition.  ISA 2.07B no longer requires full sync.
12970
12971 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
12972
12973         [BZ #18863]
12974         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
12975         (si_call_addr): Define.
12976         (si_syscall): Define.
12977         (si_arch): Define.
12978
12979 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12980
12981         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
12982         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
12983         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
12984         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12985         (__memset_zero_constant_len_parameter): New.
12986         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
12987         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12988         (__memset_zero_constant_len_parameter): Don't define if
12989         __memset_chk or USE_AS_BZERO are defined.
12990
12991         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
12992         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
12993         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
12994
12995         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
12996         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
12997         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
12998         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
12999         comments.
13000         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
13001         -mno-mmx for $(all-rtld-routines).
13002         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
13003         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
13004         i386.
13005
13006 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
13007
13008         * sysdeps/generic/unwind.h
13009         (_Unwind_Word): Use __mode__(__unwind_word__)
13010         instead of __mode__(__word__).
13011         (_Unwind_Sword): Likewise.
13012
13013         * sysdeps/s390/s390-64/utf8-utf16-z9.c
13014         (MAX_NEEDED_INPUT): New define.
13015         (MAX_NEEDED_OUTPUT): New define.
13016
13017         * NEWS: New item for IBM z13 string optimizations.
13018
13019         * sysdeps/s390/multiarch/memrchr-c.c: New File.
13020         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
13021         * sysdeps/s390/multiarch/memrchr.c: Likewise.
13022         * sysdeps/s390/multiarch/Makefile
13023         (sysdep_routines): Add memrchr functions.
13024         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13025         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
13026
13027         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
13028         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
13029         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
13030         * sysdeps/s390/multiarch/Makefile
13031         (sysdep_routines): Add wmemcmp functions.
13032         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13033         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
13034         * benchtests/bench-wmemcmp.c: New File.
13035         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
13036
13037         * sysdeps/s390/multiarch/wmemset-c.c: New File.
13038         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
13039         * sysdeps/s390/multiarch/wmemset.c: Likewise.
13040         * sysdeps/s390/multiarch/Makefile
13041         (sysdep_routines): Add wmemset functions.
13042         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13043         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
13044         * wcsmbs/wmemset.c: Use WMEMSET if defined.
13045         * string/test-memset.c: Add wmemset support.
13046         * wcsmbs/test-wmemset.c: New File.
13047         * wcsmbs/Makefile (strop-tests): Add wmemset.
13048         * benchtests/bench-memset.c: Add wmemset support.
13049         * benchtests/bench-wmemset.c: New File.
13050         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
13051
13052         * sysdeps/s390/multiarch/memccpy-c.c: New File.
13053         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
13054         * sysdeps/s390/multiarch/memccpy.c: Likewise.
13055         * sysdeps/s390/multiarch/Makefile
13056         (sysdep_routines): Add memccpy functions.
13057         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13058         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
13059         * string/memccpy.c: Use MEMCCPY if defined.
13060
13061         * sysdeps/s390/multiarch/memchr-vx.S: New File.
13062         * sysdeps/s390/multiarch/memchr.c: Likewise.
13063         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
13064         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
13065         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
13066         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
13067         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
13068         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
13069         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
13070         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
13071         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
13072         and rawmemchr functions.
13073         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13074         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
13075         and wmemchr.
13076         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
13077         * string/test-memchr.c: Add wmemchr support.
13078         * wcsmbs/test-wmemchr.c: New File.
13079         * wcsmbs/Makefile (strop-tests): Add wmemchr.
13080         * benchtests/bench-memchr.c: Add wmemchr support.
13081         * benchtests/bench-wmemchr.c: New File.
13082         * benchtests/Makefile (wcsmbs-bench): wmemchr.
13083
13084         * sysdeps/s390/multiarch/strcspn-c.c: New File.
13085         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
13086         * sysdeps/s390/multiarch/strcspn.c: Likewise.
13087         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
13088         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
13089         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
13090         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
13091         wcscspn functions.
13092         * sysdeps/s390/multiarch/ifunc-impl-list.c
13093         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
13094         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
13095         * string/test-strcspn.c: Add wcscspn support.
13096         * wcsmbs/test-wcscspn.c: New File.
13097         * wcsmbs/Makefile (strop-tests): Add wcscspn.
13098         * benchtests/bench-strcspn.c: Add wcscspn support.
13099         * benchtests/bench-wcscspn.c: New File.
13100         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
13101
13102         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
13103         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
13104         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
13105         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
13106         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
13107         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
13108         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
13109         wcspbrk functions.
13110         * sysdeps/s390/multiarch/ifunc-impl-list.c
13111         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
13112         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
13113         * string/test-strpbrk.c: Add wcspbrk support.
13114         * wcsmbs/test-wcspbrk.c: New File.
13115         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
13116         * benchtests/bench-strpbrk.c: Add wcspbrk support.
13117         * benchtests/bench-wcspbrk.c: New File.
13118         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
13119
13120         * sysdeps/s390/multiarch/strspn-c.c: New File.
13121         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
13122         * sysdeps/s390/multiarch/strspn.c: Likewise.
13123         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
13124         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
13125         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
13126         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
13127         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
13128         wcsspn functions.
13129         * sysdeps/s390/multiarch/ifunc-impl-list.c
13130         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
13131         * string/test-strspn.c: Add wcsspn support.
13132         * wcsmbs/test-wcsspn.c: New File.
13133         * wcsmbs/Makefile (strop-tests): Add wcsspn.
13134         * benchtests/bench-strspn.c: Add wcsspn support.
13135         * benchtests/bench-wcsspn.c: New File.
13136         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
13137
13138         * sysdeps/s390/multiarch/strrchr-c.c: New File.
13139         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
13140         * sysdeps/s390/multiarch/strrchr.c: Likewise.
13141         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
13142         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
13143         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
13144         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
13145         wcsrchr functions.
13146         * sysdeps/s390/multiarch/ifunc-impl-list.c
13147         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
13148         * benchtests/bench-wcsrchr.c: New File.
13149         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
13150
13151         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
13152         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
13153         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
13154         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
13155         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
13156         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
13157         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
13158         wcschrnul functions.
13159         * sysdeps/s390/multiarch/ifunc-impl-list.c
13160         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
13161         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
13162         * string/test-strchr.c: Add wcschrnul support.
13163         * wcsmbs/test-wcschrnul.c: New File.
13164         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
13165         * benchtests/bench-strchr.c: Add wcschrnul support.
13166         * benchtests/bench-wcschrnul.c: New File.
13167         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
13168
13169         * sysdeps/s390/multiarch/strchr-c.c: New File.
13170         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
13171         * sysdeps/s390/multiarch/strchr.c: Likewise.
13172         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
13173         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
13174         * sysdeps/s390/multiarch/wcschr.c: Likewise.
13175         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
13176         wcschr functions.
13177         * sysdeps/s390/multiarch/ifunc-impl-list.c
13178         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
13179         * string/strchr.c (STRCHR): Define and use macro.
13180         * benchtests/bench-wcschr.c: New File.
13181         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
13182
13183         * sysdeps/s390/multiarch/strncmp-c.c: New File.
13184         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
13185         * sysdeps/s390/multiarch/strncmp.c: Likewise.
13186         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
13187         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
13188         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
13189         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
13190         wcsncmp functions.
13191         * sysdeps/s390/multiarch/ifunc-impl-list.c
13192         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
13193         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
13194         * benchtests/bench-strncmp.c: Add wcsncmp support.
13195         * benchtests/bench-wcsncmp.c: New File.
13196         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
13197
13198         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
13199         * sysdeps/s390/multiarch/strcmp.c: Likewise.
13200         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
13201         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
13202         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
13203         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
13204         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
13205         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
13206         wcscmp functions.
13207         * sysdeps/s390/multiarch/ifunc-impl-list.c
13208         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
13209         * string/strcmp.c (STRCMP): Define and use macro.
13210         * benchtests/bench-wcscmp.c: New File.
13211         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
13212         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
13213         instead of _HAVE_STRING_ARCH_memchr.
13214
13215         * sysdeps/s390/multiarch/strncat-c.c: New File.
13216         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
13217         * sysdeps/s390/multiarch/strncat.c: Likewise.
13218         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
13219         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
13220         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
13221         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
13222         wcsncat functions.
13223         * sysdeps/s390/multiarch/ifunc-impl-list.c
13224         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
13225         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
13226         * string/test-strncat.c: Add wcsncat support.
13227         * wcsmbs/test-wcsncat.c: New File.
13228         * wcsmbs/Makefile (strop-tests): Add wcsncat.
13229         * benchtests/bench-strncat.c: Add wcsncat support.
13230         * benchtests/bench-wcsncat.c: New File.
13231         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
13232
13233         * sysdeps/s390/multiarch/strcat-c.c: New File.
13234         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
13235         * sysdeps/s390/multiarch/strcat.c: Likewise.
13236         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
13237         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
13238         * sysdeps/s390/multiarch/wcscat.c: Likewise.
13239         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
13240         wcscat functions.
13241         * sysdeps/s390/multiarch/ifunc-impl-list.c
13242         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
13243         * string/strcat.c (STRCAT): Define and use macro.
13244         * wcsmbs/wcscat.c: Use WCSCAT if defined.
13245         * string/test-strcat.c: Add wcscat support.
13246         * wcsmbs/test-wcscat.c: New File.
13247         * wcsmbs/Makefile (strop-tests): Add wcscat.
13248         * benchtests/bench-strcat.c: Add wcscat support.
13249         * benchtests/bench-wcscat.c: New File.
13250         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
13251
13252         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
13253         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
13254         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
13255         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
13256         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
13257         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
13258         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
13259         wcpncpy functions.
13260         * sysdeps/s390/multiarch/ifunc-impl-list.c
13261         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
13262         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
13263         * string/test-stpncpy.c: Add wcpncpy support.
13264         * wcsmbs/test-wcpncpy.c: New File.
13265         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
13266         * benchtests/bench-stpncpy.c: Add wcpncpy support.
13267         * benchtests/bench-wcpncpy.c: New File.
13268         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
13269
13270         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
13271         * sysdeps/s390/multiarch/strncpy.c: Likewise.
13272         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
13273         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
13274         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
13275         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
13276         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
13277         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
13278         wcsncpy functions.
13279         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
13280         * sysdeps/s390/multiarch/ifunc-impl-list.c
13281         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
13282         * string/test-strncpy.c: Add wcsncpy support.
13283         * wcsmbs/test-wcsncpy.c: New File.
13284         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
13285         * benchtests/bench-strncpy.c: Add wcsncpy support.
13286         * benchtests/bench-wcsncpy.c: New File.
13287         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
13288
13289         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
13290         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
13291         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
13292         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
13293         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
13294         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
13295         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
13296         wcpcpy functions.
13297         * string/stpcpy.c: Use STPCPY if defined.
13298         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
13299         * sysdeps/s390/multiarch/ifunc-impl-list.c
13300         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
13301         * string/test-stpcpy.c: Add wcpcpy support.
13302         * wcsmbs/test-wcpcpy.c: New File.
13303         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
13304         * benchtests/bench-stpcpy.c: Add wcpcpy support.
13305         * benchtests/bench-wcpcpy.c: New File.
13306         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
13307
13308         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
13309         * sysdeps/s390/multiarch/strcpy.c: Likewise.
13310         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
13311         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
13312         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
13313         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
13314         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
13315         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
13316         wcscpy functions.
13317         * sysdeps/s390/multiarch/ifunc-impl-list.c
13318         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
13319         * benchtests/bench-wcscpy.c: New File.
13320         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
13321
13322         * sysdeps/s390/multiarch/strnlen-c.c: New File.
13323         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
13324         * sysdeps/s390/multiarch/strnlen.c: Likewise.
13325         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
13326         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
13327         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
13328         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
13329         wcsnlen functions.
13330         * sysdeps/s390/multiarch/ifunc-impl-list.c
13331         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
13332         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
13333         * string/test-strnlen.c: Add wcsnlen support.
13334         * wcsmbs/test-wcsnlen.c: New File.
13335         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
13336         * benchtests/bench-strnlen.c: Add wcsnlen support.
13337         * benchtests/bench-wcsnlen.c: New File.
13338         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
13339
13340         * sysdeps/s390/multiarch/Makefile: New File.
13341         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
13342         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
13343         * sysdeps/s390/multiarch/strlen.c: Likewise.
13344         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
13345         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
13346         * sysdeps/s390/multiarch/wcslen.c: Likewise.
13347         * string/strlen.c (STRLEN): Define and use macro.
13348         * sysdeps/s390/multiarch/ifunc-impl-list.c
13349         (IFUNC_VX_IMPL): New macro function.
13350         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
13351         * benchtests/Makefile (wcsmbs-bench): New variable.
13352         (string-bench-all): Added wcsmbs-bench.
13353         * benchtests/bench-wcslen.c: New File.
13354
13355         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
13356         s390_vx_libc_ifunc2): New macro function.
13357
13358         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
13359         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
13360         assembler support.
13361         * sysdeps/s390/configure: Regenerated.
13362
13363         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
13364         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
13365
13366         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
13367         * sysdeps/s390/dl-procinfo.h: Add vector capability.
13368         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
13369
13370         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
13371         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
13372         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
13373         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
13374         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
13375         (memcmp, bcmp): Use __memcmp_default as alias source.
13376         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
13377         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
13378         Rename to __memcmp_default.
13379         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
13380         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
13381         (memcpy): Use __memcpy_default as alias source.
13382         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
13383         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
13384         Rename to __memcpy_default.
13385         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
13386         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
13387         (memset): Use __memset_default as alias source.
13388         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
13389         * sysdeps/s390/s390-32/memset.S (__memset_g5):
13390         Rename to __memset_default.
13391         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
13392         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
13393         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
13394         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
13395         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
13396         (memcmp, bcmp): Use __memcmp_default as alias source.
13397         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
13398         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
13399         Rename to __memcmp_default.
13400         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
13401         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
13402         (memcpy): Use __memcpy_default as alias source.
13403         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
13404         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
13405         Rename to __memcpy_default.
13406         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
13407         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
13408         (memset): Use __memset_default as alias source.
13409         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
13410         * sysdeps/s390/s390-64/memset.S (__memset_z900):
13411         Rename to __memset_default.
13412         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
13413         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
13414
13415         [BZ #18610]
13416         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
13417         __ieee_instruction_pointer to __unused.
13418         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
13419         __ieee_instruction_pointer.
13420         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
13421         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
13422         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13423         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
13424         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
13425         Mark dxc-field as reserved.
13426
13427 2015-08-25  Roland McGrath  <roland@hack.frob.com>
13428
13429         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
13430         if the weak reference is not null.
13431
13432 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13433
13434         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
13435
13436         [BZ #11214]
13437         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
13438
13439 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13440
13441         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
13442         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
13443         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
13444         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
13445         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
13446         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
13447         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
13448         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
13449         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
13450         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
13451         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
13452         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
13453         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
13454         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
13455         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
13456         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
13457         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
13458         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
13459
13460 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13461
13462         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
13463         register other than r0 for tabort, it has special meaning.
13464         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
13465         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
13466         transaction before starting syscall.
13467
13468 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13469
13470         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
13471
13472 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13473
13474         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
13475
13476         * sysdeps/x86_64/rtld-memcmp.c: Removed.
13477         * sysdeps/x86_64/rtld-memset.S: Likewise.
13478         * sysdeps/x86_64/rtld-strchr.S: Likewise.
13479         * sysdeps/x86_64/rtld-strlen.S: Likewise.
13480         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
13481         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
13482
13483         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
13484
13485 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
13486
13487         * debug/strcpy_chk.c: Improve performance.
13488         * debug/stpcpy_chk.c: Likewise.
13489         * sysdeps/x86_64/strcpy_chk.S: Remove.
13490         * sysdeps/x86_64/stpcpy_chk.S: Remove.
13491
13492         [BZ #18240]
13493         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
13494
13495 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13496
13497         [BZ #15128]
13498         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
13499         ifuncmain8.
13500         (modules-names): Add ifuncmod8.
13501         ($(objpfx)ifuncmain8): New rule.
13502         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
13503         <cpuid.h>.
13504         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
13505         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
13506         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
13507         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
13508         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
13509         * sysdeps/x86_64/dl-trampoline.h: Likewise.
13510         * sysdeps/x86_64/ifuncmain8.c: New file.
13511         * sysdeps/x86_64/ifuncmod8.c: Likewise.
13512         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
13513         Removed.
13514         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
13515         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
13516         Change rtld_savespace_sse to __glibc_unused2.
13517         (RTLD_CHECK_FOREIGN_CALL): Removed.
13518         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
13519         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
13520         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
13521
13522 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13523
13524         * sysdeps/aarch64/bzero.S (__bzero): Remove.
13525
13526 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13527
13528         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
13529         Unconditionally set __fpcr to avoid uninialized warning.
13530         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
13531
13532 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13533
13534         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
13535         is corrupt.
13536
13537         * malloc/arena.c (arena_get2): Drop unused argument.
13538         (arena_lock): Adjust.
13539         (arena_get_retry): Likewise.
13540
13541 2015-08-24  Andreas Schwab  <schwab@suse.de>
13542
13543         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
13544         Don't define.
13545         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
13546         (__ASSUME_IPC64): Don't undef.
13547         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
13548         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
13549         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
13550         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
13551         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
13552         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
13553         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
13554         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
13555         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
13556         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
13557         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
13558         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
13559         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
13560         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
13561         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
13562         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
13563         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
13564         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
13565         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
13566         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
13567         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
13568
13569 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
13570
13571         * manual/Makefile (install): Only build manual when perl is available.
13572
13573 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13574
13575         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
13576         '#undef memcpy' by '#undef memchr'.
13577
13578 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13579
13580         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
13581         memchr not point to the internal __GI_memchr implementation.
13582
13583 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13584
13585         * timezone/Makefile (CFLAGS-zdump.c): Remove
13586         -Wno-strict-prototypes.
13587         (CFLAGS-zic.c): Likewise.
13588         (CFLAGS-ialloc.c): Likewise.
13589         (CFLAGS-scheck.c): Likewise.
13590
13591         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
13592         -Wno-error=undef.
13593
13594 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13595
13596         * i386/i686/multiarch/strcasestr-c.c: Removed.
13597         * x86_64/multiarch/strcasestr.c: Likewise.
13598         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
13599         Remove strcasestr.
13600
13601 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13602
13603         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
13604
13605         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
13606         variables for high and low parts before possibly modifying them.
13607
13608 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13609
13610         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
13611         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
13612         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
13613         of "multiarch/init-arch.h".
13614         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
13615         * sysdeps/x86/init-arch.h: This.
13616
13617 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13618
13619         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
13620         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
13621
13622 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
13623
13624         [BZ #17787]
13625         * manual/macros.texi: Add twoexp macro.
13626         * manual/filesys.texi: Fix exponents.
13627         * manual/llio.texi: Likewise.
13628         * manual/stdio.texi: Likewise.
13629
13630 2015-08-20  Florian Weimer  <fweimer@redhat.com>
13631
13632         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
13633         incorrect use.
13634
13635 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13636
13637         [BZ #18370]
13638         * math/s_csqrt.c (__csqrt): Force underflow exception for results
13639         whose real or imaginary part has small absolute value.
13640         * math/s_csqrtf.c (__csqrtf): Likewise.
13641         * math/s_csqrtl.c (__csqrtl): Likewise.
13642         * math/auto-libm-test-in: Add more tests of csqrt.
13643         * math/auto-libm-test-out: Regenerated.
13644         * sysdeps/i386/fpu/libm-test-ulps: Update.
13645
13646 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13647
13648         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
13649         __ppc_set_ppr_very_low): New functions.
13650         * manual/platform.texi: Add documentation about
13651         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
13652
13653 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
13654
13655         * string/stpncpy.c (stpncpy): Improve performance using
13656         __strnlen/memcpy/memset.
13657
13658 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
13659
13660         [BZ #18796]
13661         * scripts/test-installation.pl: Don't add -lmvec to build options if
13662         libmvec wasn't built.
13663
13664 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
13665
13666         [BZ #14341]
13667         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
13668         case when there is a gap between DT_REL and DT_JMPREL sections.
13669         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
13670         (LDFLAGS-tst-split-dynreloc): New.
13671         (tst-split-dynreloc-ENV): Likewise.
13672         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
13673         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
13674
13675 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13676
13677         [BZ #18822]
13678         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
13679         attribute_hidden.
13680         (__xstat64_conv): Likewise.
13681         (__xstat32_conv): Likewise.
13682
13683 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13684
13685         [BZ #18822]
13686         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
13687         Don't load %ebx when calling __setcontext.  Call __setcontext
13688         with HIDDEN_JUMPTARGET.
13689         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
13690         libc_hidden_def.
13691
13692 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13693
13694         * sysdeps/i386/i686/Makefile
13695         [$(subdir) == string] (sysdep_routines): Moved to ...
13696         * sysdeps/i386/Makefile: Here.
13697         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
13698         * sysdeps/i386/cacheinfo.c: Here.
13699         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
13700         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
13701         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
13702         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
13703
13704 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13705
13706         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
13707         __i586__ is defined.
13708         (HAS_I686): Defined to 1 if __i686__ is defined.
13709
13710 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13711
13712         * elf/Makefile [$(have-z-execstack) = yes]
13713         (CPPFLAGS-tst-execstack.c): New variable.
13714
13715         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
13716         conditional to [defined UTMPX || _HAVE_UT_TYPE].
13717         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
13718         UTMPX || _HAVE_UT_TV].
13719         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
13720         UTMPX || _HAVE_UT_TV - 0].
13721
13722 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
13723
13724         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
13725         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
13726         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
13727
13728 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13729
13730         * sysdeps/powerpc/dl-procinfo.c:
13731         (_dl_powerpc_cap_flags): Added missing strings for some
13732         hwcap features.
13733         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
13734
13735 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13736
13737         Port the 0x7efe...feff pattern to GCC 6.
13738         See Steve Ellcey's bug report in:
13739         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
13740         * string/memrchr.c (MEMRCHR):
13741         * string/rawmemchr.c (RAWMEMCHR):
13742         * string/strchr.c (strchr):
13743         * string/strchrnul.c (STRCHRNUL):
13744         Rewrite code to avoid issues with signed shift overflow.
13745
13746 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13747
13748         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
13749         whether cpuid is available only if HAS_CPUID is 0.
13750         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
13751         (HAS_I586): Likewise.
13752         (HAS_I686): Likewise.
13753
13754 2015-08-18  Zack Weinberg  <zackw@panix.com>
13755
13756         * misc/Versions (libc): Add GLIBC_2.23.
13757
13758 2015-08-18  Alan Modra  <amodra@gmail.com>
13759
13760         [BZ #18421]
13761         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
13762         .Lp__global.
13763         (_start): Load %dp via .Lp__global.
13764         [!SHARED]: Use .section .rodata.
13765
13766 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13767
13768         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
13769         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
13770
13771 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13772
13773         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
13774         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
13775
13776 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13777
13778         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
13779         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
13780
13781 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13782
13783         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
13784         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
13785
13786 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13787
13788         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
13789         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
13790
13791 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13792
13793         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
13794         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
13795
13796 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13797
13798         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
13799
13800 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13801
13802         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
13803         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
13804         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13805         (__ASSUME_LWS_CAS): Delete.
13806
13807 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13808
13809         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
13810         * sysdeps/hppa/configure: Regenerated.
13811         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
13812         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
13813         * sysdeps/hppa/nptl/tls.h: Likewise.
13814
13815 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
13816
13817         [BZ #18823]
13818         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
13819         for scaling up small arguments.
13820         * math/s_csqrtf.c (__csqrtf): Likewise.
13821         * math/s_csqrtl.c (__csqrtl): Likewise.
13822         * math/auto-libm-test-in: Add more tests of csqrt.
13823         * math/auto-libm-test-out: Regenerated.
13824
13825 2015-08-17  Andreas Schwab  <schwab@suse.de>
13826
13827         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
13828         version set GLIBC_2.19.
13829
13830 2015-08-16  Zack Weinberg  <zackw@panix.com>
13831
13832         [BZ #18681]
13833         * misc/regexp.h: This interface is no longer supported.
13834         Remove all contents, leaving only an #error directive.
13835         * misc/regexp.c (loc1, loc2, locs, step, advance):
13836         Demote to compatibility symbols.
13837
13838 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
13839
13840         [BZ #18084]
13841         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
13842         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
13843         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
13844         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
13845         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
13846         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
13847         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
13848         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
13849         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
13850
13851 2015-08-15  Zack Weinberg  <zackw@panix.com>
13852
13853         [BZ #18795]
13854         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
13855         buffer length is known to be too large, not if it's known to be
13856         small enough.
13857         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
13858         overflow at runtime, involving a length parameter, twice: once
13859         with a compile-time constant length parameter, once without.
13860
13861 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
13862
13863         [BZ #18824]
13864         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
13865         scaling x * y up instead of down.
13866         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13867         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13868         * math/auto-libm-test-in: Add more tests of fma.
13869         * math/auto-libm-test-out: Regenerated.
13870
13871 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
13872
13873         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13874
13875 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13876
13877         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
13878         unnecessary movq.
13879         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
13880         Likewise.
13881
13882 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
13883
13884         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
13885         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
13886         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
13887         and tgamma.
13888         * math/auto-libm-test-out: Regenerated.
13889         * sysdeps/i386/fpu/libm-test-ulps: Update.
13890         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13891
13892         [BZ #16520]
13893         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
13894         (__tanh): Force underflow exception for arguments with small
13895         absolute value.
13896         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
13897         (__tanhf): Force underflow exception for arguments with small
13898         absolute value.
13899         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
13900         (__tanhl): Force underflow exception for arguments with small
13901         absolute value.
13902         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
13903         (__tanhl): Force underflow exception for arguments with small
13904         absolute value.
13905         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
13906         (__tanhl): Force underflow exception for arguments with small
13907         absolute value.
13908         * math/auto-libm-test-in: Add more tests of tanh.
13909         * math/auto-libm-test-out: Regenerated.
13910         * sysdeps/i386/fpu/libm-test-ulps: Update.
13911
13912 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13913
13914         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
13915         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
13916
13917 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13918
13919         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
13920         <cpuid.h>.
13921
13922 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13923
13924         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
13925         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
13926
13927 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13928
13929         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
13930         Remove $(objpfx)init-arch.o.
13931         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
13932         init-arch.
13933         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
13934         (INIT_ARCH_EXT): Defined as empty.
13935         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
13936         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
13937         __init_cpu_features call.  Replace HAS_XXX with
13938         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13939         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
13940         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
13941         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
13942         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
13943         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
13944         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
13945         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
13946         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
13947         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
13948         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
13949         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
13950         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
13951         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
13952         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
13953         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
13954         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
13955         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
13956         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
13957         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
13958         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
13959         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
13960         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
13961         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
13962         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
13963         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
13964         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
13965         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
13966         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
13967         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
13968         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
13969         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
13970         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
13971         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
13972         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
13973         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
13974
13975 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13976
13977         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
13978         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13979         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13980         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13981         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
13982         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
13983         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
13984         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
13985         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
13986         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
13987         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
13988         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
13989         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13990         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13991         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13992         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13993         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13994         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13995         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13996         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13997         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13998         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13999         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14000         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14001         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14002         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14003         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14004         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14005         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14006         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14007         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14008         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14009         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14010         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14011         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14012         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14013         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14014         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14015         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14016         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14017         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14018         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14019         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14020
14021 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14022
14023         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
14024         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14025         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14026         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14027         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14028         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
14029         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14030         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
14031         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14032         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14033         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14034         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
14035         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
14036         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
14037         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
14038         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
14039         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
14040         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
14041         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
14042         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
14043         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
14044         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
14045         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
14046         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
14047         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14048         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
14049         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
14050         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
14051         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14052         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
14053         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
14054         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
14055         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
14056         * sysdeps/x86_64/multiarch/memset.S: Likewise.
14057         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
14058         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
14059         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
14060         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
14061         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
14062         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
14063         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
14064         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
14065         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
14066
14067 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14068
14069         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
14070         (dl_platform_init): Call init_cpu_features.
14071         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
14072         * sysdeps/i386/i686/cacheinfo.c
14073         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
14074         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
14075         * sysdeps/i386/i686/multiarch/Versions: Removed.
14076         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
14077         Removed.
14078         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
14079         * sysdeps/unix/sysv/linux/x86/Makefile
14080         (libpthread-sysdep_routines): Remove init-arch.
14081         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
14082         <sysdeps/x86_64/dl-procinfo.c> instead of
14083         sysdeps/generic/dl-procinfo.c>.
14084         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
14085         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
14086         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
14087         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
14088         [$(subdir) == elf] (tests-static): Add
14089         tst-get-cpu-features-static.
14090         * sysdeps/x86/Versions: New file.
14091         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
14092         * sysdeps/x86/cpu-features.c: Likewise.
14093         * sysdeps/x86/cpu-features.h: Likewise.
14094         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
14095         * sysdeps/x86/libc-start.c: Likewise.
14096         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
14097         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
14098         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
14099         * sysdeps/x86_64/dl-procinfo.c: Likewise.
14100         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
14101         Assume USE_MULTIARCH is defined and don't check it.
14102         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
14103         (is_amd): Likewise.
14104         (max_cpuid): Likewise.
14105         (intel_check_word): Likewise.
14106         (__cache_sysconf): Don't call __init_cpu_features.
14107         (__x86_preferred_memory_instruction): Removed.
14108         (init_cacheinfo): Don't call __init_cpu_features. Replace
14109         __cpu_features with GLRO(dl_x86_cpu_features).
14110         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
14111         (dl_platform_init): Call init_cpu_features.
14112         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
14113         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
14114         * sysdeps/x86_64/multiarch/Versions: Removed.
14115         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
14116         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
14117         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
14118         Removed.
14119         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
14120
14121 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
14122
14123         [BZ #18820]
14124         * libio/Makefile (test-fmemopen-mem): New test.
14125         * libio/test-fmemopen.c (do_bz18820): New test.
14126         * libio/fmemopen.c (__fmemopen): Fix memory leak.
14127         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
14128
14129 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
14130
14131         [BZ #16734]
14132         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
14133         (FREE_BUF): Delete.
14134         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
14135         * libio/genops.c (_IO_setb): Use malloc and free directly.
14136         (_IO_default_doallocate, _IO_default_finish): Likewise.
14137         ( _IO_unbuffer_all): Likewise.
14138         ( libc_freeres_fn): Likewise.
14139         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
14140         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
14141         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
14142         (_IO_wdefault_doallocate): Likewise.
14143
14144 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
14145
14146         [BZ #18086]
14147         * sysdeps/posix/nice.c (nice): Restore old errno.
14148         * posix/tst-nice.c (do_test): Add test for BZ #18086.
14149
14150 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
14151
14152         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
14153
14154 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14155
14156         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
14157         __bcopy and add a weak_alias to bcopy.
14158         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
14159         for static build.
14160
14161         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
14162         cleanup macro usage.
14163         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
14164         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
14165         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
14166         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
14167         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
14168         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
14169         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
14170         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
14171         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
14172         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
14173         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
14174         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
14175         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
14176         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
14177         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
14178         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
14179         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
14180         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
14181         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
14182
14183         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
14184         libc_hidden_def.
14185         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
14186
14187         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
14188         (sysdep_routines): Add strstr-ppc64.
14189         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
14190
14191 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
14192
14193         [BZ #18778]
14194         * elf/Makefile (tests): Add Add tst-nodelete2.
14195         (modules-names): Add tst-nodelete2mod.
14196         (tst-nodelete2mod.so-no-z-defs): New.
14197         ($(objpfx)tst-nodelete2): Likewise.
14198         ($(objpfx)tst-nodelete2.out): Likewise.
14199         (LDFLAGS-tst-nodelete2): Likewise.
14200         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
14201         out of loop through all loaded libraries.
14202         * elf/tst-nodelete2.c: New file.
14203         * elf/tst-nodelete2mod.c: Likewise.
14204         * elf/tst-znodelete-zlib.cc: Delete.
14205
14206 2015-08-11  Andreas Schwab  <schwab@suse.de>
14207
14208         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
14209         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
14210         (__openat64_nocancel): Likewise.
14211
14212 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
14213
14214         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
14215         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
14216         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
14217         * math/auto-libm-test-out: Regenerated.
14218         * sysdeps/i386/fpu/libm-test-ulps: Update.
14219         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14220
14221 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
14222
14223         [BZ #18790]
14224         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
14225         threshold for returning +/- 1.
14226         * math/auto-libm-test-in: Add more tests of tanh.
14227         * math/auto-libm-test-out: Regenerated.
14228         * sysdeps/i386/fpu/libm-test-ulps: Update.
14229
14230 2015-08-10  Andreas Schwab  <schwab@suse.de>
14231
14232         [BZ #18781]
14233         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
14234         MORE_OFLAGS to oflag.
14235         * io/test-lfs.c (do_test): Test openat64.
14236
14237 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
14238
14239         [BZ #18789]
14240         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
14241         smaller threshold for returning the argument.
14242         * math/auto-libm-test-in: Add more tests of sinh.
14243         * math/auto-libm-test-out: Regenerated.
14244         * sysdeps/i386/fpu/libm-test-ulps: Update.
14245
14246 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
14247
14248         [BZ #18674]
14249         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
14250         break.
14251
14252 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
14253
14254         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
14255         (generated): Don't add $(addprefix z.,$(tzfiles)).
14256
14257 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14258
14259         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
14260         * scripts/sysd-rules.awk: Likewise.
14261
14262 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14263
14264         * iconvdata/tst-tables.sh: Change echo -n to printf.
14265         * nss/db-Makefile: Likewise.
14266         * posix/tst-getconf.sh: Likewise.
14267         * stdio-common/tst-unbputc.sh: Likewise.
14268
14269 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14270
14271         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
14272         MADV_*_PAGES defines behind this feature check.
14273
14274 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
14275
14276         [BZ #18480]
14277         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
14278         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
14279         Define.
14280         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
14281         LOAD_REGS_5, LOAD_REGS_6): Update.
14282         (INTERNAL_SYSCALL): Update using new LOAD defines.
14283         (INTERNAL_SYSCALL_NCS): Likewise.
14284         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
14285
14286 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
14287
14288         [BZ #16734]
14289         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
14290
14291 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
14292
14293         [BZ #17905]
14294         * catgets/Makefile (tst-catgets-mem): New test.
14295         * catgets/catgets.c (catopen): Don't use unbounded alloca.
14296         * catgets/open_catalog.c (__open_catalog): Likewise.
14297         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
14298
14299 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
14300
14301         [BZ #18787]
14302         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
14303         clobber registers.
14304         (atomic_compare_and_exchange_val_acq): Use register asms to assign
14305         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
14306         Cast return to __typeof (oldval).
14307
14308 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
14309
14310         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
14311         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
14312         and delete sys/syscall.h include.
14313
14314 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
14315
14316         [BZ #16517]
14317         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
14318         (tan): Force underflow exception for arguments with small absolute
14319         value.
14320         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
14321         (__kernel_tanf): Force underflow exception for arguments with
14322         small absolute value.
14323         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
14324         (__kernel_tanl): Force underflow exception for arguments with
14325         small absolute value.
14326         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
14327         (__kernel_tanl): Force underflow exception for arguments with
14328         small absolute value.
14329         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
14330         (__kernel_tanl): Force underflow exception for arguments with
14331         small absolute value.
14332         * math/auto-libm-test-in: Add more tests of tan.
14333         * math/auto-libm-test-out: Regenerated.
14334
14335 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14336
14337         Fix sysdeps/i386/fpu/s_scalbn.S build
14338
14339         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
14340
14341 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
14342
14343         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14344
14345 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14346
14347         Fix gcrt0.o compilation
14348
14349         When static-start-installed-name is different from
14350         start-installed-name, we must not use the shared objects.
14351
14352         * csu/Makefile
14353         (extra-objs): Add gmon-start.o when building shared library and
14354         $(static-start-installed-name) is different from
14355         $(start-installed-name).
14356         $(objpfx)g$(static-start-installed-name): When building shared
14357         library and $(static-start-installed-name) is different from
14358         $(static-start-installed-name), revert to non-shared rule,
14359         i.e. using $(objpfx)% and gmon-start.o.
14360
14361 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
14362
14363         [BZ #16519]
14364         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
14365         (__ieee754_sinh): Force underflow exception for arguments with
14366         small absolute value.
14367         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
14368         (__ieee754_sinhf): Force underflow exception for arguments with
14369         small absolute value.
14370         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
14371         (__ieee754_sinhl): Force underflow exception for arguments with
14372         small absolute value.
14373         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
14374         (__ieee754_sinhl): Force underflow exception for arguments with
14375         small absolute value.
14376         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
14377         (__ieee754_sinhl): Force underflow exception for arguments with
14378         small absolute value.
14379         * math/auto-libm-test-in: Add more tests of sinh.
14380         * math/auto-libm-test-out: Regenerated.
14381         * sysdeps/i386/fpu/libm-test-ulps: Update.
14382
14383 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14384
14385         * libio/oldfileops.c: Include unistd.h.
14386
14387 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
14388
14389         * stdlib/isomac.c: Include ctype.h.
14390
14391 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
14392
14393         * dirent/tst-seekdir.c (main): Converted to ...
14394         (do_test): ... this.
14395         (TEST_FUNCTION): New macro.
14396         Include test-skeleton.c.
14397         * elf/tst-dlmodcount.c (main): Converted to ...
14398         (do_test): ... this.
14399         (TEST_FUNCTION): New macro.
14400         Include test-skeleton.c.
14401         * elf/tst-order-main.c (main): Converted to ...
14402         (do_test): ... this.
14403         (TEST_FUNCTION): New macro.
14404         Include test-skeleton.c.
14405         * elf/tst-pie2.c (main): Converted to ...
14406         (do_test): ... this.
14407         (TEST_FUNCTION): New macro.
14408         Include test-skeleton.c.
14409         * inet/tst-ether_aton.c (main): Converted to ...
14410         (do_test): ... this.
14411         (TEST_FUNCTION): New macro.
14412         Include test-skeleton.c.
14413         * misc/tst-mntent.c (main): Converted to ...
14414         (do_test): ... this.
14415         (TEST_FUNCTION): New macro.
14416         Include test-skeleton.c.
14417         * misc/tst-tsearch.c (main): Converted to ...
14418         (do_test): ... this.
14419         (TEST_FUNCTION): New macro.
14420         Include test-skeleton.c.
14421         * posix/tst-regexloc.c (main): Converted to ...
14422         (do_test): ... this.
14423         (TEST_FUNCTION): New macro.
14424         Include test-skeleton.c.
14425         * resolv/tst-aton.c (main): Converted to ...
14426         (do_test): ... this.
14427         (TEST_FUNCTION): New macro.
14428         Include test-skeleton.c.
14429         * stdio-common/test-fwrite.c (main): Converted to ...
14430         (do_test): ... this.
14431         (TEST_FUNCTION): New macro.
14432         Include test-skeleton.c.
14433         * stdio-common/tst-ferror.c (main): Converted to ...
14434         (do_test): ... this.
14435         (TEST_FUNCTION): New macro.
14436         Include test-skeleton.c.
14437         * stdio-common/tst-printf.c (main): Converted to ...
14438         (do_test): ... this.
14439         (TEST_FUNCTION): New macro.
14440         Include test-skeleton.c.
14441         * stdio-common/tst-printfsz.c (main): Converted to ...
14442         (do_test): ... this.
14443         (TEST_FUNCTION): New macro.
14444         Include test-skeleton.c.
14445         * stdlib/tst-strtod.c (main): Converted to ...
14446         (do_test): ... this.
14447         (TEST_FUNCTION): New macro.
14448         Include test-skeleton.c.
14449         * string/tst-strlen.c (main): Converted to ...
14450         (do_test): ... this.
14451         (TEST_FUNCTION): New macro.
14452         Include test-skeleton.c.
14453         * string/tst-svc.c (main): Converted to ...
14454         (do_test): ... this.
14455         (TEST_FUNCTION): New macro.
14456         Include test-skeleton.c.
14457         * time/tst-strptime.c (main): Converted to ...
14458         (do_test): ... this.
14459         (TEST_FUNCTION): New macro.
14460         Include test-skeleton.c.
14461         * timezone/tst-timezone.c (main): Converted to ...
14462         (do_test): ... this.
14463         (TEST_FUNCTION): New macro.
14464         Include test-skeleton.c.
14465
14466 2015-08-05  Zack Weinberg  <zackw@panix.com>
14467
14468         * misc/regexp.h: Update comments.
14469
14470 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
14471
14472         [BZ #18635]
14473         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
14474         before return label.
14475
14476 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14477
14478         [BZ #18661]
14479         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
14480         when calling __errno_location.
14481         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
14482         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
14483
14484 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14485
14486         [BZ #18661]
14487         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
14488         (__lll_timedwait_tid): Align stack to 16 bytes when calling
14489         __gettimeofday.
14490
14491 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14492
14493         [BZ #18661]
14494         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
14495         (__start_context): Don't use pop to restore %rdi so that stack
14496         is aligned to 16 bytes when calling __setcontext.
14497
14498 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14499
14500         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
14501         only for libc.
14502         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
14503
14504 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14505
14506         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
14507         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
14508         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
14509
14510 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14511
14512         * string/memccpy.c (memccpy):
14513         Improve performance by using memchr/memcpy/__mempcpy.
14514
14515 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14516
14517         * string/strncpy.c (strncpy):
14518         Improve performance by using __strnlen/memcpy.
14519
14520 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14521
14522         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
14523         Optimize to avoid an unnecessary FPCR read.
14524
14525 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14526
14527         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
14528         Optimize to reduce FPCR/FPSR accesses.
14529
14530 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14531
14532         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
14533         dead->data[category] != NULL.
14534
14535 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
14536
14537         [BZ #18647]
14538         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
14539         and |x| close to 1, use absolute value of x when computing log.
14540         * math/auto-libm-test-in: Add more tests of pow.
14541         * math/auto-libm-test-out: Regenerated.
14542
14543 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14544
14545         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
14546         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
14547         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
14548
14549 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
14550
14551         [BZ #18525]
14552         * locales/km_KH: Remove timezone definition.
14553         * locales/lo_LA: Likewise.
14554         * locales/my_MM: Likewise.
14555         * locales/nan_TW@latin: Likewise.
14556         * locales/th_TH: Likewise.
14557         * locales/uk_UA: Likewise.
14558
14559 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
14560
14561         [BZ #18265]
14562         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
14563         (wcsncat): Likewise.
14564         (wcscmp): Likewise.
14565         (wcsncmp): Likewise.
14566
14567 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14568
14569         * test-skeleton.c (usage): New function.
14570         (main): Call usage when opt is '?'.
14571
14572 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14573
14574         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
14575         before first use.
14576
14577 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14578
14579         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
14580         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
14581         in there too.
14582
14583 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
14584
14585         * version.h (RELEASE): Set to "development".
14586         (VERSION): Set to "2.22.90"
14587
14588         * version.h (RELEASE): Set to "stable".
14589         (VERSION): Set to "2.22"
14590         * include/features.h (__GLIBC_MINOR__): Set to 22.
14591
14592 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
14593
14594         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
14595         Restructure macro to avoid "value computed is not used" warning.
14596         (atomic_compare_and_exchange_val_acq): Likewise.
14597
14598 2015-08-04  Andreas Schwab  <schwab@suse.de>
14599
14600         [BZ #18635]
14601         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
14602         ret.
14603         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
14604
14605 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
14606
14607         * po/pl.po: Updated translation.
14608         * po/uk.po: Likewise.
14609         * po/fi.po: Likewise.
14610         * po/ko.po: Likewise.
14611         * po/ru.po: Likewise.
14612         * po/vi.po: Likewise.
14613
14614 2015-07-31  Zack Weinberg  <zackw@panix.com>
14615
14616         [BZ #18681]
14617         * regexp.h: Add unconditional #warning stating that this header
14618         will be removed soon.  Revise banner comment to match.
14619         (compile): Consistently use ERROR instead of RETURN to report
14620         errors (partial fix for bz#18681).
14621         * regexp.c: Don't include regexp.h. Remove some unnecessary
14622         declarations.
14623
14624 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
14625
14626         * po/libc.pot: Regenerated.
14627
14628 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
14629
14630         [BZ #18740]
14631         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
14632         float-vlen4-arch-ext-cflags): Removed.
14633         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
14634         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
14635
14636 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14637
14638         [BZ #14113]
14639         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
14640         aligned to __aligned__.
14641         (pthread_cond_t, pthread_rwlock_t): Likewise.
14642
14643 2015-07-30  Torvald Riegel  <triegel@redhat.com>
14644
14645         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
14646
14647 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14648
14649         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
14650         (struct sigaction): Change sa_flags from a long to an int, and add
14651         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
14652
14653 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14654
14655         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
14656         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
14657         sysdeps/generic/sysdep.h include.
14658         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
14659         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
14660         sysdeps/hppa/sysdep.h.
14661         (ENTRY, PSEUDO): Undefine before defining.
14662
14663 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14664
14665         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
14666         from scratch to use INTERNAL_SYSCALL.
14667
14668 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14669
14670         [BZ #18078]
14671         * scripts/check-localplt.awk: Support alternate relocations.
14672         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
14673         sections.
14674         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
14675         malloc entries with + REL R_386_GLOB_DAT.
14676         * sysdeps/x86_64/localplt.data: New file.
14677
14678 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
14679
14680         [BZ #18731]
14681         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
14682         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
14683         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
14684
14685 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14686
14687         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
14688
14689 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14690
14691         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
14692         directly in terms of __sync_fetch_and_add and delete (int) cast.
14693
14694 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14695
14696         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
14697         the -D_ASM_IA64_CURRENT_H flag.
14698
14699 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14700
14701         [BZ #18641]
14702         * pwd/pwd.h (putpwent): Delete __nonnull markings.
14703
14704 2015-07-27  Andreas Schwab  <schwab@suse.de>
14705
14706         * conform/conformtest.pl (checknamespace): Filter out string
14707         literals while tokenizing.
14708
14709 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14710
14711         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14712         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
14713         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14714
14715 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14716
14717         * nptl/tst-join7mod.c: Add #include <string.h>.
14718
14719 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14720
14721         * sysdeps/nios2/libm-test-ulps: Update.
14722
14723 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14724
14725         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
14726         Fix order of arguments to the rt_sigprocmask syscall.
14727         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
14728         Likewise.
14729
14730 2015-07-24  Roland McGrath  <roland@hack.frob.com>
14731
14732         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
14733
14734 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14735
14736         [BZ #18457]
14737         * nptl/Makefile (tests): New test case tst-join7.
14738         (modules-names): New test case module tst-join7mod.
14739         * nptl/tst-join7.c: New file.
14740         * nptl/tst-join7mod.c: New file.
14741         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
14742         all translation units in libc.so, libpthread.so and rtld.
14743
14744 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14745
14746         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14747
14748 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
14749
14750         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
14751         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14752         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14753         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14754         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14755         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14756         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14757         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14758         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14759         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14760         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14761         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14762         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
14763         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
14764         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
14765         implementation.
14766
14767 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14768
14769         [BZ #17711]
14770         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14771         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
14772         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14773         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14774         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
14775         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14776
14777 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14778
14779         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
14780         instead of just saying load lock in the comments.
14781
14782 2015-07-23  Roland McGrath  <roland@hack.frob.com>
14783
14784         * sysdeps/unix/Subdirs: Moved ...
14785         * sysdeps/posix/Subdirs: ... here.
14786         * login/pty.h (struct termios, struct winsize): Add forward decls.
14787         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
14788         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
14789         * sysdeps/arm/nacl/libc.abilist: Updated.
14790         * sysdeps/nacl/libutil.abilist: New file.
14791
14792         * bits/signum.h: Update comments to mention 1003.1-2013 too.
14793         (SIGWINCH): New macro.
14794
14795         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
14796         * sysdeps/arm/nacl/libc.abilist: Add it.
14797
14798 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14799
14800         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
14801
14802 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14803
14804         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14805         Swap __glibc_reserved0 and sa_flags order.
14806
14807 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14808
14809         [BZ #18657]
14810         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
14811         are pending TLS destructor calls.
14812         * include/link.h (struct link_map): Add concurrency note for
14813         L_TLS_DTOR_COUNT.
14814         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14815         Don't touch the link map flag.  Atomically increment
14816         l_tls_dtor_count.
14817         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
14818         Avoid taking the load lock and don't touch the link map flag.
14819         * stdlib/tst-tls-atexit-nodelete.c: New test case.
14820         * stdlib/Makefile (tests): Use it.
14821         * stdlib/tst-tls-atexit.c (do_test): dlopen
14822         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
14823         to allow tst-tls-atexit-nodelete test case to use it.
14824
14825 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14826
14827         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
14828         to bits/types.h.
14829         (msgqnum_t): New typedef.
14830         (msglen_t): Likewise.
14831         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
14832         and msg_qbytes type to msglen_t.
14833
14834 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14835
14836         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
14837         pad0 to __glibc_reserved0.
14838         (struct stat64): Likewise.
14839
14840 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14841
14842         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14843         Change sa_flags from a long to an int and add __glibc_reserved0 before
14844         it for padding.
14845
14846 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14847
14848         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
14849         anonymous by deleting "siginfo" name.
14850
14851 2015-07-21  Roland McGrath  <roland@hack.frob.com>
14852
14853         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
14854         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
14855         rather than __nacl_irt_filename.
14856         * sysdeps/nacl/xstat.c (__xstat): Likewise.
14857
14858         * NEWS: New item for arm-nacl port.
14859         * sysdeps/arm/nacl/libc.abilist: New file.
14860         * sysdeps/nacl/ld.abilist: New file.
14861         * sysdeps/nacl/libBrokenLocale.abilist: New file.
14862         * sysdeps/nacl/libanl.abilist: New file.
14863         * sysdeps/nacl/libcrypt.abilist: New file.
14864         * sysdeps/nacl/libdl.abilist: New file.
14865         * sysdeps/nacl/libm.abilist: New file.
14866         * sysdeps/nacl/libpthread.abilist: New file.
14867         * sysdeps/nacl/libresolv.abilist: New file.
14868         * sysdeps/nacl/librt.abilist: New file.
14869
14870 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
14871
14872         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
14873         __startcontext to initialize the new context.
14874         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
14875         up CFI directive to forbid further backtracing.
14876
14877 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
14878
14879         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
14880         reference.
14881         * charmaps/ANSI_X3.4-1968: Likewise.
14882         * charmaps/BS_4730: Likewise.
14883         * charmaps/BS_VIEWDATA: Likewise.
14884         * charmaps/CP1250: Likewise.
14885         * charmaps/CP1251: Likewise.
14886         * charmaps/CP1252: Likewise.
14887         * charmaps/CP1253: Likewise.
14888         * charmaps/CP1254: Likewise.
14889         * charmaps/CP1255: Likewise.
14890         * charmaps/CP1256: Likewise.
14891         * charmaps/CSN_369103: Likewise.
14892         * charmaps/EBCDIC-DK-NO: Likewise.
14893         * charmaps/GB_1988-80: Likewise.
14894         * charmaps/GREEK-CCITT: Likewise.
14895         * charmaps/GREEK7: Likewise.
14896         * charmaps/INIS-8: Likewise.
14897         * charmaps/ISIRI-3342: Likewise.
14898         * charmaps/ISO_2033-1983: Likewise.
14899         * charmaps/ISO_5427-EXT: Likewise.
14900         * locales/POSIX: Likewise.
14901         * locales/ar_SA: Likewise.
14902         * locales/be_BY: Likewise.
14903         * locales/be_BY@latin: Likewise.
14904         * locales/ca_ES: Likewise.
14905         * locales/cs_CZ: Likewise.
14906         * locales/da_DK: Likewise.
14907         * locales/de_BE: Likewise.
14908         * locales/de_CH: Likewise.
14909         * locales/de_LU: Likewise.
14910         * locales/en_AU: Likewise.
14911         * locales/en_BW: Likewise.
14912         * locales/en_CA: Likewise.
14913         * locales/en_DK: Likewise.
14914         * locales/en_GB: Likewise.
14915         * locales/en_IE: Likewise.
14916         * locales/en_NZ: Likewise.
14917         * locales/en_ZA: Likewise.
14918         * locales/en_ZW: Likewise.
14919         * locales/es_AR: Likewise.
14920         * locales/es_BO: Likewise.
14921         * locales/es_CL: Likewise.
14922         * locales/es_CO: Likewise.
14923         * locales/es_DO: Likewise.
14924         * locales/es_EC: Likewise.
14925         * locales/es_ES: Likewise.
14926         * locales/es_HN: Likewise.
14927         * locales/es_MX: Likewise.
14928         * locales/es_PA: Likewise.
14929         * locales/es_PE: Likewise.
14930         * locales/es_PY: Likewise.
14931         * locales/es_SV: Likewise.
14932         * locales/es_US: Likewise.
14933         * locales/es_UY: Likewise.
14934         * locales/es_VE: Likewise.
14935         * locales/et_EE: Likewise.
14936         * locales/fa_IR: Likewise.
14937         * locales/fo_FO: Likewise.
14938         * locales/fr_CA: Likewise.
14939         * locales/fr_CH: Likewise.
14940         * locales/gv_GB: Likewise.
14941         * locales/he_IL: Likewise.
14942         * locales/hr_HR: Likewise.
14943         * locales/id_ID: Likewise.
14944         * locales/is_IS: Likewise.
14945         * locales/it_CH: Likewise.
14946         * locales/iw_IL: Likewise.
14947         * locales/kl_GL: Likewise.
14948         * locales/ko_KR: Likewise.
14949         * locales/kw_GB: Likewise.
14950         * locales/lg_UG: Likewise.
14951         * locales/lt_LT: Likewise.
14952         * locales/lv_LV: Likewise.
14953         * locales/mi_NZ: Likewise.
14954         * locales/nhn_MX: Likewise.
14955         * locales/nl_BE: Likewise.
14956         * locales/pl_PL: Likewise.
14957         * locales/sk_SK: Likewise.
14958         * locales/sl_SI: Likewise.
14959         * locales/sv_FI: Likewise.
14960         * locales/tl_PH: Likewise.
14961         * locales/tr_TR: Likewise.
14962         * locales/vi_VN: Likewise.
14963
14964 2015-07-21  Khem Raj  <raj.khem@gmail.com>
14965
14966         [BZ #17475]
14967         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
14968         of tu_IN and bh_IN.
14969
14970 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
14971
14972         [BZ #18694]
14973         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
14974         bits/wordsize.h.
14975         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
14976
14977 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14978
14979         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
14980         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
14981         (spawn_thread): New function.
14982         (load): Rename to reg_dtor_and_close.  Move dlopen to...
14983         (do_test): ... here.  Use IS_LOADED to test for its
14984         availability.
14985
14986 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
14987
14988         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
14989
14990 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
14991
14992         [BZ #18696]
14993         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
14994         si_addr_bnd.
14995         (si_lower): New.
14996         (si_upper): Likewise.
14997
14998 2015-07-16  David S. Miller  <davem@davemloft.net>
14999
15000         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
15001
15002 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15003
15004         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
15005         buffer.
15006         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
15007         fail output information.
15008
15009 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
15010
15011         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
15012         and strstr-ppc64..
15013         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
15014         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
15015         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
15016         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
15017         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
15018
15019 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
15020
15021         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
15022         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
15023         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
15024         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
15025
15026 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
15027
15028         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
15029         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
15030         rtld_hidden_proto.
15031         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
15032
15033 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
15034
15035         * tst-nodelete-opened.c (do_test): Add comment to clarify how
15036         the test can fail.
15037
15038         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
15039
15040         [BZ #18676]
15041         * elf/tst-nodelete-opened.c: New test case.
15042         * elf/tst-nodelete-opened-lib.c: New test case module.
15043         * elf/Makefile (tests, modules-names): Use them.
15044         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
15045         early.
15046
15047 2015-07-15  David S. Miller  <davem@davemloft.net>
15048
15049         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
15050         futex-intenal.h
15051         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
15052         * sysdeps/sparc/sparc64/Makefile: Likewise.
15053         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15054         Remove space from macro define.
15055         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
15056
15057 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
15058
15059         [BZ #17475]
15060         * locale/iso-639.def: Update Bhili and Tulu language codes as
15061         per iso639-3.
15062
15063 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
15064
15065         * elf/tst-leaks1.c (main): Converted to ...
15066         (do_test): ... this.
15067         (TEST_FUNCTION): New macro.
15068         Include test-skeleton.c.
15069         * localedata/tst-langinfo.c (main): Converted to ...
15070         (do_test): ... this.
15071         (TEST_FUNCTION): New macro.
15072         Include test-skeleton.c.
15073         * math/test-fpucw.c (main): Converted to ...
15074         (do_test): ... this.
15075         (TEST_FUNCTION): New macro.
15076         Include test-skeleton.c.
15077         * math/test-tgmath.c (main): Converted to ...
15078         (do_test): ... this.
15079         (TEST_FUNCTION): New macro.
15080         Include test-skeleton.c.
15081         * math/test-tgmath2.c (main): Converted to ...
15082         (do_test): ... this.
15083         (TEST_FUNCTION): New macro.
15084         Include test-skeleton.c.
15085         * setjmp/tst-setjmp.c (main): Converted to ...
15086         (do_test): ... this.
15087         (TEST_FUNCTION): New macro.
15088         Include test-skeleton.c.
15089         * stdio-common/tst-sscanf.c (main): Converted to ...
15090         (do_test): ... this.
15091         (TEST_FUNCTION): New macro.
15092         Include test-skeleton.c.
15093         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
15094         (do_test): ... this.
15095         (TEST_FUNCTION): New macro.
15096         Include test-skeleton.c.
15097
15098         * elf/tst-audit9.c (main): Converted to ...
15099         (do_test): ... this.
15100         (TEST_FUNCTION): New macro.
15101         Include test-skeleton.c.
15102
15103 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
15104
15105         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
15106
15107 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
15108
15109         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
15110         New variable.
15111
15112 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
15113
15114         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15115
15116 2015-07-14  Roland McGrath  <roland@hack.frob.com>
15117
15118         * sysdeps/generic/dl-fileid.h: New file.
15119         * sysdeps/posix/dl-fileid.h: New file.
15120         * sysdeps/nacl/dl-fileid.h: New file.
15121         * include/link.h: Include <dl-fileid.h>.
15122         (struct link_map): Replace l_dev and l_ino with l_file_id.
15123         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
15124         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
15125         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
15126
15127 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15128
15129         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
15130
15131 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15132
15133         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
15134         Add iff $CXX is set.
15135         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
15136         Likewise.
15137         (tst-nodelete-zmodiff): Likewise.
15138         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
15139
15140 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15141
15142         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
15143
15144 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
15145
15146         * sysdeps/aarch64/fpu/math_private.h
15147         (define math_opt_barrier): Add AArch64 version.
15148         (math_force_eval): Likewise.
15149
15150 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
15151
15152         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
15153
15154 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
15155
15156         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
15157         %ld with %jd and cast to intmax_t.
15158         (do_test_length_zero): Likewise.
15159
15160 2015-07-10  Roland McGrath  <roland@hack.frob.com>
15161
15162         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
15163
15164 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
15165
15166         * sysdeps/tile/libm-test-ulps: Regenerated.
15167
15168         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
15169         Comment out the whole function, not just its body.
15170
15171 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15172
15173         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
15174         locks.
15175
15176         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
15177
15178 2015-07-10  Torvald Riegel  <triegel@redhat.com>
15179
15180         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
15181         (sem_assume_only_signals_cause_futex_EINTR): Remove.
15182
15183 2015-07-10  Torvald Riegel  <triegel@redhat.com>
15184
15185         * sysdeps/nptl/futex-internal.h: New file.
15186         * sysdeps/nacl/futex-internal.h: New file.
15187         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
15188         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
15189         error checking.
15190         (setxid_unmark_thread): Likewise.
15191         (__nptl_setxid): Likewise.
15192         (__wait_lookup_done): Likewise.
15193         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
15194         * nptl/nptl-init.c (sighandler_setxid): Likewise.
15195         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
15196         * nptl/pthread_once.c (clear_once_control): Likewise.
15197         (__pthread_once_slow): Likewise.
15198         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
15199         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
15200         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
15201         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15202         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
15203         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
15204         Likewise.
15205         (__pthread_rwlock_rdlock): Likewise.
15206         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
15207         Likewise.
15208         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
15209         Likewise.
15210         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
15211         Likewise.
15212         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
15213         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
15214         Likewise.
15215         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
15216         __ASSUME_PRIVATE_FUTEX check.
15217         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
15218         Check that shared futexes are supported.
15219         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
15220         wrappers with error checking.
15221         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
15222         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
15223         * nptl/pthread_barrierattr_setpshared.c
15224         (pthread_barrierattr_setpshared): Check that shared futexes are
15225         supported.
15226         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
15227         Likewise.
15228         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
15229         Likewise.
15230         * nptl/sem_init.c (futex_private_if_supported): Remove.
15231         (__new_sem_init): Adapt and check that shared futexes are supported.
15232         * nptl/sem_open.c (sem_open): Likewise.
15233         * nptl/sem_post.c (futex_wake): Remove.
15234         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
15235         (do_futex_wait): Use futex wrappers with error checking.
15236         * nptl/sem_wait.c: Include lowlevellock.h.
15237         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
15238         Use futex_supports_pshared.
15239         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
15240         Use futex wrappers with error checking.
15241         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
15242         Likewise.
15243         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
15244         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
15245         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
15246         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
15247         (futex_wake): Likewise.
15248         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
15249         (do_futex_wait): Use futex wrappers with error checking.
15250         (__new_sem_wait_slow): Update EINTR handling.
15251         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
15252
15253 2015-07-09  Martin Sebor  <msebor@redhat.com>
15254
15255         [BZ #18435]
15256         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15257         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
15258         * nptl/Makefile (test-xfail-tst-once5): Define.
15259
15260 2015-07-09  Roland McGrath  <roland@hack.frob.com>
15261
15262         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
15263         * elf/dl-minimal.c: For readability, reorder some definitions and
15264         introduce more page breaks.  Include <stdio.h>.
15265         (__libc_fatal): New function.
15266
15267         * include/unistd.h: Add rtld_hidden_proto for _exit.
15268         * posix/_exit.c: Add rtld_hidden_def.
15269         * sysdeps/mach/hurd/_exit.c: Likewise.
15270         * sysdeps/nacl/_exit.c: Likewise.
15271         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
15272         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
15273
15274 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
15275
15276         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
15277         bndmov encoding with zero displacement.
15278
15279 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
15280             H.J. Lu  <hongjiu.lu@intel.com>
15281
15282         [BZ #18134]
15283         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
15284         * sysdeps/i386/configure: Regenerated.
15285         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
15286         (_dl_runtime_profile): Save and restore Intel MPX return bound
15287         registers when calling _dl_call_pltexit.  Add
15288         PRESERVE_BND_REGS_PREFIX before return.
15289         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
15290         (LRV_BND1_OFFSET): Likewise.
15291         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
15292         lrv_bnd1.
15293         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
15294         typo in bndmov encoding.
15295         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
15296         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
15297         branch instructions to preserve bounds.
15298
15299 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15300
15301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
15302         [GLIBC_2.22]: Add fmemopen.
15303
15304 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15305
15306         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
15307         returns an error, also try to use host port from __mach_host_self for
15308         the __vm_wire call.
15309         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
15310
15311 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15312
15313         [BZ #18400]
15314         [BZ #18648]
15315         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
15316         Fix pr_uid and pr_gid members.
15317         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
15318         definition to elf_greg_t.
15319
15320 2015-07-08  Roland McGrath  <roland@hack.frob.com>
15321
15322         [BZ #18383]
15323         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
15324         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
15325         * sysdeps/arm/configure: Regenerated.
15326         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
15327         (test-xfail-tst-tlsalign-static): Variable removed.
15328
15329         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
15330         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
15331         rather than explicit 'ln -s'.
15332
15333         * resolv/rpc/netdb.h: New file.
15334         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
15335
15336 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15337
15338         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
15339         length buffers.
15340         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
15341         test-skeleton.c.
15342
15343         [BZ #6544]
15344         [BZ #11216]
15345         [BZ #12836]
15346         [BZ #13151]
15347         [BZ #13152]
15348         [BZ #14292]
15349         * include/stdio.h (fmemopen): Remove hidden prototype.
15350         (__fmemopen): Add new hidden prototype.
15351         * libio/Makefile: Add oldfmemopen object.
15352         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
15353         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
15354         compliance.
15355         * libio/oldfmemopen.c: New file: old fmemopen implementation for
15356         symbol compatibility.
15357         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
15358         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
15359         fmemopen.
15360         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
15361         on append and read mode.
15362         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
15363         fmemopen.
15364         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
15365         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
15366         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
15367         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
15368         Likewise.
15369         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
15370         [GLIBC_2.22]: Likewise.
15371         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
15372         Likewise.
15373         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
15374         Likewise.
15375         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
15376         [GLIBC_2.22]: Likewise.
15377         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
15378         [GLIBC_2.22]: Likewise.
15379         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
15380         [GLIBC_2.22]: Likewise.
15381         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
15382         [GLIBC_2.22]: Likewise.
15383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
15384         [GLIBC_2.22]: Likewise.
15385         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
15386         [GLIBC_2.22]: Likewise.
15387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
15388         [GLIBC_2.22]: Likewise.
15389         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
15390         Likewise.
15391         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
15392         Likewise.
15393         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
15394         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
15395         [GLIBC_2.22]: Likewise.
15396         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
15397         [GLIBC_2.22]: Likewise.
15398         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
15399         [GLIBC_2.22]: Likewise.
15400         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
15401         [GLIBC_2.22]: Likewise.
15402         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
15403         Likewise.
15404         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
15405         Likewise.
15406         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
15407         Likewise.
15408         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
15409         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
15410
15411 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15412
15413         [BZ #18643]
15414         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
15415         IPV6_PATHMTU, and IPV6_DONTFRAG.
15416
15417 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
15418
15419         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
15420         and _IO_UNBUFFERED.
15421         * libio/oldfileops.c: Likewise.
15422         * libio/wfileops.c: Likewise.
15423
15424 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15425
15426         * nscd/selinux.c: Delete selinux/flask.h include.
15427
15428 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15429
15430         [BZ #18641]
15431         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
15432         (putpwent): Likewise.
15433         (getpwnam): Likewise.
15434         (getpwent_r): Likewise.
15435         (getpwuid_r): Likewise.
15436         (getpwnam_r): Likewise.
15437         (fgetpwent_r): Likewise.
15438
15439 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15440
15441         [BZ #18557]
15442         * inet/rcmd.c (__validuser2_sa): Check user first to
15443         short-circuit host check.
15444
15445 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
15446             Mikhail Ilin  <m.ilin@samsung.com>
15447
15448         [BZ #17833]
15449         * elf/Makefile (tests): Add tst-nodelete.
15450         (modules-names): Add tst-nodelete-uniquemod.
15451         (tst-nodelete-uniquemod.so-no-z-defs): New.
15452         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
15453         (tst-nodelete-zmod.so-no-z-defs): Likewise.
15454         ($(objpfx)tst-nodelete): Likewise.
15455         ($(objpfx)tst-nodelete.out): Likewise.
15456         (LDFLAGS-tst-nodelete): Likewise.
15457         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
15458         * elf/dl-close.c (_dl_close_worker): Add a parameter to
15459         implement forced object deletion.
15460         (_dl_close): Pass false to _dl_close_worker.
15461         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
15462         * elf/tst-nodelete.cc: New file.
15463         * elf/tst-nodeletelib.cc: Likewise.
15464         * elf/tst-znodeletelib.cc: Likewise.
15465         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
15466
15467 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15468
15469         [BZ #18508]
15470         * stdlib/Makefile ($(objpfx)tst-makecontext3):
15471         Depend on $(libdl).
15472         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
15473         is not called infinitely times.
15474         (backtrace_helper): New function.
15475         (trace_arg): New struct.
15476         (st1): Enlarge stack size.
15477         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
15478         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
15479         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
15480         Likewise.
15481
15482 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15483
15484         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15485
15486 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15487
15488         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
15489         Include sys/types.h instead of bits/types.h.
15490         Remove inclusion of bits/wordsize.h.
15491
15492 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15493
15494         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
15495         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
15496         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
15497         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
15498         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
15499         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
15500
15501 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15502
15503         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
15504         link-defines.sym.
15505         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
15506         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
15507         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
15508         and LR_SIZE.
15509         * sysdeps/i386/link-defines.sym: New file.
15510
15511 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15512
15513         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
15514         (modules-names): Add tst-auditmod3a tst-auditmod3b.
15515         ($(objpfx)tst-audit3): New rule.
15516         ($(objpfx)tst-audit3.out): Likewise.
15517         * sysdeps/i386/tst-audit3.c: New file.
15518         * sysdeps/i386/tst-audit3.h: Likewise.
15519         * sysdeps/i386/tst-auditmod3a.c: Likewise.
15520         * sysdeps/i386/tst-auditmod3b.c: Likewise.
15521
15522 2015-07-07  Torvald Riegel  <triegel@redhat.com>
15523
15524         [BZ #18633]
15525         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
15526         pointer in C code.
15527         (__strcat_c): Likewise.
15528         (__strcat_g): Likewise.
15529
15530 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
15531
15532         [BZ #18592]
15533         * misc/sbrk.c: Set errno to ENOMEM on overflow.
15534
15535 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15536
15537         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
15538         New function.  (__ieee754_sqrtf): New function.
15539         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
15540         New function.
15541         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
15542         New function.
15543
15544 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15545
15546         * sysdeps/ieee754/support.c: Remove unused file.
15547
15548 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15549
15550         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
15551         registers instead of d ones so the layout is kernel abi compatible.
15552         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
15553         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
15554         Likewise.
15555
15556 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15557
15558         * sysdeps/aarch64/libm-test-ulps: Regenerated.
15559
15560 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15561
15562         [BZ #18619]
15563         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
15564         and return argument in case of subnormal argument.
15565
15566 2015-07-01  Martin Sebor  <msebor@redhat.com>
15567
15568         [BZ #18435]
15569         * nptl/Makefile: Add tst-once5.cc.
15570         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15571         Remove macro redefinitions.
15572         * nptl/tst-once5.cc: New test.
15573
15574 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15575
15576         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
15577
15578         * sysdeps/arm/libm-test-ulps: Regenerated.
15579
15580         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
15581         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15582
15583 2015-06-30  Torvald Riegel  <triegel@redhat.com>
15584
15585         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
15586         lll_lock_wait_private and lll_futex_wake probes.
15587
15588         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15589         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
15590         Likewise.
15591         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
15592         atomic_spin_nop.
15593         * sysdeps/x86_64/bits/atomic.h: Likewise.
15594         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
15595         to atomic_spin_nop and move ...
15596         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15597         ... here and ...
15598         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
15599         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
15600         atomic_spin_nop instead of BUSY_WAIT_NOP.
15601         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
15602         Likewise.
15603         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
15604         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15605         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
15606         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
15607         instead of atomic_delay.
15608
15609 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
15610
15611         [BZ #18613]
15612         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
15613         X_ADJ not X when adjusting exponent.
15614         (__ieee754_gamma_r): Do intermediate computations in
15615         round-to-nearest then adjust overflowing and underflowing results
15616         as needed.
15617         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
15618         of X_ADJ not X when adjusting exponent.
15619         (__ieee754_gammaf_r): Do intermediate computations in
15620         round-to-nearest then adjust overflowing and underflowing results
15621         as needed.
15622         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
15623         log of X_ADJ not X when adjusting exponent.
15624         (__ieee754_gammal_r): Do intermediate computations in
15625         round-to-nearest then adjust overflowing and underflowing results
15626         as needed.  Use 1.0L not 1.0f as numerator of division.
15627         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
15628         log of X_ADJ not X when adjusting exponent.
15629         (__ieee754_gammal_r): Do intermediate computations in
15630         round-to-nearest then adjust overflowing and underflowing results
15631         as needed.  Use 1.0L not 1.0f as numerator of division.
15632         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
15633         of X_ADJ not X when adjusting exponent.
15634         (__ieee754_gammal_r): Do intermediate computations in
15635         round-to-nearest then adjust overflowing and underflowing results
15636         as needed.  Use 1.0L not 1.0f as numerator of division.
15637         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
15638         to auto-libm-test-in.
15639         (tgamma_test): Use ALL_RM_TEST.
15640         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
15641         tests of tgamma with spurious-overflow.
15642         * math/auto-libm-test-out: Regenerated.
15643         * math/gen-libm-have-vector-test.sh: Do not check for START.
15644         * sysdeps/i386/fpu/libm-test-ulps: Update.
15645         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15646
15647         [BZ #18612]
15648         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
15649         arguments, just return 0.5 times the argument, with underflow
15650         forced as needed.
15651         * math/auto-libm-test-in: Add more tests of j1.
15652         * math/auto-libm-test-out: Regenerated.
15653
15654         [BZ #16559]
15655         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
15656         (__ieee754_j1): Force underflow exception for small results.
15657         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15658         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
15659         (__ieee754_j1f): Force underflow exception for small results.
15660         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15661         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15662         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15663         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
15664         (__ieee754_j1l): Force underflow exception for small results.
15665         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15666         * math/auto-libm-test-in: Add more tests of j1 and jn.
15667         * math/auto-libm-test-out: Regenerated.
15668
15669         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
15670         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
15671         (PF_MPLS): Likewise.
15672         (AF_IB): Likewise.
15673         (AF_MPLS): Likewise.
15674         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
15675         value and macro.
15676         (MS_RMT_MASK): Include MS_LAZYTIME.
15677
15678 2015-06-26  Mel Gorman  <mgorman@suse.de>
15679
15680         [BZ #18502]
15681         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
15682         already minimal.
15683
15684 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
15685
15686         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
15687         (DT_MIPS_NUM): Update.
15688         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
15689         DT_MIPS_RLD_MAP_REL.
15690
15691 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
15692
15693         [BZ #16559]
15694         [BZ #18602]
15695         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
15696         round-to-nearest internally then recompute results that
15697         underflowed to zero in the original rounding mode.
15698         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15699         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15700         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15701         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15702         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
15703         * sysdeps/i386/fpu/libm-test-ulps: Update.
15704         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15705
15706 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
15707
15708         * NEWS: Fixed description of link with vector math library.
15709
15710 2015-06-25  Andreas Schwab  <schwab@suse.de>
15711
15712         [BZ #18549]
15713         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
15714         * libio/test-fmemopen.c (do_test): Add test for it.
15715
15716 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15717
15718         [BZ #17841]
15719         * Makeconfig (no-pie-ldflag): New.
15720         (+link): Set to $(+link-pie) if default to PIE.
15721         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
15722         * config.make.in (build-pie-default): New.
15723         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
15724         is default.  AC_SUBST.
15725         * configure: Regenerated.
15726         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
15727
15728 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15729
15730         * nptl/descr.h (struct pthread): Change type of field setxid_futex
15731         to 'unsigned int'.
15732
15733         * resolv/gai_misc.h (struct waitlist): Change type of field
15734         counterp to 'volatile unsigned int *'.
15735         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
15736         FUTEXADDR and OLDVAL.
15737         * resolv/getaddrinfo_a.c (getaddrinfo_a):
15738         Give local variable TOTAL type 'volatile unsigned int'.
15739         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15740         * resolv/gai_suspend.c (gai_suspend):
15741         Give local variable CNTR type 'unsigned int'.
15742
15743         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
15744         counterp to 'volatile unsigned int *'.
15745         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
15746         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
15747         (aio_suspend): Give local variable CNTR type 'unsigned int'.
15748         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
15749         Give local variable TOTAL type 'volatile unsigned int'.
15750         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15751
15752 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15753
15754         [BZ #18383]
15755         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
15756         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
15757         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
15758         comment for i386/x86-64.
15759         (test-xfail-tst-tlsalign-extern-static): Removed.
15760
15761 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15762
15763         * math/test-double.h: New file.
15764         * math/test-float.h: Likewise.
15765         * math/test-ldouble.h: Likewise.
15766         * math/test-math-inline.h: Likewise.
15767         * math/test-math-no-inline.h: Likewise.
15768         * math/test-math-scalar.h: Likewise.
15769         * math/test-math-vector.h: Likewise.
15770         * math/test-vec-loop.h: Remove file.  Contents moved into
15771         test-math-vector.h.
15772         * math/libm-test.inc (MATHCONST): Do not document macro.
15773         * math/test-double.c: Include test-double.h, test-math-no-inline.h
15774         and test-math-scalar.h.
15775         (FUNC): Remove macro.
15776         (FUNC_TEST): Likewise.
15777         (FLOAT): Likewise.
15778         (MATHCONST): Likewise.
15779         (PRINTF_EXPR): Likewise.
15780         (PRINTF_XEXPR): Likewise.
15781         (PRINTF_NEXPR): Likewise.
15782         (TEST_DOUBLE): Likewise.
15783         (TEST_MATHVEC): Likewise.
15784         (__NO_MATH_INLINES): Likewise.
15785         * math/test-float.c: Include test-float.h, test-math-no-inline.h
15786         and test-math-scalar.h.
15787         (FUNC): Remove macro.
15788         (FUNC_TEST): Likewise.
15789         (FLOAT): Likewise.
15790         (MATHCONST): Likewise.
15791         (PRINTF_EXPR): Likewise.
15792         (PRINTF_XEXPR): Likewise.
15793         (PRINTF_NEXPR): Likewise.
15794         (TEST_FLOAT): Likewise.
15795         (TEST_MATHVEC): Likewise.
15796         (__NO_MATH_INLINES): Likewise.
15797         * math/test-idouble.c: Include test-double.h, test-math-inline.h
15798         and test-math-scalar.h.
15799         (FUNC): Remove macro.
15800         (FUNC_TEST): Likewise.
15801         (FLOAT): Likewise.
15802         (MATHCONST): Likewise.
15803         (PRINTF_EXPR): Likewise.
15804         (PRINTF_XEXPR): Likewise.
15805         (PRINTF_NEXPR): Likewise.
15806         (TEST_DOUBLE): Likewise.
15807         (TEST_MATHVEC): Likewise.
15808         (TEST_INLINE): Likewise.
15809         (__NO_MATH_INLINES): Likewise.
15810         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
15811         test-math-scalar.h.
15812         (FUNC): Remove macro.
15813         (FUNC_TEST): Likewise.
15814         (FLOAT): Likewise.
15815         (MATHCONST): Likewise.
15816         (PRINTF_EXPR): Likewise.
15817         (PRINTF_XEXPR): Likewise.
15818         (PRINTF_NEXPR): Likewise.
15819         (TEST_FLOAT): Likewise.
15820         (TEST_MATHVEC): Likewise.
15821         (TEST_INLINE): Likewise.
15822         (__NO_MATH_INLINES): Likewise.
15823         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
15824         and test-math-scalar.h.
15825         (FUNC): Remove macro.
15826         (FUNC_TEST): Likewise.
15827         (FLOAT): Likewise.
15828         (MATHCONST): Likewise.
15829         (PRINTF_EXPR): Likewise.
15830         (PRINTF_XEXPR): Likewise.
15831         (PRINTF_NEXPR): Likewise.
15832         (TEST_LDOUBLE): Likewise.
15833         (TEST_MATHVEC): Likewise.
15834         (TEST_INLINE): Likewise.
15835         (__NO_MATH_INLINES): Likewise.
15836         * math/test-ldouble.c: Include test-ldouble.h,
15837         test-math-no-inline.h and test-math-scalar.h.
15838         (FUNC): Remove macro.
15839         (FUNC_TEST): Likewise.
15840         (FLOAT): Likewise.
15841         (MATHCONST): Likewise.
15842         (PRINTF_EXPR): Likewise.
15843         (PRINTF_XEXPR): Likewise.
15844         (PRINTF_NEXPR): Likewise.
15845         (TEST_LDOUBLE): Likewise.
15846         (TEST_MATHVEC): Likewise.
15847         (__NO_MATH_INLINES): Likewise.
15848         * math/test-double-vlen2.h: Include test-double.h,
15849         test-math-no-inline.h and test-math-vector.h.
15850         (FLOAT): Remove macro.
15851         (FUNC): Likewise.
15852         (MATHCONST): Likewise.
15853         (PRINTF_EXPR): Likewise.
15854         (PRINTF_XEXPR): Likewise.
15855         (PRINTF_NEXPR): Likewise.
15856         (TEST_DOUBLE): Likewise.
15857         (TEST_MATHVEC): Likewise.
15858         (__NO_MATH_INLINES): Likewise.
15859         (CNCT): Likewise.
15860         (CONCAT): Likewise.
15861         (WRAPPER_NAME): Likewise.
15862         (WRAPPER_DECL): Likewise.
15863         (WRAPPER_DECL_ff): Likewise.
15864         (WRAPPER_DECL_fFF): Likewise.
15865         (VECTOR_WRAPPER): Likewise.
15866         (VECTOR_WRAPPER_ff): Likewise.
15867         (VECTOR_WRAPPER_fFF): Likewise.
15868         (VEC_LEN): New macro.
15869         * math/test-double-vlen4.h: Include test-double.h,
15870         test-math-no-inline.h and test-math-vector.h.
15871         (FLOAT): Remove macro.
15872         (FUNC): Likewise.
15873         (MATHCONST): Likewise.
15874         (PRINTF_EXPR): Likewise.
15875         (PRINTF_XEXPR): Likewise.
15876         (PRINTF_NEXPR): Likewise.
15877         (TEST_DOUBLE): Likewise.
15878         (TEST_MATHVEC): Likewise.
15879         (__NO_MATH_INLINES): Likewise.
15880         (CNCT): Likewise.
15881         (CONCAT): Likewise.
15882         (WRAPPER_NAME): Likewise.
15883         (WRAPPER_DECL): Likewise.
15884         (WRAPPER_DECL_ff): Likewise.
15885         (WRAPPER_DECL_fFF): Likewise.
15886         (VECTOR_WRAPPER): Likewise.
15887         (VECTOR_WRAPPER_ff): Likewise.
15888         (VECTOR_WRAPPER_fFF): Likewise.
15889         (VEC_LEN): New macro.
15890         * math/test-double-vlen8.h: Include test-double.h,
15891         test-math-no-inline.h and test-math-vector.h.
15892         (FLOAT): Remove macro.
15893         (FUNC): Likewise.
15894         (MATHCONST): Likewise.
15895         (PRINTF_EXPR): Likewise.
15896         (PRINTF_XEXPR): Likewise.
15897         (PRINTF_NEXPR): Likewise.
15898         (TEST_DOUBLE): Likewise.
15899         (TEST_MATHVEC): Likewise.
15900         (__NO_MATH_INLINES): Likewise.
15901         (CNCT): Likewise.
15902         (CONCAT): Likewise.
15903         (WRAPPER_NAME): Likewise.
15904         (WRAPPER_DECL): Likewise.
15905         (WRAPPER_DECL_ff): Likewise.
15906         (WRAPPER_DECL_fFF): Likewise.
15907         (VECTOR_WRAPPER): Likewise.
15908         (VECTOR_WRAPPER_ff): Likewise.
15909         (VECTOR_WRAPPER_fFF): Likewise.
15910         (VEC_LEN): New macro.
15911         * math/test-float-vlen4.h: Include test-float.h,
15912         test-math-no-inline.h and test-math-vector.h.
15913         (FLOAT): Remove macro.
15914         (FUNC): Likewise.
15915         (MATHCONST): Likewise.
15916         (PRINTF_EXPR): Likewise.
15917         (PRINTF_XEXPR): Likewise.
15918         (PRINTF_NEXPR): Likewise.
15919         (TEST_FLOAT): Likewise.
15920         (TEST_MATHVEC): Likewise.
15921         (__NO_MATH_INLINES): Likewise.
15922         (CNCT): Likewise.
15923         (CONCAT): Likewise.
15924         (WRAPPER_NAME): Likewise.
15925         (WRAPPER_DECL): Likewise.
15926         (WRAPPER_DECL_ff): Likewise.
15927         (WRAPPER_DECL_fFF): Likewise.
15928         (VECTOR_WRAPPER): Likewise.
15929         (VECTOR_WRAPPER_ff): Likewise.
15930         (VECTOR_WRAPPER_fFF): Likewise.
15931         (VEC_LEN): New macro.
15932         * math/test-float-vlen8.h: Include test-float.h,
15933         test-math-no-inline.h and test-math-vector.h.
15934         (FLOAT): Remove macro.
15935         (FUNC): Likewise.
15936         (MATHCONST): Likewise.
15937         (PRINTF_EXPR): Likewise.
15938         (PRINTF_XEXPR): Likewise.
15939         (PRINTF_NEXPR): Likewise.
15940         (TEST_FLOAT): Likewise.
15941         (TEST_MATHVEC): Likewise.
15942         (__NO_MATH_INLINES): Likewise.
15943         (CNCT): Likewise.
15944         (CONCAT): Likewise.
15945         (WRAPPER_NAME): Likewise.
15946         (WRAPPER_DECL): Likewise.
15947         (WRAPPER_DECL_ff): Likewise.
15948         (WRAPPER_DECL_fFF): Likewise.
15949         (VECTOR_WRAPPER): Likewise.
15950         (VECTOR_WRAPPER_ff): Likewise.
15951         (VECTOR_WRAPPER_fFF): Likewise.
15952         (VEC_LEN): New macro.
15953         * math/test-float-vlen16.h: Include test-float.h,
15954         test-math-no-inline.h and test-math-vector.h.
15955         (FLOAT): Remove macro.
15956         (FUNC): Likewise.
15957         (MATHCONST): Likewise.
15958         (PRINTF_EXPR): Likewise.
15959         (PRINTF_XEXPR): Likewise.
15960         (PRINTF_NEXPR): Likewise.
15961         (TEST_FLOAT): Likewise.
15962         (TEST_MATHVEC): Likewise.
15963         (__NO_MATH_INLINES): Likewise.
15964         (CNCT): Likewise.
15965         (CONCAT): Likewise.
15966         (WRAPPER_NAME): Likewise.
15967         (WRAPPER_DECL): Likewise.
15968         (WRAPPER_DECL_ff): Likewise.
15969         (WRAPPER_DECL_fFF): Likewise.
15970         (VECTOR_WRAPPER): Likewise.
15971         (VECTOR_WRAPPER_ff): Likewise.
15972         (VECTOR_WRAPPER_fFF): Likewise.
15973         (VEC_LEN): New macro.
15974         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
15975         test-vec-loop.h.
15976         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15977         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15978         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15979         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15980         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15981         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15982         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15983
15984 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15985
15986         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
15987         (__getlogin_r): ... this.
15988
15989 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15990
15991         [BZ #18594]
15992         * math/s_ccosh.c (__ccosh): Compare with least normal value
15993         instead of comparing class with FP_SUBNORMAL.
15994         * math/s_ccoshf.c (__ccoshf): Likewise.
15995         * math/s_ccoshl.c (__ccoshl): Likewise.
15996         * math/s_cexp.c (__cexp): Likewise.
15997         * math/s_cexpf.c (__cexpf): Likewise.
15998         * math/s_cexpl.c (__cexpl): Likewise.
15999         * math/s_csin.c (__csin): Likewise.
16000         * math/s_csinf.c (__csinf): Likewise.
16001         * math/s_csinh.c (__csinh): Likewise.
16002         * math/s_csinhf.c (__csinhf): Likewise.
16003         * math/s_csinhl.c (__csinhl): Likewise.
16004         * math/s_csinl.c (__csinl): Likewise.
16005         * math/s_ctan.c (__ctan): Likewise.
16006         * math/s_ctanf.c (__ctanf): Likewise.
16007         * math/s_ctanh.c (__ctanh): Likewise.
16008         * math/s_ctanhf.c (__ctanhf): Likewise.
16009         * math/s_ctanhl.c (__ctanhl): Likewise.
16010         * math/s_ctanl.c (__ctanl): Likewise.
16011         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
16012         csin, csinh, ctan and ctanh.
16013         * math/auto-libm-test-out: Regenerated.
16014         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
16015         * sysdeps/i386/fpu/libm-test-ulps: Update.
16016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16017
16018 2015-06-24  Roland McGrath  <roland@hack.frob.com>
16019
16020         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
16021         return value is wrong, print the expected value too.
16022
16023 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16024
16025         [BZ #18585]
16026         * elf/readlib.c (is_gdb_python_file): New.
16027         (process_file): Don't issue errors on filenames with -gdb.py
16028         suffix.
16029
16030 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
16031
16032         * math/auto-libm-test-in: Add more tests of csin and csinh.
16033         * math/auto-libm-test-out: Regenerated.
16034         * math/libm-test.inc (csin_test_data): Remove tests moved to
16035         auto-libm-test-in.
16036         (csinh_test_data): Likewise.
16037
16038         [BZ #18593]
16039         * math/s_csin.c (__csin): Negate before rather than after possibly
16040         overflowing multiplication.
16041         * math/s_csinf.c (__csinf): Likewise.
16042         * math/s_csinh.c (__csinh): Likewise.
16043         * math/s_csinhf.c (__csinhf): Likewise.
16044         * math/s_csinhl.c (__csinhl): Likewise.
16045         * math/s_csinl.c (__csinl): Likewise.
16046         * math/auto-libm-test-in: Add some tests of csin and csinh.
16047         * math/auto-libm-test-out: Regenerated.
16048         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
16049         (csinh_test_data): Likewise.
16050         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16051
16052         [BZ #18586]
16053         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
16054         underflow exception for small results.
16055
16056 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
16057
16058         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
16059         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
16060         variable and included header.
16061         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
16062         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
16063         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
16064         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
16065         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
16066         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
16067         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
16068         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
16069         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
16070         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
16071         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
16072         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
16073         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
16074         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
16075         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
16076         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
16077
16078 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16079
16080         [BZ #16526]
16081         [BZ #16538]
16082         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
16083         (__sin): Force underflow exception for arguments with small
16084         absolute value.
16085         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
16086         (__kernel_sinf): Force underflow exception for arguments with
16087         small absolute value.
16088         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
16089         (__kernel_sincosl): Force underflow exception for arguments with
16090         small absolute value.
16091         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
16092         (__kernel_sinl): Force underflow exception for arguments with
16093         small absolute value.
16094         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
16095         (__kernel_sincosl): Force underflow exception for arguments with
16096         small absolute value.
16097         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
16098         (__kernel_sinl): Force underflow exception for arguments with
16099         small absolute value.
16100         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
16101         (__kernel_sinl): Force underflow exception for arguments with
16102         small absolute value.
16103         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
16104         (__kernel_sinf): Force underflow exception for arguments with
16105         small absolute value.
16106         * math/auto-libm-test-in: Add more tests of sin and sincos.
16107         * math/auto-libm-test-out: Regenerated.
16108
16109         [BZ #18245]
16110         [BZ #18583]
16111         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
16112         (__kernel_standard_l): Use feholdexcept and fesetenv around
16113         conversion to double instead of special-casing overflow and
16114         underflow.
16115         * math/libm-test.inc (fmod_test_data): Add more tests.
16116         (remainder_test_data): Likewise.
16117         (sqrt_test_data): Likewise.
16118
16119 2015-06-23  Torvald Riegel  <triegel@redhat.com>
16120
16121         [BZ #17403]
16122         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
16123         atomic_read_barrier, atomic_write_barrier): Define.
16124         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
16125         atomic_read_barrier, atomic_write_barrier): Define.
16126
16127 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16128
16129         * math/Makefile [$(PERL) != no]
16130         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
16131         dependency on libm-test.stmp below the inclusion of Rules.
16132
16133 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
16134
16135         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
16136         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
16137         and included header.
16138         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
16139         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
16140         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
16141         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
16142         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
16143         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
16144         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
16145         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
16146         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
16147         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
16148         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
16149         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
16150         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
16151         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
16152         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
16153         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
16154         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
16155         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
16156         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
16157
16158 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16159
16160         [BZ #18371]
16161         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
16162         intermediate but not final result might underflow.
16163         * math/s_csqrtf.c (__csqrtf): Likewise.
16164         * math/s_csqrtl.c (__csqrtl): Likewise.
16165         * math/auto-libm-test-in: Add more tests of csqrt.
16166         * math/auto-libm-test-out: Regenerated.
16167         * sysdeps/i386/fpu/libm-test-ulps: Update.
16168
16169         [BZ #18219]
16170         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
16171         threshold on absolute value of exponent for which scaling is used.
16172         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
16173         * math/auto-libm-test-in: Add more tests of exp2.
16174         * math/auto-libm-test-out: Regenerated.
16175
16176 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
16177
16178         [BZ #17977]
16179         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
16180         when initializing interface list, based on the bug analysis
16181         and the patch proposed by Eric Newton.
16182         * resolv/tst-res_hconf_reorder.c: New test.
16183         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
16184         tst-res_hconf_reorder.
16185         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
16186         and $(shared-thread-library).
16187         (tst-res_hconf_reorder-ENV): New variable.
16188
16189         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
16190         in comment.
16191
16192 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
16193
16194         [BZ #16353]
16195         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
16196         (__expm1): Force underflow exception for arguments with small
16197         absolute value.
16198         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
16199         (__expm1f): Force underflow exception for arguments with small
16200         absolute value.
16201         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
16202         (__expm1): Force underflow exception for arguments with small
16203         absolute value.
16204         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
16205         (__expm1f): Force underflow exception for arguments with small
16206         absolute value.
16207         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
16208         Check for small arguments before calling __expm1.
16209         * math/auto-libm-test-in: Do not mark underflow exceptions as
16210         possibly missing for bug 16353.
16211         * math/auto-libm-test-out: Regenerated.
16212
16213 2015-06-22  Andreas Schwab  <schwab@suse.de>
16214
16215         [BZ #18513]
16216         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
16217         PTR queries.
16218
16219 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
16220
16221         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
16222
16223         * string/strcoll_l.c: Remove unused struct element idxnow.
16224
16225 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
16226
16227         [BZ #18569]
16228         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
16229         underflow and return argument in case of subnormal argument.
16230         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
16231         Likewise.
16232         * math/auto-libm-test-in: Add more tests of expm1.
16233         * math/auto-libm-test-out: Regenerated.
16234
16235         [BZ #16361]
16236         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
16237         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
16238         tiny results.
16239         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
16240         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
16241         tiny results.
16242         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
16243         mark underflow exceptions as possibly missing for bug 16361.
16244         * math/auto-libm-test-out: Regenerated.
16245
16246 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
16247
16248         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
16249         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
16250         Remove variable.
16251         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
16252         (test-xfail-XOPEN2K8/utmpx.h/conform).
16253
16254         * conform/conformtest.pl ($xerrors): New variable.
16255         (note_error): New function.
16256         (compiletest): New argument $xfail.  Use not_error.
16257         (runtest): Likewise.
16258         (top level): Handle xfail- lines.  Update calls to compiletest and
16259         runtest.  Handle xfail- and optional- in headers listed with
16260         allow-header.
16261         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
16262         (O_EXEC): Likewise.
16263         (O_SEARCH): Likewise.
16264         * conform/data/stropts.h-data (ioctl): Likewise.
16265         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
16266         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
16267         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
16268         (msghdr.msg_controllen): Likewise.
16269         (cmsghdr.cmsg_len): Likewise.
16270         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
16271         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
16272         variable.
16273         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
16274         (test-xfail-XPG4/stropts.h/conform): Likewise.
16275         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
16276         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
16277         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
16278         (test-xfail-UNIX98/stropts.h/conform): Likewise.
16279         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
16280         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
16281         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
16282         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
16283         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
16284         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
16285         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
16286         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
16287         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
16288         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
16289         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
16290         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
16291         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
16292         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
16293         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
16294
16295 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
16296
16297         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
16298         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
16299         definitions for proper unfolding of __MATHDECL_VEC.
16300
16301 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16302
16303         * benchtests/bench-strcoll.c:
16304         Include string.h.
16305         (main): Remove unused variable res.
16306
16307 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16308
16309         * timezone/Makefile (%/UTC %/Universal):
16310         Generate test-result files for UTC and Universal.
16311
16312 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16313
16314         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16315
16316 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
16317
16318         [BZ #16350]
16319         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
16320         for arguments with small absolute value.
16321         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
16322         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
16323         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
16324         (__asinh): Force underflow exception for arguments with small
16325         absolute value.
16326         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
16327         (__asinhf): Force underflow exception for arguments with small
16328         absolute value.
16329         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
16330         (__asinhl): Force underflow exception for arguments with small
16331         absolute value.
16332         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
16333         (__asinhl): Force underflow exception for arguments with small
16334         absolute value.
16335         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
16336         (__asinhl): Force underflow exception for arguments with small
16337         absolute value.
16338         * math/auto-libm-test-in: Do not mark underflow exceptions as
16339         possibly missing for bug 16350.
16340         * math/auto-libm-test-out: Regenerated.
16341
16342         * include/bits/ipc.h: Remove file.
16343         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
16344         variable.
16345         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
16346         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
16347         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
16348         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
16349         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
16350         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
16351         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
16352         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
16353         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
16354
16355         * math/auto-libm-test-in: Remove spurious underflow allowance for
16356         tests of cexp.
16357         * math/auto-libm-test-out: Regenerated.
16358
16359         [BZ #18558]
16360         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
16361         unconditional definition.
16362         (MCAST_BLOCK_SOURCE): Likewise.
16363         (MCAST_UNBLOCK_SOURCE): Likewise.
16364         (MCAST_LEAVE_GROUP): Likewise.
16365         (MCAST_JOIN_SOURCE_GROUP): Likewise.
16366         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
16367         (MCAST_MSFILTER): Likewise.
16368         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
16369         Remove variable.
16370         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
16371         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
16372         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
16373         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
16374         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
16375
16376 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
16377
16378         * NEWS: Mention addition of x86_64 vector sincosf.
16379         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
16380         * math/test-float-vlen4.h: Likewise.
16381         * math/test-float-vlen8.h: Likewise.
16382         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16383         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
16384         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16385         * sysdeps/x86_64/fpu/Versions: New versions added.
16386         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16387         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16388         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16389         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
16390         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
16391         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
16392         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
16393         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
16394         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
16395         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
16396         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
16397         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
16398         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
16399         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
16400         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
16401         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
16402         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
16403         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
16404         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16405         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16406         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16407         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16408         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16409         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16410
16411         * NEWS: Mention addition of x86_64 vector sincos.
16412         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
16413         * math/math.h (__MATHDECL_VEC): New macro.
16414         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
16415         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
16416         declaration under condition.
16417         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
16418         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
16419         TEST_VEC_LOOP change.
16420         * math/test-double-vlen4.h: Likewise.
16421         * math/test-double-vlen8.h: Likewise.
16422         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
16423         * math/test-float-vlen4.h: Likewise.
16424         * math/test-float-vlen8.h: Likewise.
16425         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16426         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
16427         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16428         * sysdeps/x86_64/fpu/Versions: New versions added.
16429         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16430         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16431         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16432         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
16433         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
16434         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
16435         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
16436         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
16437         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
16438         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
16439         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
16440         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
16441         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
16442         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
16443         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
16444         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
16445         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
16446         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16447         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16448         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16449         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16450         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16451         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16452         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16453
16454         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16455         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16456         redirections for powf.
16457         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16458         * sysdeps/x86_64/fpu/Versions: New versions added.
16459         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16460         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16461         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16462         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
16463         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
16464         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
16465         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
16466         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
16467         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
16468         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
16469         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
16470         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
16471         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
16472         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
16473         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
16474         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
16475         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
16476         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16477         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16478         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16479         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16480         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16481         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16482         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16483         * math/test-float-vlen16.h: Fixed 2 argument macro.
16484         * math/test-float-vlen4.h: Likewise.
16485         * math/test-float-vlen8.h: Likewise.
16486         * NEWS: Mention addition of x86_64 vector powf.
16487
16488 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
16489
16490         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16491         and redefine.
16492         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16493         and redefine.
16494         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
16495         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16496         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16497
16498         [BZ #18553]
16499         * resource/getpriority.c (getpriority): Rename to __getpriority
16500         and define as weak alias of __getpriority.
16501         * resource/setpriority.c (setpriority): Rename to __setpriority
16502         and define as weak alias of __setpriority.
16503         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
16504         __getpriority and define as weak alias of __getpriority.
16505         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
16506         __setpriority and define as weak alias of __setpriority.
16507         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
16508         strong name.
16509         (setpriority): Use __setpriority as strong name.
16510         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
16511         __getpriority and define as weak alias of __getpriority.
16512         * include/sys/resource.h (__getpriority): Declare.  Use
16513         libc_hidden_proto.
16514         (__setpriority): Likewise.
16515         (getpriority): Don't use libc_hidden_proto.
16516         (setpriority): Likewise.
16517         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
16518         getpriority.  Call __setpriority instead of setpriority.
16519         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
16520         Remove variable.
16521
16522         [BZ #18547]
16523         * misc/getttyent.c (getttynam): Rename to __getttynam and define
16524         as weak alias of __getttynam.  Use prototype function definition.
16525         Call __setttyent, __getttyent and __endttyent instead of
16526         setttyent, getttyent and endttyent.
16527         (getttyent): Rename to __getttyent and define as weak alias of
16528         __getttyent.  Call __setttyent instead of setttyent.  Call
16529         __fgets_unlocked instead of fgets_unlocked.
16530         (setttyent): Rename to __setttyent and define as weak alias of
16531         __setttyent.
16532         (endttyent): Rename to __endttyent and define as weak alias of
16533         __endttyent.
16534         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
16535         (__setttyent): Likewise.
16536         (__endttyent): Likewise.
16537         (getttyent): Don't use libc_hidden_proto.
16538         (setttyent): Likewise.
16539         (endttyent): Likewise.
16540         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
16541         __endttyent instead of setttyent, getttyent and endttyent.
16542         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
16543         Remove variable.
16544
16545         [BZ #18546]
16546         * socket/recv.c (__recv): Use libc_hidden_def.
16547         * socket/socket.c (__socket): Likewise.
16548         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
16549         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
16550         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
16551         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
16552         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
16553         libc_hidden_def.
16554         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
16555         libc_hidden_weak.
16556         * include/sys/socket.h (__socket): Do not use attribute_hidden.
16557         Use libc_hidden_proto.
16558         (__recv): Likewise.
16559         * socket/Versions (libc): Export __recv and __socket at version
16560         GLIBC_PRIVATE.
16561         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
16562         instead of recv.
16563         (init_mq_netlink): Call __socket instead of socket.
16564         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
16565         Remove variable.
16566
16567         [BZ #18545]
16568         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
16569         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
16570         hidden_weak.
16571         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
16572         define as alias of __mq_timedsend.  Use hidden_weak.
16573         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
16574         __mq_timedsend as strong name.
16575         (mq_timedreceive): Use __mq_timedreceive as strong name.
16576         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
16577         (__mq_timedreceive): Likewise.
16578         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
16579         __mq_timedreceive instead of mq_timedreceive.
16580         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
16581         instead of mq_timedsend.
16582         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
16583         Remove variable.
16584
16585         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
16586         hidden_def and hidden_weak instead of libc_hidden_def and
16587         libc_hidden_weak.
16588         (top level): Refer to hidden_def in comment.
16589         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
16590         macro.  Use it instead of libc_hidden_def.
16591         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
16592         specify __GI_* name explicitly.
16593         (mq_timedreceive): Likewise.
16594         (mq_setattr): Likewise.
16595
16596         [BZ #18544]
16597         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
16598         __pthread_barrier_init and define as weak alias of
16599         __pthread_barrier_init.
16600         * sysdeps/sparc/nptl/pthread_barrier_init.c
16601         (pthread_barrier_init): Likewise.
16602         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
16603         __pthread_barrier_wait and define as weak alias of
16604         __pthread_barrier_wait.
16605         * sysdeps/sparc/nptl/pthread_barrier_wait.c
16606         (pthread_barrier_wait): Likewise.
16607         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
16608         (pthread_barrier_wait): Likewise.
16609         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
16610         (pthread_barrier_wait): Likewise.
16611         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
16612         (pthread_barrier_wait): Likewise.
16613         * nptl/Versions (libpthread): Export __pthread_barrier_init and
16614         __pthread_barrier_wait at version GLIBC_PRIVATE.
16615         * include/pthread.h (__pthread_barrier_init): Declare.
16616         (__pthread_barrier_wait): Likewise.
16617         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
16618         Call __pthread_barrier_wait instead of pthread_barrier_wait.
16619         (helper_thread): Likewise.
16620         (init_mq_netlink): Call __pthread_barrier_init instead of
16621         pthread_barrier_init.
16622
16623         [BZ #18542]
16624         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
16625         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
16626         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
16627         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
16628         vswscanf.
16629         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
16630         Remove variable.
16631
16632         [BZ #18540]
16633         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
16634         strong alias of _IO_fflush.  Use libc_hidden_def.
16635         * libio/iofflush_u.c (fflush_unlocked): Rename to
16636         __fflush_unlocked and define as weak alias of __fflush_unlocked.
16637         Use libc_hidden_weak.
16638         * include/stdio.h (__fflush_unlocked): Declare.  Use
16639         libc_hidden_proto.
16640         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
16641         fflush_unlocked.
16642         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
16643         Remove variable.
16644
16645         [BZ #18539]
16646         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
16647         define as weak alias of __addseverity.
16648         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
16649         Remove variable.
16650         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
16651         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
16652         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
16653
16654         [BZ #18536]
16655         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
16656         (__tfind): Likewise.
16657         (__tdelete): Likewise.
16658         (__twalk): Likewise.
16659         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
16660         __twalk to GLIBC_PRIVATE.
16661         * include/search.h (__tsearch): Use libc_hidden_proto.
16662         (__tfind): Likewise.
16663         (__tdelete): Likewise.
16664         (__twalk): Likewise.
16665         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
16666         Call __tdelete instead of tdelete.
16667         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
16668         tfind.  Call __tsearch instead of tsearch.
16669         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
16670         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
16671         Remove variable.
16672         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
16673
16674         [BZ #18534]
16675         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
16676         (dprintf): Define as a weak alias of __dprintf, not a strong
16677         alias.
16678         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
16679         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
16680         dprintf.
16681         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
16682         Remove variable.
16683         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
16684         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
16685
16686         [BZ #18533]
16687         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
16688         not a strong alias.
16689         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
16690         Remove variable.
16691
16692         [BZ #18532]
16693         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
16694         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
16695         (in6addr_loopback): Rename to __in6addr_loopback and define as
16696         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
16697         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
16698         libc_hidden_proto.
16699         (__in6addr_any): Likewise.
16700         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
16701         in6addr_any.
16702         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
16703         variable.
16704         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
16705
16706 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
16707
16708         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
16709         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
16710         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16711         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16712         redirections for pow.
16713         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16714         * sysdeps/x86_64/fpu/Versions: New versions added.
16715         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16716         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16717         build of SSE, AVX2 and AVX512 IFUNC versions.
16718         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
16719         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
16720         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
16721         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
16722         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
16723         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
16724         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
16725         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
16726         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
16727         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
16728         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
16729         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
16730         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
16731         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
16732         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16733         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16734         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16735         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16736         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16737         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16738         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16739         * NEWS: Mention addition of x86_64 vector pow.
16740
16741         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16742         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16743         redirections for expf.
16744         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16745         * sysdeps/x86_64/fpu/Versions: New versions added.
16746         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16747         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16748         build of SSE, AVX2 and AVX512 IFUNC versions.
16749         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
16750         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
16751         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
16752         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
16753         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
16754         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
16755         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
16756         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
16757         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
16758         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
16759         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
16760         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
16761         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
16762         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16763         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16764         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16765         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16766         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16767         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16768         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16769         * NEWS: Mention addition of x86_64 vector expf.
16770
16771         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
16772         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
16773         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16774         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16775         redirections for exp.
16776         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16777         * sysdeps/x86_64/fpu/Versions: New versions added.
16778         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16779         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16780         build of SSE, AVX2 and AVX512 IFUNC versions.
16781         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
16782         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
16783         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
16784         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
16785         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
16786         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
16787         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
16788         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
16789         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
16790         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
16791         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
16792         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
16793         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
16794         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16795         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16796         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16797         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16798         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16799         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16800         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16801         * NEWS: Mention addition of x86_64 vector exp.
16802
16803         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16804         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16805         redirections for logf.
16806         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16807         * sysdeps/x86_64/fpu/Versions: New versions added.
16808         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16809         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16810         build of SSE, AVX2 and AVX512 IFUNC versions.
16811         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
16812         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
16813         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
16814         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
16815         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
16816         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
16817         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
16818         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
16819         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
16820         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
16821         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
16822         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
16823         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
16824         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16825         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16826         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16827         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16828         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16829         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16830         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16831         * NEWS: Mention addition of x86_64 vector logf.
16832
16833         * bits/libm-simd-decl-stubs.h: Added stubs for log.
16834         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
16835         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16836         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16837         redirections for log.
16838         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16839         * sysdeps/x86_64/fpu/Versions: New versions added.
16840         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16841         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16842         build of SSE, AVX2 and AVX512 IFUNC versions.
16843         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
16844         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
16845         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
16846         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
16847         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
16848         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
16849         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
16850         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
16851         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
16852         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
16853         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
16854         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
16855         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
16856         test.
16857         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16858         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16859         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16860         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16861         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16862         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16863         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16864         * NEWS: Mention addition of x86_64 vector log.
16865
16866 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16867
16868         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
16869         cfi_adjust_cfa_offset argument.
16870         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
16871         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
16872
16873         [BZ #18034]
16874         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
16875         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
16876         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
16877         ordering using ldar.
16878         (_dl_tlsdesc_dynamic): Likewise.
16879         (_dl_tlsdesc_return_lazy): Likewise.
16880         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
16881         relaxed atomics instead of volatile and synchronize with release store.
16882         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
16883         volatile.
16884         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
16885
16886 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
16887
16888         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16889         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
16890         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16891         * sysdeps/x86_64/fpu/Versions: New versions added.
16892         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16893         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16894         build of SSE, AVX2 and AVX512 IFUNC versions.
16895         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
16896         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
16897         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
16898         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
16899         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
16900         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
16901         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
16902         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
16903         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
16904         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
16905         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
16906         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
16907         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
16908         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16909         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16910         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16911         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16912         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16913         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16914         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16915         * NEWS: Mention addition of x86_64 vector sinf.
16916
16917 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
16918
16919         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
16920         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
16921         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
16922         Remove variable.
16923         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
16924         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
16925
16926 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16927
16928         [BZ #18530]
16929         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
16930         strong alias of _IO_fputs.  Use libc_hidden_def.
16931         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
16932         and define as weak alias of __fputs_unlocked.  Use
16933         libc_hidden_weak.
16934         * include/stdio.h (__fputs_unlocked): Declare.  Use
16935         libc_hidden_proto.
16936         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
16937         fputs_unlocked.
16938
16939         [BZ #18529]
16940         * resolv/netdb.h [__USE_POSIX]: Change condition to
16941         [__USE_XOPEN2K].
16942         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
16943         not expect.
16944         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
16945         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
16946         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
16947         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
16948         [XPG4 || UNIX98] (AI_ALL): Likewise.
16949         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
16950         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
16951         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
16952         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
16953         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
16954         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
16955         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
16956         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
16957         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
16958         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
16959         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
16960         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
16961         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
16962         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
16963         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
16964         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16965         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16966         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
16967         [XPG4 || UNIX98] (gai_strerror): Likewise.
16968         [XPG4 || UNIX98] (getaddrinfo): Likewise.
16969         [XPG4 || UNIX98] (getnameinfo): Likewise.
16970
16971         [BZ #18528]
16972         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
16973         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
16974         __USE_XOPEN2K8].
16975         (getgrent): Likewise.
16976         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
16977         expect.
16978         [XPG3 || POSIX2008] (endgrent): Likewise.
16979         [XPG3] (setgrent): Likewise.
16980         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
16981         variable.
16982         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
16983
16984         [BZ #18527]
16985         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
16986         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
16987         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
16988         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
16989         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
16990         * include/unistd.h (__getlogin_r): Declare.  Use
16991         libc_hidden_proto.
16992         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
16993         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
16994         variable.
16995         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
16996         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
16997         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
16998
16999 2015-06-12  Martin Sebor  <msebor@redhat.com>
17000
17001         [BZ #18512]
17002         * Makerules (check-install-supported): New target.
17003         (install): Add check-install-supported as a dependency.
17004         * manual/install.texi (Installing the C Library): Document
17005         that overriding prefix and exec_prefix is not supported.
17006         Mention DESTDIR.
17007         * INSTALL: Regenerate from the above.
17008
17009 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
17010
17011         [BZ #18519]
17012         * posix/Versions (libc): Export __libc_pread at version
17013         GLIBC_PRIVATE.
17014         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
17015         instead of pread.
17016         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
17017         variable.
17018
17019         [BZ #18522]
17020         * misc/efgcvt_r.c
17021         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
17022         (cvt_symbol): Use weak_alias instead of strong_alias.
17023         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
17024         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
17025         Remove variable.
17026         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
17027         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
17028
17029         [BZ #18520]
17030         * inet/herrno.c (h_errno): Rename to __h_errno.
17031         (__libc_h_errno): Define as alias of __h_errno not h_errno.
17032         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
17033         to __h_errno instead of h_errno.
17034         * nptl/herrno.c (h_errno): Rename to __h_errno.
17035         (__h_errno_location): Refer to __h_errno not h_errno.
17036         * resolv/Versions (h_errno): Rename to __h_errno.
17037         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
17038         Remove variable.
17039         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
17040
17041 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
17042
17043         * configure.ac: More strict check for AVX512 assembler support.
17044         * configure: Regenerated.
17045
17046         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
17047         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
17048         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
17049         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
17050         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17051         * sysdeps/x86_64/fpu/Versions: New versions added.
17052         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17053         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17054         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17055         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
17056         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
17057         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
17058         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
17059         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
17060         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
17061         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
17062         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
17063         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
17064         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
17065         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
17066         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
17067         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
17068         test.
17069         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
17070         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
17071         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
17072         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
17073         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
17074         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
17075         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
17076         * NEWS: Mention addition of x86_64 vector sin.
17077
17078 2015-06-11  Florian Weimer  <fweimer@redhat.com>
17079
17080         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
17081         comment.
17082
17083 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
17084
17085         [BZ #18479]
17086         * nptl/pt-interp.c: New file.
17087         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
17088         Add pt-interp.
17089         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
17090         $(common-objpfx)runtime-linker.h.
17091
17092 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
17093
17094         * Makeconfig (+interp): Remove unused variable.
17095         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
17096         only.  Depend on $(common-objpfx)runtime-linker.h instead of
17097         $(elf-objpfx)runtime-linker.h.
17098         ($(elf-objpfx)runtime-linker.h): Rename to
17099         $(common-objpfx)runtime-linker.h and move ...
17100         * Makerules [$(build-shared) = yes]: ... here.
17101         * elf/interp.c: Include <runtime-linker.h> instead of
17102         <elf/runtime-linker.h>.
17103
17104 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17105
17106         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
17107         (__gettimeofday_syscall): Remove vsyscall fallback.
17108         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
17109         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
17110         Add syscall fallback function.
17111         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
17112         if vDSO is not present.
17113         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
17114         fallback function.
17115         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
17116         present.
17117         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
17118         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17119
17120 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
17121
17122         [BZ #18497]
17123         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
17124         of wcscmp.
17125         (wcscmp): Define as weak alias of WCSCMP.
17126         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
17127         wcscoll.
17128         (USE_HIDDEN_DEF): Define.
17129         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
17130         __wcscoll.  Don't use libc_hidden_weak.
17131         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
17132         wcscmp.
17133         * sysdeps/i386/i686/multiarch/wcscmp-c.c
17134         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
17135         __GI_wcscmp.
17136         (weak_alias): Undefine and redefine.
17137         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
17138         __wcscmp and define as weak alias of __wcscmp.
17139         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
17140         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
17141         (__wcscoll): Likewise.
17142         (wcscmp): Don't use libc_hidden_proto.
17143         (wcscoll): Likewise.
17144         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
17145         wcscoll.
17146         * posix/regexec.c (check_node_accept_bytes): Likewise.
17147         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
17148         variable.
17149         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
17150         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
17151
17152         [BZ #18507]
17153         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
17154         __fstatvfs and define as weak alias of __fstatvfs.  Use
17155         libc_hidden_weak.
17156         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
17157         and define as weak alias of __statvfs.  Use libc_hidden_weak.
17158         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
17159         Define as alias of __fstatvfs, not fstatvfs.
17160         (fstatvfs64): Likewise.
17161         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
17162         Define as alias of __statvfs, not statvfs.
17163         (statvfs64): Likewise.
17164         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
17165         Remove variable.
17166
17167 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17168
17169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17170         (HAVE_GETCPU_VSYSCALL): Define.
17171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17172         (HAVE_GETCPU_VSYSCALL): Likewise.
17173         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
17174         * sysdeps/unix/sysv/linux/sched_getcpu.c
17175         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
17176         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
17177         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
17178         prototype.
17179         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17180         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
17181         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
17182         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
17183         Define.
17184         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
17185         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
17186         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
17187         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
17188
17189 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
17190
17191         * sysdeps/x86_64/fpu/Makefile: New file.
17192         * sysdeps/x86_64/fpu/Versions: New file.
17193         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
17194         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
17195         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
17196         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
17197         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
17198         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
17199         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
17200         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
17201         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
17202         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
17203         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
17204         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
17205         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
17206         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17207         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17208         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
17209         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
17210         * sysdeps/x86_64/configure.ac: Options for libmvec build.
17211         * sysdeps/x86_64/configure: Regenerated.
17212         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
17213         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
17214         * manual/install.texi (Configuring and compiling): Document
17215         --disable-mathvec.
17216         * INSTALL: Regenerated.
17217         * NEWS: Mention addition of libmvec and x86_64 vector cos.
17218
17219         * math/Makefile: Added rules for vector tests.
17220         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
17221         declaration under condition.
17222         * math/test-double-vlen2.h: New file.
17223         * math/test-double-vlen4.h: New file.
17224         * math/test-double-vlen8.h: New file.
17225         * math/test-vec-loop.h: Added initialization macro.
17226         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
17227         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
17228         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
17229         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
17230         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
17231         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
17232         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
17233         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
17234         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
17235         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
17236         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
17237
17238         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17239         * sysdeps/x86_64/fpu/Versions: New versions added.
17240         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
17241         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
17242         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
17243         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
17244         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
17245         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
17246         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
17247         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
17248         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
17249         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
17250         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
17251         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
17252         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
17253         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17254         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17255         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
17256         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
17257         * NEWS: Mention addition of x86_64 vector cosf.
17258
17259         * math/Makefile: Added CFLAGS for new tests.
17260         * math/test-float-vlen16.h: New file.
17261         * math/test-float-vlen4.h: New file.
17262         * math/test-float-vlen8.h: New file.
17263         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
17264         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
17265         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17266         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
17267         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
17268         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
17269         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
17270         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
17271         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
17272         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
17273         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
17274
17275 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
17276
17277         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
17278         * locale/programs/ld-ctype.c: Likewise.
17279
17280 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
17281
17282         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
17283         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
17284         bit_ZMM16_31_state): New macro.
17285         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17286         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
17287
17288 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
17289
17290         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
17291
17292 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
17293
17294         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
17295
17296 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
17297
17298         [BZ #18498]
17299         * libio/memstream.c (open_memstream): Rename to __open_memstream
17300         and define as weak alias of __open_memstream.
17301         * include/stdio.h (__open_memstream): Declare.  Use
17302         libc_hidden_proto.
17303         (open_memstream): Don't use libc_hidden_proto.
17304         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
17305         open_memstream.
17306         * posix/getopt.c (_getopt_internal_r): Likewise.
17307         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
17308         variable.
17309         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
17310         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
17311         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
17312
17313         [BZ #18496]
17314         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
17315         instead of wcrtomb.
17316
17317         [BZ #18483]
17318         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
17319         [__USE_XOPEN2K8].  Remove redundant #endif.
17320         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
17321         Remove redundant #if.
17322         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
17323         Remove variable.
17324         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
17325         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
17326
17327         [BZ #18495]
17328         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
17329         (__iswlower): Likewise.
17330         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
17331         (__iswlower): Likewise.
17332         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
17333         instead of towlower.
17334         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
17335         instead of iswlower.  Call __towupper instead of towupper.
17336         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
17337         instead of iswalnum.
17338
17339 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17340
17341         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
17342         errors to stderr.
17343
17344 2015-06-05  Florian Weimer  <fweimer@redhat.com>
17345
17346         [BZ #15661]
17347         [BZ #17322]
17348         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
17349         Check for overflow properly.  Check for O_APPEND.  Ignore large
17350         file system block sizes.  Add comments about problems.
17351         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
17352         * manual/filesys.texi (Storage Allocation): New node.
17353
17354 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17355
17356         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
17357         cancellable syscalls.
17358         (SYS_ify): Add guard to no redefine it.
17359         (INLINE_SYSCALL): Likewise.
17360         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
17361         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
17362         SYSCALL_CANCEL instead.
17363         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
17364         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
17365         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
17366         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
17367         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
17368         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
17369         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
17370         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
17371         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
17372         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
17373         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
17374         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
17375         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
17376         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
17377         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
17378         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
17379         Likewise.
17380         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
17381         (__libc_pread64): Likewise.
17382         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
17383         (__libc_preadv): Likewise.
17384         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
17385         (__libc_readv64): Likewise.
17386         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
17387         (__libc_pwrite): Likewise.
17388         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
17389         (__libc_pwrite64): Likewise.
17390         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
17391         (__libc_pwritev): Likewise.
17392         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
17393         (__libc_pwritev64): Likewise.
17394         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
17395         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
17396         (sync_file_range): Likewise.
17397         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
17398         Likewise.
17399         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
17400         Likewise.
17401         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
17402         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
17403         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
17404         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
17405         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
17406         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
17407         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
17408         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
17409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
17410         Likewise.
17411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
17412         (__libc_read64): Likewise.
17413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
17414         Likewise.
17415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
17416         Likewise.
17417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
17418         Likewise.
17419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
17420         Likewise.
17421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
17422         (__libc_pread64): Likewise.
17423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
17424         Likewise.
17425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
17426         (__libc_pwrite64): Likewise.
17427         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
17428         (sync_file_range): Likewise.
17429         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
17430         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
17431         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
17432         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
17433         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
17434         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
17435         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
17436         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
17437         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
17438         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
17439         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
17440         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
17441         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
17442         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
17443         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
17444         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
17445         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
17446         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
17447         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
17448         Likewise.
17449         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
17450         Likewise.
17451         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
17452         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
17453         Likewise.
17454         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
17455         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
17456         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
17457         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
17458         Likewise.
17459         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
17460         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
17461         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
17462         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
17463         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
17464
17465 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
17466
17467         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
17468         Include dl-vdso.
17469         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
17470         Use VDSO routines for gettimeofday, clock_gettime if
17471         available.
17472         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
17473         Declare VDSO symbols.
17474         * sysdeps/unix/sysv/linux/arm/sysdep.h:
17475         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
17476         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17477         * sysdeps/unix/sysv/linux/arm/Versions: Add
17478         __vdso_clock_gettime.
17479
17480 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17481
17482         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
17483         be an inline implementation regardless of library is built within.
17484         (open_not_cancel_2): Likewise.
17485         (__read_nocancel): Likewise.
17486         (__write_nocancel): Likewise.
17487         (openat_not_cancel): Likewise.
17488         (openat_not_cancel_3): Likewise.
17489         (openat64_not_cancel): Likewise.
17490         (openat64_not_cancel_3): Likewise.
17491         (__close_nocancel): Likewise.
17492         (pause_not_cancel): Likewise.
17493         (nanosleep_not_cancel): Likewise.
17494         (sigsuspend_not_cancel): Likewise.
17495
17496 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17497
17498         [BZ #14958]
17499         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
17500         wake-up.
17501         (__pthread_rwlock_rdlock_slow): Likewise.
17502         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
17503         Likewise.
17504         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
17505         Likewise.
17506         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
17507         * nptl/tst-rwlock16.c: New file.
17508         * nptl/Makefile (tests): Add new test.
17509
17510 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17511
17512         [BZ #18324]
17513         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
17514         missing wake-up of readers.
17515         * nptl/tst-rwlock15.c: New file.
17516         * nptl/Makefile (tests): Add new test.
17517
17518 2015-06-03  Roland McGrath  <roland@hack.frob.com>
17519
17520         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
17521         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
17522         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
17523         and __nacl_supply_interface_rtld.
17524         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
17525         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
17526         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
17527         Add __nacl_supply_interface_rtld.
17528         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
17529
17530 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17531
17532         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
17533         isfinite.
17534         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17535         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
17536
17537 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17538
17539         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
17540         __signbit* with standard C99 macros.
17541         * math/e_exp10l.c: Likewise.
17542         * math/e_exp2l.c: Likewise.
17543         * math/e_scalb.c: Likewise.
17544         * math/e_scalbf.c: Likewise.
17545         * math/e_scalbl.c: Likewise.
17546         * math/s_ldexp.c: Likewise.
17547         * math/s_ldexpf.c: Likewise.
17548         * math/s_ldexpl.c: Likewise.
17549         * math/w_atan2.c: Likewise.
17550         * math/w_atan2f.c: Likewise.
17551         * math/w_atan2l.c: Likewise.
17552         * math/w_cosh.c: Likewise.
17553         * math/w_coshf.c: Likewise.
17554         * math/w_coshl.c: Likewise.
17555         * math/w_exp10.c: Likewise.
17556         * math/w_exp10f.c: Likewise.
17557         * math/w_exp10l.c: Likewise.
17558         * math/w_exp2.c: Likewise.
17559         * math/w_exp2f.c: Likewise.
17560         * math/w_exp2l.c: Likewise.
17561         * math/w_fmod.c: Likewise.
17562         * math/w_fmodf.c: Likewise.
17563         * math/w_fmodl.c: Likewise.
17564         * math/w_hypot.c: Likewise.
17565         * math/w_hypotf.c: Likewise.
17566         * math/w_hypotl.c: Likewise.
17567         * math/w_jnl.c: Likewise.
17568         * math/w_lgamma.c: Likewise.
17569         * math/w_lgamma_r.c: Likewise.
17570         * math/w_lgammaf.c: Likewise.
17571         * math/w_lgammaf_r.c: Likewise.
17572         * math/w_lgammal.c: Likewise.
17573         * math/w_lgammal_r.c: Likewise.
17574         * math/w_pow.c: Likewise.
17575         * math/w_powf.c: Likewise.
17576         * math/w_powl.c: Likewise.
17577         * math/w_remainder.c: Likewise.
17578         * math/w_remainderf.c: Likewise.
17579         * math/w_remainderl.c: Likewise.
17580         * math/w_scalb.c: Likewise.
17581         * math/w_scalbf.c: Likewise.
17582         * math/w_scalbl.c: Likewise.
17583         * math/w_scalbln.c: Likewise.
17584         * math/w_scalblnf.c: Likewise.
17585         * math/w_scalblnl.c: Likewise.
17586         * math/w_sinh.c: Likewise.
17587         * math/w_sinhf.c: Likewise.
17588         * math/w_sinhl.c: Likewise.
17589         * math/w_tgamma.c: Likewise.
17590         * math/w_tgammaf.c: Likewise.
17591         * math/w_tgammal.c: Likewise.
17592         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17593         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
17594         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17595         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17596         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17597         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17598         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
17599         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17600         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17601         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17602         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17603         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
17604         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17605         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17606         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17607         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17608         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17609         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
17610         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
17611         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17612         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17613         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
17614         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17615         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17616         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
17617         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17618         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
17619         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17620         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17621         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17622         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
17623         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
17624         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
17625         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
17626         * stdio-common/printf_fp.c: Likewise.
17627         * stdio-common/printf_fphex.c: Likewise.
17628         * stdio-common/printf_size.c: Likewise.
17629
17630 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
17631
17632         [BZ #18470]
17633         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
17634         strnlen.
17635         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
17636         Remove variable.
17637         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
17638         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
17639         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
17640         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
17641         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
17642         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
17643         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
17644         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
17645         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
17646         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
17647
17648         [BZ #18468]
17649         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
17650         weak alias of __wmemchr.  Use libc_hidden_weak.
17651         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
17652         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
17653         instead of wmemchr.
17654
17655 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17656
17657         [BZ #18383]
17658         * elf/tst-tlsalign-extern.c: New file.
17659         * elf/tst-tlsalign-extern-static.c: New file.
17660         * elf/tst-tlsalign-vars.c: New file.
17661         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
17662         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
17663         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
17664         ($(objpfx)tst-tlsalign-extern-static): Likewise.
17665         (test-xfail-tst-tlsalign-extern-static): New variable.
17666
17667 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
17668
17669         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
17670         Use variable name _sc_err instead of err.
17671         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
17672         instead of ret.
17673         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
17674         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
17675         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
17676         (INLINE_SYSCALL): Likewise.
17677
17678         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
17679         * include/string.h (__strnlen): Use libc_hidden_proto.
17680         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
17681         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
17682         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
17683         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
17684         (libc_hidden_def): Undefine and redefine.
17685         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
17686         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
17687         __GI_strnlen.
17688         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
17689         libc_hidden_def.
17690         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
17691
17692         [BZ #18469]
17693         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
17694         weak alias of __towlower.  Use libc_hidden_weak.
17695         (towupper): Rename to __towupper and define as weak alias of
17696         __towupper.  Use libc_hidden_weak.
17697         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
17698         (__towupper): Likewise.
17699         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
17700         __towlower instead of towlower.
17701
17702 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17703
17704         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
17705         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
17706
17707 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17708
17709         * sysdeps/aarch64/libm-test-ulps: Update.
17710
17711 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17712
17713         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
17714         Define.
17715         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17716         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
17717         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17718         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17719         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
17720         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
17721         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
17722
17723 2015-06-01  Martin Sebor  <msebor@redhat.com>
17724
17725         [BZ #18116]
17726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17727         (__setcontext): Use extended four-operand version of mtsf whenever
17728         possible.
17729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17730         (__novec_swapcontext): Likewise.
17731
17732 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
17733
17734         * benchtests/scripts/compare_bench.py: New file.
17735         * benchtests/scripts/import_bench.py (mean): New function.
17736         (split_list): Likewise.
17737         (do_for_all_timings): Likewise.
17738         (compress_timings): Likewise.
17739
17740         * benchtests/scripts/import_bench.py: New file.
17741         * benchtests/scripts/validate_benchout.py: Import import_bench
17742         instead of jsonschema.
17743         (validate_bench): Remove function.
17744         (main): Use import_bench.
17745
17746 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
17747
17748         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
17749         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
17750
17751 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17752
17753         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17754
17755 2015-05-28  Roland McGrath  <roland@hack.frob.com>
17756
17757         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
17758         set THREAD_SELF->tid to a magic value and futex-wake it.
17759         Pass its address to the thread_exit system call.
17760         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
17761         bit is clear.
17762         * sysdeps/nacl/lowlevellock.h: New file.
17763         * sysdeps/nacl/lll_timedwait_tid.c: New file.
17764
17765         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
17766         Add TIMEOUT to current time, don't subtract it.
17767
17768 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
17769
17770         [BZ #2981]
17771         [BZ #18422]
17772         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
17773         ($(objpfx)tst-audit2.out): Also depend on
17774         $(objpfx)tst-auditmod9b.so.
17775         * elf/tst-audit2.c: Include <dlfcn.h>.
17776         (calloc_called): New.
17777         (calloc): Allow to be called more than once.
17778         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
17779
17780 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
17781
17782         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
17783         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
17784
17785 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
17786
17787         * stdlib/monetary.h: Fix comment.
17788
17789 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
17790
17791         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
17792         Avoid using variables in #defines that might cause shadowing.
17793         (INTERNAL_VSYSCALL_CALL): Likewise.
17794
17795 2015-05-26  Roland McGrath  <roland@hack.frob.com>
17796
17797         * sysdeps/nacl/lll_timedlock_wait.c: New file.
17798
17799         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
17800         * nptl/lll_timedlock_wait.c: ... to this new file.
17801         * nptl/Makefile (libpthread-routines): Add it.
17802         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
17803         * nptl/lll_timedwait_tid.c: ... to this new file.
17804         * nptl/Makefile (libpthread-routines): Add it.
17805         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
17806         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
17807         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
17808         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
17809         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
17810         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
17811         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
17812         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
17813         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
17814         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
17815
17816 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17817
17818         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
17819         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17820         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
17821         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
17822         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17823         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17824         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17825         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17826         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17827         * sysdeps/unix/sysv/linux/tile/sysdep.h
17828         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17829         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
17830         using vDSO syscall macro.
17831
17832 2015-05-26  Andriy Rysin  <arysin@gmail.com>
17833
17834         [BZ #17293]
17835         * uk_UA: Fix sorting order for Ukrainian locale
17836
17837 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
17838
17839         * stdlib/monetary.h: Fix comment.
17840
17841 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17842
17843         [BZ #18234]
17844         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
17845         st_mtim and st_ctim members.
17846         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
17847         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
17848         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
17849         (struct stat64): Likewise.
17850         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
17851         (struct stat64): Likewise.
17852         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
17853         (struct stat64): Likewise.
17854
17855 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17856
17857         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
17858         Define and include sysdep-vdso.h.
17859         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
17860         Likewise.
17861         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
17862         Likewise.
17863         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
17864         Define with VDSO_SYMBOL and use PTR_MANGLE.
17865         (__vdso_clock_gettime): Likewise.
17866         (__vdso_clock_getres): Likewise.
17867         (_libc_vdso_platform_setup): Likewise.
17868         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
17869         Likewise.
17870         (_libc_vdso_platform_setup): Likewise.
17871         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
17872         Likewise.
17873         (__vdso_clock_gettime): Likewise.
17874         (__vdso_clock_getres): Likewise.
17875         (__vdso_get_tbfreq): Likewise.
17876         (__vdso_getcpu): Likewise.
17877         (__vdso_time): Likewise.
17878         (__vdso_sigtramp_rt64): Likewise.
17879         (__vdso_signtramp32): Likewise.
17880         (__vdso_sigtramp_rt32): Likewise.
17881         (_libc_vdso_platform_setup): Likewise.
17882         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
17883         Likewise.
17884         (__vdso_clock_gettime): Likewise.
17885         (__vdso_clock_getres): Likewise.
17886         (_libc_vdso_platform_setup): Likewise.
17887         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
17888         Likewise.
17889         (__vdso_clock_gettime): Likewise.
17890         (_libc_vdso_platform_setup): Likewise.
17891         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
17892         Likewise.
17893         (__vdso_getcpu): Likewise.
17894         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
17895         Use VDSO_SYMBOL macro to define.
17896         (__vdso_clock_gettime): Likewise.
17897         (__vdso_clock_getres): Likewise.
17898         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
17899         Likewise.
17900         (__vdso_clock_gettime): Likewise.
17901         (__vdso_clock_getres): Likewise.
17902         (__vdso_get_tbfreq): Likewise.
17903         (__vdso_getcpu): Likewise.
17904         (__vdso_time): Likewise.
17905         (__vdso_sigtramp_rt64): Likewise.
17906         (__vdso_signtramp32): Likewise.
17907         (__vdso_sigtramp_rt32): Likewise.
17908         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
17909         Likewise.
17910         (__vdso_clock_gettime): Likewise.
17911         (__vdso_clock_getres): Likewise.
17912         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
17913         Likewise.
17914         (__vdso_clock_gettime): Likewise.
17915         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
17916         Likewise.
17917         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
17918         macro.
17919         (INTERNAL_VSYSCALL): Likewise.
17920         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
17921         Remove macro.
17922         (INTERNAL_VSYSCALL): Likewise.
17923         (INTERNAL_VSYSCALL_NCS): Likewise.
17924         (INTERNAL_VSYSCALL_CALL): New macro.
17925         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17926         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
17927         Likewise.
17928         (INTERNAL_VSYSCALL): Likewise.
17929         (INTERNAL_VSYSCALL_NCS): Likewise.
17930         (INTERNAL_VSYSCALL_CALL): New macro.
17931         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17933         (INLINE_VSYSCALL): Remove macro.
17934         (INTERNAL_VSYSCALL): Remove macro.
17935         (INTERNAL_VSYSCALL_NCS): Remove macro.
17936         (INTERNAL_VSYSCALL_CALL): New macro.
17937         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
17938         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
17939         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17940         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
17941         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17943         (INLINE_VSYSCALL): Remove macro.
17944         (INTERNAL_VSYSCALL): Likewise.
17945         (INTERNAL_VSYSCALL_NCS): Likewise.
17946         (INTERNAL_VSYSCALL_CALL): New macro.
17947         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
17948         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
17949         PTR_DEMANGLE on vDSO pointer.
17950         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17951         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
17952         macro.
17953         (INTERNAL_SYSCALL): Likewise.
17954         (INTERNAL_VSYSCALL_NCS): Remove macro.
17955         (INTERNAL_VSYSCALL_CALL): New macro.
17956         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
17957         Remove macro.
17958         (INTERNAL_VSYSCALL): Likewise.
17959         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
17960         sysdep-vdso.h instead of libc-vdso.h.
17961         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
17962         definition.
17963         (INLINE_VSYSCALL): Likewise.
17964         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
17965         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
17966         definition.
17967         (INLINE_VSYSCALL): Likewise.
17968         (INTERNAL_VSYSCALL): Likewise.
17969         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17970         * sysdeps/unix/sysv/linux/timespec_get.c
17971         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17972         (timespec_get): Use ANSI prototype.
17973         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
17974         and definition for Linux.
17975
17976 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
17977
17978         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
17979         * include/libc-symbols.h: libmvec_hidden_* macro series added.
17980
17981 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17982
17983         [BZ #2981]
17984         [BZ #18410]
17985         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
17986         for missing DT_PLTRELSZ.
17987
17988 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17989
17990         Remove obsolete aliases that broke 'locale -a'
17991         [BZ #18412]
17992         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
17993         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
17994         breaking some applications that use 'locale -a' output.
17995         Change the encoding of this file from Latin-1 to ASCII to avoid
17996         other potential problems with people grepping this file.
17997
17998 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17999
18000         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
18001         -fasynchronous-unwind-tables.
18002         (CFLAGS-sendto.c): Likewise.
18003         (CFLAGS-sendmsg.c): Likewise.
18004         (CFLAGS-connect.c): Likewise.
18005         (CFLAGS-recvmsg.c): Likewise.
18006         (CFLAGS-recvfrom.c): Likewise.
18007         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
18008         (SOCKETCALL): New macro: non-cancellable socketcall.
18009         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
18010         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
18011         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
18012         * sysdeps/unix/sysv/linux/accept.c: New file.
18013         * sysdeps/unix/sysv/linux/bind.c: Likewise.
18014         * sysdeps/unix/sysv/linux/connect.c: Likewise.
18015         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
18016         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
18017         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
18018         * sysdeps/unix/sysv/linux/listen.c: Likewise.
18019         * sysdeps/unix/sysv/linux/recv.c: Likewise.
18020         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
18021         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
18022         * sysdeps/unix/sysv/linux/send.c: Likewise.
18023         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
18024         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
18025         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
18026         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
18027         * sysdeps/unix/sysv/linux/socket.c: Likewise.
18028         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
18029         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
18030         prototype.
18031         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
18032         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18033         instead of __internal_xxx function.
18034         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
18035         prototype.
18036         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
18037         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18038         instead of __internal_xxx function.
18039         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
18040         prototype.
18041         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
18042         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18043         instead of __internal_xxx function.
18044         * sysdeps/unix/sysv/linux/accept.S: Remove file.
18045         * sysdeps/unix/sysv/linux/bind.S: Likewise.
18046         * sysdeps/unix/sysv/linux/connect.S: Likewise.
18047         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
18048         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
18049         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
18050         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
18051         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
18052         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
18053         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
18054         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
18055         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
18056         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
18057         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
18058         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
18059         * sysdeps/unix/sysv/linux/listen.S: Likewise.
18060         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
18061         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
18062         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
18063         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
18064         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
18065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
18066         * sysdeps/unix/sysv/linux/recv.S: Likewise.
18067         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
18068         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
18069         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
18070         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
18071         * sysdeps/unix/sysv/linux/send.S: Likewise.
18072         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
18073         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
18074         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
18075         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
18076         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
18077         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
18078         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
18079         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
18080         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
18081         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
18082         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
18083         socketcall is implemented in GLIBC.
18084
18085 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
18086
18087         * soft-fp/fmadf4.c: Include <libc-internal.h>.
18088         (__fma): Ignore uninitialized warnings around packing.
18089         * soft-fp/fmasf4.c: Include <libc-internal.h>.
18090         (__fmaf): Ignore uninitialized warnings around packing.
18091         * soft-fp/fmatf4.c: Include <libc-internal.h>.
18092         (__fmal): Ignore uninitialized warnings around packing.
18093
18094         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
18095         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18096         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
18097         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18098
18099         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
18100         switch statement into default case.
18101         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
18102
18103         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
18104         a conditional in forcing "inexact".
18105         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
18106         Likewise.
18107
18108 2015-05-22  Roland McGrath  <roland@hack.frob.com>
18109
18110         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
18111         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
18112         for each INTERNAL_SYSCALL use.
18113
18114 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
18115
18116         [BZ #438]
18117         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
18118         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
18119         variable.
18120
18121         [BZ #18444]
18122         * string/basename.c (basename): Rename to __basename and define as
18123         weak alias of __basename.  Use libc_hidden_weak.
18124         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
18125         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
18126         __basename instead of basename.
18127         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
18128         Remove variable.
18129         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
18130
18131 2015-05-18  Florian Weimer  <fweimer@redhat.com>
18132
18133         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
18134         (_IO_JUMPS_FILE_plus): New.
18135         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
18136         _IO_CAST_FIELD_ACCESS.
18137         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
18138         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
18139         * libio/freopen.c (freopen): Likewise.
18140         * libio/freopen64.c (freopen64): Likewise.
18141         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
18142         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
18143         * libio/iofwide.c (_IO_fwide): Likewise.
18144         * libio/memstream.c (open_memstream): Likewise.
18145         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18146         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
18147         * libio/oldiopopen.c (_IO_old_popen): Likewise.
18148
18149 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
18150
18151         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
18152         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
18153         NADJ.
18154         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
18155         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
18156         NADJ.
18157         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
18158         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
18159         NADJ.
18160
18161         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
18162         (p == 4) case.
18163
18164         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
18165         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
18166         Remove variable.
18167         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
18168         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
18169         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
18170
18171 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18172
18173         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
18174         Adjust jump table label generation macros.
18175
18176 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18177
18178         * stdio-common/vfprintf.c (vfprintf): Move local variables
18179         args_malloced, specs, specs_malloced, and the code after
18180         do_positional to the printf_positional function.
18181         (printf_positional): New function.
18182
18183 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18184
18185         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
18186         function.
18187         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
18188         STEP4_TABLE, process_arg): Move macro definitions
18189         out of the vfprintf function.  (Cosmetic change only.)
18190
18191 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
18192
18193         * benchtests/Makefile (stdio-common-bench): Define.
18194         (benchset): Add stdio-common-bench.
18195         * sprintf-inputs: New file.
18196         * sprintf-source.c: New file.
18197
18198 2015-05-21  Andreas Schwab  <schwab@suse.de>
18199
18200         [BZ #13028]
18201         [BZ #17053]
18202         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
18203         of struct __res_state.
18204         * resolv/res_send.c (__libc_res_nsend): Likewise.
18205         (get_nsaddr): New function.
18206         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
18207         statp directly.
18208
18209 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
18210
18211         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
18212         -D_POSIX_C_SOURCE=199506L.
18213
18214         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
18215
18216         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
18217         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
18218         Do not mention otherwise.
18219         [POSIX] (_XOPEN_VERSION): Do not expect.
18220         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
18221         [POSIX] (_POSIX2_C_BIND): Likewise.
18222         [POSIX] (_POSIX2_VERSION): Likewise.
18223         [POSIX] (_XOPEN_XPG2): Likewise.
18224         [POSIX] (_XOPEN_XPG3): Likewise.
18225         [POSIX] (_XOPEN_XPG4): Likewise.
18226         [POSIX] (_XOPEN_UNIX): Likewise.
18227         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
18228         [POSIX] (_POSIX_BARRIERS): Likewise.
18229         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
18230         [POSIX] (_POSIX_CPUTIME): Likewise.
18231         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
18232         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
18233         [POSIX] (_POSIX_SHELL): Likewise.
18234         [POSIX] (_POSIX_SPAWN): Likewise.
18235         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
18236         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
18237         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
18238         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
18239         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
18240         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
18241         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
18242         [POSIX] (_XBS5_LP64_OFF64): Likewise.
18243         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
18244         [POSIX] (_POSIX_TIMEOUTS): Likewise.
18245         [POSIX] (_POSIX2_PBS): Likewise.
18246         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
18247         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
18248         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
18249         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
18250         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
18251         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
18252         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
18253         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
18254         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
18255         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
18256         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
18257         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
18258         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
18259         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
18260         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
18261         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
18262         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
18263         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
18264         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
18265         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
18266         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
18267         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
18268         [POSIX] (_SC_2_C_BIND): Likewise.
18269         [POSIX] (_SC_2_C_VERSION): Likewise.
18270         [POSIX] (_SC_2_PBS): Likewise.
18271         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
18272         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
18273         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
18274         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
18275         [POSIX] (_SC_2_PBS_TRACK): Likewise.
18276         [POSIX] (_SC_ATEXIT_MAX): Likewise.
18277         [POSIX] (_SC_BARRIERS): Likewise.
18278         [POSIX] (_SC_BASE): Likewise.
18279         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
18280         [POSIX] (_SC_DEVICE_IO): Likewise.
18281         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
18282         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
18283         [POSIX] (_SC_FD_MGMT): Likewise.
18284         [POSIX] (_SC_FIFO): Likewise.
18285         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
18286         [POSIX] (_SC_FILE_LOCKING): Likewise.
18287         [POSIX] (_SC_FILE_SYSTEM): Likewise.
18288         [POSIX] (_SC_IOV_MAX): Likewise.
18289         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
18290         [POSIX] (_SC_NETWORKING): Likewise.
18291         [POSIX] (_SC_PAGE_SIZE): Likewise.
18292         [POSIX] (_SC_PASS_MAX): Likewise.
18293         [POSIX] (_SC_PIPE): Likewise.
18294         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
18295         [POSIX] (_SC_REGEXP): Likewise.
18296         [POSIX] (_SC_SHELL): Likewise.
18297         [POSIX] (_SC_SIGNALS): Likewise.
18298         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
18299         [POSIX] (_SC_SPIN_LOCKS): Likewise.
18300         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
18301         [POSIX] (_SC_USER_GROUPS): Likewise.
18302         [POSIX] (_SC_USER_GROUPS_R): Likewise.
18303         [POSIX] (_SC_STREAMS): Likewise.
18304         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
18305         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
18306         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
18307         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
18308         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
18309         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
18310         [POSIX] (_PC_FILESIZEBITS): Likewise.
18311         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
18312         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
18313         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
18314         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
18315         [POSIX] (uid_t): Likewise.
18316         [POSIX] (gid_t): Likewise.
18317         [POSIX] (off_t): Likewise.
18318         [POSIX] (pid_t): Likewise.
18319         [POSIX] (cuserid): Allow.
18320         (_SC_2_CHAR_TERM): Require constant.
18321         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
18322         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
18323         variable.
18324
18325 2015-05-20  Roland McGrath  <roland@hack.frob.com>
18326
18327         * sysdeps/nacl/pthread-pids.h: New file.
18328         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
18329         (create_thread): Use __nacl_get_tid to initialize PD->tid.
18330
18331         * nptl/pthread-pids.h: New file.
18332         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
18333         * nptl/nptl-init.c: Include <pthread-pids.h>.
18334         (__pthread_initialize_minimal_internal):
18335         Call __pthread_initialize_pids instead of set_tid_address syscall.
18336
18337         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
18338         * sysdeps/posix/usleep.c: ... here.
18339
18340 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18341
18342         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
18343         call_pselect6 object.
18344         [$(subdir) = io]: Remove call_sync_file_range object.
18345         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
18346         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
18347         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
18348         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
18349
18350 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
18351
18352         * math/s_cproj.c: Add include "math_private.h".
18353         * math/s_cprojf.c: Likewise.
18354         * math/s_cprojl.c: Likewise.
18355
18356 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
18357
18358         [BZ #18244]
18359         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
18360         high mantissa bit when testing whether P is a NaN.
18361         * math/libm-test.inc (remainder_test_data): Add more tests.
18362         (remquo_test_data): Likewise.
18363
18364         [BZ #18049]
18365         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
18366         below -32, return the argument, with underflow if subnormal.
18367         * math/auto-libm-test-in: Add more tests of atanh.
18368         * math/auto-libm-test-out: Regenerated.
18369
18370 2015-05-19  Roland McGrath  <roland@hack.frob.com>
18371
18372         [BZ #18434]
18373         * nptl/tst-sem15.c: New file.
18374         * nptl/Makefile (tests): Add it.
18375         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
18376         s/<</>>/ to fix typo in EOVERFLOW check.
18377         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
18378
18379 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18380
18381         * manual/strings.texi (envz_remove): Fix typo in safety
18382         annotations.
18383
18384 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18385             Steve Ellcey  <sellcey@imgtec.com>
18386
18387         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
18388         in order to avoid strict alias warnings.
18389         (iruserok_af): Ditto for ra.
18390
18391 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
18392
18393         [BZ #17581]
18394         * malloc/hooks.c
18395         (magicbyte): Convert to a function and avoid returning 0x01.
18396         (mem2mem_check): Avoid using a length byte equal to the magic byte.
18397         (mem2chunk_check): Fix unsigned comparisons to zero.
18398         Hoist defs of sz and magic.
18399
18400 2015-05-19  Richard Henderson  <rth@redhat.com>
18401
18402         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
18403
18404         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18405
18406 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18407
18408         [BZ #16159]
18409         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
18410         * malloc/arena.c (arena_lock): Check if arena is corrupt.
18411         (reused_arena): Find a non-corrupt arena.
18412         (heap_trim): Pass arena to unlink.
18413         * malloc/hooks.c (malloc_check_get_size): Pass arena to
18414         malloc_printerr.
18415         (top_check): Likewise.
18416         (free_check): Likewise.
18417         (realloc_check): Likewise.
18418         * malloc/malloc.c (malloc_printerr): Add arena argument.
18419         (unlink): Likewise.
18420         (munmap_chunk): Adjust.
18421         (ARENA_CORRUPTION_BIT): New macro.
18422         (arena_is_corrupt): Likewise.
18423         (set_arena_corrupt): Likewise.
18424         (sysmalloc): Use mmap if there are no usable arenas.
18425         (_int_malloc): Likewise.
18426         (__libc_malloc): Don't fail if arena_get returns NULL.
18427         (_mid_memalign): Likewise.
18428         (__libc_calloc): Likewise.
18429         (__libc_realloc): Adjust for additional argument to
18430         malloc_printerr.
18431         (_int_free): Likewise.
18432         (malloc_consolidate): Likewise.
18433         (_int_realloc): Likewise.
18434         (_int_memalign): Don't touch corrupt arenas.
18435         * malloc/tst-malloc-backtrace.c: New test case.
18436
18437         * Makefile (summarize-tests): Fix return value on success.
18438
18439         * manual/string.texi (Envz Functions): Add envz_remove.
18440
18441 2015-05-18  Roland McGrath  <roland@hack.frob.com>
18442
18443         * sysdeps/posix/opendir.c: Include <stdbool.h>.
18444         (invalid_name): New function, broken out of ...
18445         (__opendirat): ... here.  Call it.
18446         (need_isdir_precheck): New function, broken out of ...
18447         (__opendirat): ... here.  Call it.
18448         Use __fxstatat64, not __xstatat64.
18449         (opendir_oflags): New function, broken out of ...
18450         (__opendirat): ... here.  Call it.
18451         (opendir_tail): New function, broken out of ...
18452         (__opendirat): ... here.  Call it.
18453         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
18454         opendir_tail, rather than punting to __opendirat.
18455         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
18456
18457 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18458
18459         * .gitignore: Ignore generated *.pyc.
18460
18461 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
18462
18463         * include/stdio.h: Define __need_wint_t.
18464         * test-skeleton.c: Avoid `for' loop initial declaration.
18465         * nptl/tst-initializers1.c: Use test-skeleton.c.
18466
18467 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18468
18469         [BZ #18418]
18470         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
18471
18472 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18473
18474         [BZ #16352]
18475         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
18476         (__ieee754_atanh): Force underflow exception for results with
18477         small absolute value.
18478         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
18479         (__ieee754_atanhf): Force underflow exception for results with
18480         small absolute value.
18481         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
18482         (__ieee754_atanh): Force underflow exception for results with
18483         small absolute value.
18484         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
18485         (__ieee754_atanhf): Force underflow exception for results with
18486         small absolute value.
18487         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
18488         (__ieee754_atanhl): Force underflow exception for results with
18489         small absolute value.
18490         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
18491         (__ieee754_atanhl): Force underflow exception for results with
18492         small absolute value.
18493         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
18494         (__ieee754_atanhl): Force underflow exception for results with
18495         small absolute value.
18496         * math/auto-libm-test-in: Do not allow missing underflow
18497         exceptions from atanh.
18498         * math/auto-libm-test-out: Regenerated.
18499
18500         [BZ #18221]
18501         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
18502         2**-28 as threshold for returning x or +/- 1/x.
18503         * math/auto-libm-test-in: Add more tests of tan.
18504         * math/auto-libm-test-out: Regenerated.
18505
18506         [BZ #18220]
18507         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
18508         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
18509         * math/auto-libm-test-in: Add another test of lgamma.
18510         * math/auto-libm-test-out: Regenerated.
18511
18512 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
18513
18514         * stdio-common/printf_fp.c (___printf_fp): Use abs.
18515         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
18516         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
18517         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
18518         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
18519         (ADD2A): Use fabs.  (SUB2A): Use fabs.
18520         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
18521         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
18522         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
18523         (log1): Use fabs.  (my_log2): Use fabs.
18524         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
18525         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
18526         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
18527         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
18528         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
18529         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
18530         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
18531         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
18532         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
18533         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
18534         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
18535
18536 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18537
18538         [BZ #18217]
18539         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
18540         as threshold for returning 1 - x.
18541         * math/auto-libm-test-in: Add more tests of erfc.
18542         * math/auto-libm-test-out: Regenerated.
18543
18544 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
18545
18546         [BZ #18196]
18547         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
18548         threshold for large arguments.
18549         * math/auto-libm-test-in: Add another test of atan.
18550         * math/auto-libm-test-out: Regenerated.
18551
18552         [BZ #16339]
18553         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
18554         (__log1p): Force underflow exception for results with small
18555         absolute value.
18556         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
18557         (__log1pf): Force underflow exception for results with small
18558         absolute value.
18559         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
18560         (__log1p): Force underflow exception for results with small
18561         absolute value.
18562         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
18563         (__log1pf): Force underflow exception for results with small
18564         absolute value.
18565         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
18566         (__log1pl): Force underflow exception for results with small
18567         absolute value.
18568         * math/auto-libm-test-in: Do not allow missing underflow
18569         exceptions from log1p.
18570         * math/auto-libm-test-out: Regenerated.
18571
18572 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
18573             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18574
18575         [BZ #16704]
18576         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
18577
18578 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
18579
18580         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
18581         (libmvec): New variable.
18582         * configure.ac: Added option for mathvec build.
18583         * configure: Regenerated.
18584         * mathvec/Depend: New file.
18585         * mathvec/Makefile: New file.
18586         * shlib-versions: Added libmvec.
18587         * math/Makefile: Added rule for libm.so installation.
18588
18589         * bits/math-vector.h: New file.
18590         * bits/libm-simd-decl-stubs.h: New header.
18591         * math/Makefile (headers): Added new header
18592         libm-simd-decl-stubs.h.
18593         * math/math.h (__MATHCALL_VEC): New macro.
18594
18595         * math/gen-libm-have-vector-test.sh: Script generates series of macros
18596         for conditions in testing functions.
18597         * math/Makefile: Added call of libm-have-vector-test.sh.
18598         * math/libm-test.inc (HAVE_VECTOR): New macros.
18599
18600         * math/libm-test.inc: START refactored.
18601         * math/test-double.c (TEST_MATHVEC): Add define.
18602         * math/test-float.c: Likewise.
18603         * math/test-idouble.c: Likewise.
18604         * math/test-ifloat.c: Likewise.
18605         * math/test-ildoubl.c: Likewise.
18606         * math/test-ldouble.c: Likewise.
18607         * sysdeps/generic/math-tests-arch.h
18608         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
18609         architecture check.
18610
18611         * math/test-double.c (FUNC_TEST): New macro.
18612         * math/test-float.c: Likewise.
18613         * math/test-idouble.c: Likewise.
18614         * math/test-ifloat.c: Likewise.
18615         * math/test-ildoubl.c: Likewise.
18616         * math/test-ldouble.c: Likewise.
18617         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
18618
18619 2015-05-13  Roland McGrath  <roland@hack.frob.com>
18620
18621         * sysdeps/nacl/fdopendir.c: New file.
18622
18623         * dirent/scandir-tail.c: New file.
18624         * dirent/scandir64-tail.c: New file.
18625         * dirent/Makefile (routines): Add them.
18626         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
18627         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
18628         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
18629         [!SCANDIR] (SCANDIR_TAIL): New macro.
18630         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
18631         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
18632         (SCANDIRAT): Macro removed.
18633         (SCANDIR_TAIL): New macro.
18634         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
18635         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
18636         (SCANDIRAT): Just call __opendirat and __scandir_tail.
18637         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
18638         (READDIR): Macro removed.
18639         (SCANDIR_TAIL): New macro.
18640         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
18641         (SCANDIR_TAIL): New macro.
18642
18643         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
18644         * dirent/scandir-cancel.c: ... to this new file.
18645         * dirent/Makefile (routines): Add it.
18646         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
18647         * sysdeps/unix/sysv/linux/i386/scandir64.c
18648         (SKIP_SCANDIR_CANCEL): Macro removed.
18649         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
18650
18651         * dirent/tst-scandir.c: New file.
18652         * dirent/tst-scandir64.c: New file.
18653         * dirent/Makefile (tests): Add them.
18654
18655 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
18656
18657         [BZ #18409]
18658         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
18659
18660 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18661
18662         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
18663         list.
18664
18665 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
18666
18667         * benchtests/bench-strcoll.c: New benchmark.
18668         * benchtests/Makefile: Generate locales and run benchmark.
18669         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
18670         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
18671         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
18672         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
18673         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
18674         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
18675         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
18676         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
18677         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
18678         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
18679         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
18680         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
18681         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
18682         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
18683         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
18684         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
18685         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
18686         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
18687         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
18688         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
18689         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
18690         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
18691         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
18692         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
18693
18694 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
18695
18696         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
18697         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18698
18699 2015-05-12  Roland McGrath  <roland@hack.frob.com>
18700
18701         * posix/uname-values.h: New file.
18702         * posix/uname.c: Include that instead of <config-name.h>.
18703         * sysdeps/nacl/uname-values.h: New file.
18704         * sysdeps/arm/nacl/uname-values.h: New file.
18705
18706 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
18707
18708         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
18709         splitting into fields.
18710
18711 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
18712
18713         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
18714         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
18715         * locale/localeinfo.h: Add enum collation_encoding_type.
18716         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
18717         * programs/ld-collate.c (collate_output): Add encoding type info.
18718         * string/strcoll_l.c (STRDIFF): New function.
18719         * (STRCOLL): Use STRDIFF to skip over equal prefix.
18720         * wcsmbs/wcscoll_l.c: Define STRDIFF.
18721
18722 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
18723
18724         [BZ #18397]
18725         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
18726         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
18727         <fpu_control.h> instead of <math/fpu_control.c>.
18728         * sysdeps/mips/mips32/fpu/Makefile: New file.
18729
18730 2015-05-11  Andreas Schwab  <schwab@suse.de>
18731
18732         [BZ #18007]
18733         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
18734         nss_endgrent.
18735         (_nss_compat_endgrent): Call nss_endgrent.
18736         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
18737         nss_endpwent.
18738         (_nss_compat_endpwent): Call nss_endpwent.
18739         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
18740         needent, call nss_setspent only if non-zero.
18741         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
18742         (internal_endspent): Don't call nss_endspent.
18743         (_nss_compat_endspent): Call nss_endspent.
18744         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
18745         Remove.  All uses removed.
18746         (internal_setent): Remove parameter stayopen, add parameter
18747         stream.  Use it instead of global variable.
18748         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
18749         (internal_endent, internal_getent): Add parameter stream.  Use it
18750         instead of global variable.
18751         (CONCAT(_nss_files_end,ENTNAME))
18752         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
18753         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
18754         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
18755         uses removed.
18756         (internal_setent, internal_endent): Add parameter stream.  Use it
18757         instead of global variable.
18758         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
18759         stream.
18760         (get_next_alias): Add parameter stream.
18761         (_nss_files_getaliasent_r): Pass global stream.
18762         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
18763         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
18764         (_nss_files_gethostbyname4_r): Pass local stream to
18765         internal_setent, internal_getent and internal_endent.  Remove
18766         locking.
18767
18768 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
18769
18770         * tst-strfmon1.c (tests): Update expected currency symbol.
18771
18772 2015-05-08  Roland McGrath  <roland@hack.frob.com>
18773
18774         * sysdeps/nacl/gethostname.c: New file.
18775
18776 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
18777
18778         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
18779         and sinh.
18780         * math/auto-libm-test-out: Regenerated.
18781         * sysdeps/i386/fpu/libm-test-ulps: Update.
18782         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18783
18784 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
18785
18786         [BZ #18125]
18787         * stdlib/tst-setcontext3.c: New file.
18788         * stdlib/tst-setcontext3.sh: New file.
18789         * stdlib/Makefile (tests): Add tst-setcontext3.
18790         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
18791         to verify test program created output file.
18792         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
18793         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
18794         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
18795         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
18796
18797 2015-05-06  Roland McGrath  <roland@hack.frob.com>
18798
18799         [BZ #18383]
18800         * elf/tst-tlsalign.c: New file.
18801         * elf/tst-tlsalign-static.c: New file.
18802         * elf/tst-tlsalign-lib.c: New file.
18803         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
18804         (tests-static): Add tst-tlsalign-static.
18805         (modules-names): Add tst-tlsalign-lib.
18806         (test-xfail-tst-tlsalign): New variable.
18807         (test-xfail-tst-tlsalign-static): New variable.
18808
18809         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
18810         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
18811
18812 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
18813
18814         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
18815         csqrt, erfc, sin and sincos.
18816         * math/auto-libm-test-out: Regenerated.
18817         * sysdeps/i386/fpu/libm-test-ulps: Update.
18818         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18819
18820 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18821
18822         * sysdeps/aarch64/libm-test-ulps: Update.
18823
18824 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
18825
18826         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
18827         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
18828         * math/auto-libm-test-out: Regenerated.
18829         * sysdeps/i386/fpu/libm-test-ulps: Update.
18830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18831
18832 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
18833
18834         [BZ #18265]
18835         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
18836         (wcsncpy): Likewise.
18837
18838 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18839
18840         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
18841         Assume __ASSUME_FALLOCATE is always true.
18842         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18843         (__posix_fallocate64_l64): Likweise.
18844         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
18845         (posix_fallocate): Likewise.
18846         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
18847         (__posix_fallocate64_l64): Likewise.
18848         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18849         [!__ASSUME_FALLOCATE]: Add comment.
18850
18851 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18852
18853         * sysdeps/unix/sysv/linux/i386/Makefile
18854         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
18855         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
18856         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
18857         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18858         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18859         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
18860         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
18861
18862 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
18863
18864         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
18865         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
18866         tgamma.
18867         * math/auto-libm-test-out: Regenerated.
18868         * sysdeps/i386/fpu/libm-test-ulps: Update.
18869         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18870
18871 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18872
18873         * math/auto-libm-test-in: Add more tests of tgamma.
18874         * math/auto-libm-test-out: Regenerated.
18875         * sysdeps/i386/fpu/libm-test-ulps: Update.
18876         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18877
18878         * math/auto-libm-test-in: Add more tests of tanh.
18879         * math/auto-libm-test-out: Regenerated.
18880         * sysdeps/i386/fpu/libm-test-ulps: Update.
18881         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18882
18883         * math/auto-libm-test-in: Add more tests of tan.
18884         * math/auto-libm-test-out: Regenerated.
18885         * sysdeps/i386/fpu/libm-test-ulps: Update.
18886         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18887
18888         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
18889         * math/auto-libm-test-out: Regenerated.
18890         * sysdeps/i386/fpu/libm-test-ulps: Update.
18891         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18892
18893         * math/auto-libm-test-in: Add another test of pow.
18894         * math/auto-libm-test-out: Regenerated.
18895         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18896
18897         * math/auto-libm-test-in: Add more tests of lgamma.
18898         * math/auto-libm-test-out: Regenerated.
18899         * sysdeps/i386/fpu/libm-test-ulps: Update.
18900         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18901
18902         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
18903         log1p.
18904         * math/auto-libm-test-out: Regenerated.
18905         * sysdeps/i386/fpu/libm-test-ulps: Update.
18906         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18907
18908 2015-05-01  Mark Wielaard  <mjw@redhat.com>
18909
18910         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
18911         Elf64_Chdr structs and ELFCOMPRESS constants.
18912
18913 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18914
18915         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
18916         expm1.
18917         * math/auto-libm-test-out: Regenerated.
18918         * sysdeps/i386/fpu/libm-test-ulps: Update.
18919         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18920
18921         * math/auto-libm-test-in: Add more tests of erf and erfc.
18922         * math/auto-libm-test-out: Regenerated.
18923         * sysdeps/i386/fpu/libm-test-ulps: Update.
18924         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18925
18926 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18927
18928         * config.h.in (HAVE_AARCH64_BE): Add.
18929
18930 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
18931
18932         * math/auto-libm-test-in: Add more tests of csqrt.
18933         * math/auto-libm-test-out: Regenerated.
18934         * sysdeps/i386/fpu/libm-test-ulps: Update.
18935         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18936
18937         * math/auto-libm-test-in: Add more tests of cosh and sinh.
18938         * math/auto-libm-test-out: Regenerated.
18939         * sysdeps/i386/fpu/libm-test-ulps: Update.
18940         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18941
18942         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
18943
18944 2015-04-29  Roland McGrath  <roland@hack.frob.com>
18945
18946         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
18947         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
18948
18949         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
18950         (euidaccess, eaccess): Define as weak aliases.
18951
18952         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
18953         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
18954         but __suseconds_t is often 'long int' so some sources assume that
18955         type is being used (e.g. they use %ld to print tv_usec).
18956
18957 2015-04-29  Florian Weimer  <fweimer@redhat.com>
18958
18959         [BZ #18007]
18960         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
18961         (CVE-2014-8121)
18962         * nss/tst-nss-getpwent.c: New file.
18963         * nss/Makefile (tests): Add new test.
18964
18965 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
18966
18967         [BZ #18346]
18968         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
18969         exponents less than 48 as cases where high part of mantissa needs
18970         examining to determine whether argument is integral.
18971         * math/libm-test.inc (round_test_data): Add more tests.
18972
18973 2015-04-28  Mark Wielaard  <mjw@redhat.com>
18974
18975         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
18976
18977 2015-04-27  David S. Miller  <davem@davemloft.net>
18978
18979         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
18980         __tls_get_addr.
18981         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
18982
18983 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
18984
18985         [BZ#18333]
18986         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
18987
18988 2015-04-27  Florian Weimer  <fweimer@redhat.com>
18989
18990         [BZ#18333]
18991         * time/tzset.c (parse_tzname): Return error on memory allocation
18992         failure.
18993         * test-skeleton.c (struct temp_name_list): Change type of name
18994         member to non-const.
18995         (add_temp_file): Create a copy of the file name.
18996         (delete_temp_files): Deallocate memory.
18997         (create_temp_file): Add comment.
18998
18999 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19000
19001         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
19002         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
19003
19004 2015-04-24  Roland McGrath  <roland@hack.frob.com>
19005
19006         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
19007         * sysdeps/arm/configure: Regenerated.
19008
19009 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19010
19011         [BZ #17715]
19012         * time/tzfile.c (__tzfile_read): Check for large values of
19013         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
19014         * time/tzset.c (__tzstring_len): New function, based on the old
19015         __tzstring function.
19016         (__tzstring): Call __tzstring_len.
19017         (parse_tzname): New helper function extracted from
19018         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
19019         the input string.
19020         (parse_offset): New helper function extracted from
19021         __tzset_parse_tz.  Replace switch with fallthrough with
19022         initialization before sscanf.
19023         (parse_rule): Likewise.
19024         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
19025         new-style function definition.
19026         * timezone/Makefile (tests): Add tst-tzset.
19027         (tst-tzset.out): Dependencies on time zone files.
19028         (tst-tzset-ENV): Set TZDIR.
19029         (testdata/XT%): Copy crafted time zone files.
19030         * timezone/README: Mention crafted time zone files.
19031         * timezone/testdata/XT1, timezone/testdata/XT2,
19032         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
19033         files.
19034         * timezone/tst-tzset.c: New test.
19035
19036 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19037
19038         * Makeconfig (+gccwarn): Remove -Winline.
19039
19040 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
19041
19042         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
19043
19044 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
19045
19046         * NEWS: Mention sysconf() cache information support for s390.
19047         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
19048
19049 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
19050
19051         * math/k_casinh.c (__kernel_casinh): Use __copysign.
19052         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
19053         (__nearbyint): Likewise.
19054         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
19055         (copysignl): Likewise.
19056
19057 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
19058
19059         [BZ #18287]
19060         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
19061         based on padding.  (CVE-2015-1781)
19062
19063 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19064
19065         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
19066         libc-vdso.h.
19067         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
19068         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
19069         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
19070         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
19071         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
19072         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
19073         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
19074         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
19075         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
19076         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
19077         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
19078         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
19079         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
19080         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
19081         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
19082         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
19083         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
19084         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
19085         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
19086         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
19087         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
19088         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
19089         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
19090
19091 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
19092
19093         * stdlib/setenv.c (__add_to_environ):
19094         Dump core quickly if setenv (..., NULL, ...) is called.
19095         This time, do it the right way, and pacify GCC with a pragma.
19096
19097 2015-04-17  Roland McGrath  <roland@hack.frob.com>
19098
19099         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
19100         IMAP->l_prev cannot be null, and #if out the code for the contrary
19101         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
19102         believe that NS (&_dl_ns[NSID]) could point outside the array.
19103
19104         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
19105         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
19106         before using NSID as an index.
19107
19108 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
19109
19110         [BZ #17825]
19111         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
19112         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
19113         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
19114
19115 2015-04-17  Roland McGrath  <roland@hack.frob.com>
19116
19117         Add preliminary port to Google Native Client on ARM.
19118         * abi-tags (.*-.*-nacl.*): New entry.
19119         * sysdeps/arm/nacl: New directory.
19120         * sysdeps/nacl: New directory.
19121
19122 2015-04-16  David S. Miller  <davem@davemloft.net>
19123
19124         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
19125         lowlevellock-futex.h
19126
19127 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
19128
19129         * sysdeps/tile/configure.ac: New file.
19130         * sysdeps/tile/configure: Regenerated.
19131
19132 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19133
19134         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
19135         conditionals for weak_alias and libc_hidden_weak.
19136         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
19137         libc_hidden_weak and weak_alias.
19138         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
19139         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
19140         and weak_alias for static one.
19141
19142 2015-04-15  David S. Miller  <davem@davemloft.net>
19143
19144         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
19145
19146 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
19147
19148         [BZ #18206]
19149         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
19150           Use signed comparision instead of substraction to avoid
19151           overflow bug.
19152         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
19153           Take the sign of ret.
19154         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
19155           Do not expect precise return values. Only the sign matters.
19156         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
19157         * wcsmbs/test-wcsncmp.c: New File.
19158         * string/test-strncmp.c: Add wcsncmp support.
19159
19160 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
19161
19162         [BZ #6792]
19163         * math/w_log1p.c: New file.
19164         * math/w_log1pf.c: Likewise.
19165         * math/w_log1pl.c: Likewise.
19166         * math/Makefile (libm-calls): Add w_log1p.
19167         * math/s_log1pl.c (log1pl): Remove weak_alias.
19168         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
19169         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
19170         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
19171         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
19172         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
19173         [NO_LONG_DOUBLE] (log1pl): Likewise.
19174         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
19175         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
19176         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
19177         (log1p): Remove long_double_symbol.
19178         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
19179         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
19180         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
19181         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
19182         remove weak_alias for corresponding log1p function.
19183         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
19184         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
19185         * sysdeps/ia64/fpu/w_log1p.c: New file.
19186         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
19187         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
19188         * math/libm-test.inc (log1p_test_data): Add errno expectations.
19189
19190 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
19191
19192         [BZ #18247]
19193         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
19194         decimal exponent by 1.
19195         * stdlib/tst-strtod-round-data: Add more tests.
19196         * stdlib/tst-strtod-round.c (tests): Regenerated.
19197
19198 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
19199
19200         * math/auto-libm-test-in: Add more tests of clog and clog10.
19201         * math/auto-libm-test-out: Regenerated.
19202         * sysdeps/i386/fpu/libm-test-ulps: Update.
19203         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19204
19205 2015-04-09  Roland McGrath  <roland@hack.frob.com>
19206
19207         * Makeconfig (module-cppflags): Exclude all .v.i files.
19208         (skip-module-cppflags): Variable removed.
19209
19210         * configure.ac (libc_config_ok): Initialize before reading
19211         preconfigure scripts, not after.
19212         * configure: Regenerated.
19213
19214         * test-skeleton.c (TIMEOUT): Move #define to top level.
19215         (main): Grok environment variable TEST_DIRECT.  If set, print
19216         test expectation details into that file and then behave as if
19217         given --direct.
19218
19219 2015-04-09  Florian Weimer  <fweimer@redhat.com>
19220
19221         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
19222         warning on 32-bit.
19223
19224 2015-04-08  David S. Miller  <davem@davemloft.net>
19225
19226         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19227
19228 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
19229
19230         * math/auto-libm-test-in: Add more tests of atanh.
19231         * math/auto-libm-test-out: Regenerated.
19232         * sysdeps/i386/fpu/libm-test-ulps: Update.
19233         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19234
19235         * math/auto-libm-test-in: Add more tests of atan.
19236         * math/auto-libm-test-out: Regenerated.
19237         * sysdeps/i386/fpu/libm-test-ulps: Update.
19238         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19239
19240 2015-04-08  Florian Weimer  <fweimer@redhat.com>
19241
19242         * elf/pldd.c (main): Rewrite to use struct
19243         scratch_buffer instead of extend_alloca.
19244         * elf/pldd-xx.c (find_maps): Likewise.
19245         * grp/initgroups.c: Include <scratch_buffer.h> instead of
19246         <alloca.h>.
19247         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
19248         scratch_buffer instead of extend_alloca.
19249         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
19250         grp/compat-initgroups.c.
19251         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
19252         Rewrite to use struct scratch_buffer instead of extend_alloca.
19253         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
19254         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
19255
19256 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
19257
19258         * math/auto-libm-test-in: Add more tests of cbrt.
19259         * math/auto-libm-test-out: Regenerated.
19260         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19261
19262         * math/auto-libm-test-in: Add more tests of cabs.
19263         * math/auto-libm-test-out: Regenerated.
19264         * sysdeps/i386/fpu/libm-test-ulps: Update.
19265         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19266
19267         [BZ #18210]
19268         [BZ #18211]
19269         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
19270         (__ieee754_atan2): Set FE_TONEAREST mode for internal
19271         computations.
19272         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
19273         clog10.
19274         * math/auto-libm-test-out: Regenerated.
19275         * sysdeps/i386/fpu/libm-test-ulps: Update.
19276         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19277
19278         [BZ #18197]
19279         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
19280         (atan): Set FE_TONEAREST mode for internal computations.
19281         * math/auto-libm-test-in: Add more tests of atan.
19282         * math/auto-libm-test-out: Regenerated.
19283
19284 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
19285
19286         [BZ #17930]
19287         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
19288
19289 2015-04-07  Florian Weimer  <fweimer@redhat.com>
19290
19291         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
19292
19293 2015-04-07  Florian Weimer  <fweimer@redhat.com>
19294
19295         * include/scratch_buffer.h: New file.
19296         * malloc/scratch_buffer_grow.c: Likewise.
19297         * malloc/scratch_buffer_grow_preserve.c: Likewise.
19298         * malloc/scratch_buffer_set_array_size.c: Likewise.
19299         * malloc/tst-scratch_buffer.c: Likewise.
19300         * malloc/Makefile (routines): Add scratch_buffer_grow.
19301         (tests): Add test case.
19302         * malloc/Versions (GLIBC_PRIVATE): Export
19303         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
19304         __libc_scratch_buffer_set_array_size.
19305
19306 2015-04-06  Richard Henderson  <rth@redhat.com>
19307
19308         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
19309         * sysdeps/alpha/fpu/libm-test-ulps: Update.
19310
19311         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
19312         unsigned int before printing.
19313
19314 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19315
19316         [BZ #17596]
19317         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
19318         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
19319
19320 2015-04-02  Florian Weimer  <fweimer@redhat.com>
19321
19322         * include/libc-internal.h (libc_max_align_t): Define.
19323
19324 2015-04-02  Andreas Schwab  <schwab@suse.de>
19325
19326         [BZ #16850]
19327         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
19328
19329 2015-04-02  Mel Gorman  <mgorman@suse.de>
19330
19331         [BZ #17195]
19332         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
19333         as well as the main arena.
19334
19335 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19336
19337         [BZ #18185]
19338         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
19339         sharing L2 cache to 2 for Silvermont/Knights Landing.
19340
19341 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19342
19343         [BZ #17711]
19344         * config.make.in (have-protected-data): New.
19345         * configure.ac: Check linker support for protected data symbol.
19346         * configure: Regenerated.
19347         * elf/Makefile (modules-names): Add tst-protected1moda and
19348         tst-protected1modb if $(have-protected-data) is yes.
19349         (tests): Add tst-protected1a and tst-protected1b if
19350         $(have-protected-data) is yes.
19351         ($(objpfx)tst-protected1a): New.
19352         ($(objpfx)tst-protected1b): Likewise.
19353         (tst-protected1modb.so-no-z-defs): Likewise.
19354         * elf/tst-protected1a.c: New file.
19355         * elf/tst-protected1b.c: Likewise.
19356         * elf/tst-protected1mod.h: Likewise.
19357         * elf/tst-protected1moda.c: Likewise.
19358         * elf/tst-protected1modb.c: Likewise.
19359
19360 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19361
19362         [BZ #17711]
19363         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
19364         indicates it is called from do_lookup_x on relocation against
19365         protected data, skip the data definion in the executable from
19366         copy reloc.
19367         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
19368         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
19369         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
19370         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
19371         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
19372         otherwise to 0.
19373         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19374         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
19375         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
19376         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19377         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
19378         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
19379
19380 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
19381
19382         * sysdeps/nptl/pthread.h: Remove duplicate definition of
19383         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
19384
19385 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
19386
19387         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
19388         THREAD_SETMEM_NC.
19389         * sysdeps/x86_64/nptl/tls.h: Ditto.
19390
19391 2015-03-27  Roland McGrath  <roland@hack.frob.com>
19392
19393         * dlfcn/tststatic.c (main): Converted to ...
19394         (do_test): ... this.
19395         (TEST_FUNCTION): New macro.
19396         Include test-skeleton.c.
19397
19398 2015-03-26  Alan Modra  <amodra@gmail.com>
19399
19400         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
19401         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
19402         zero for undefined weak.
19403         (elf_machine_plt_conflict): Similarly.
19404
19405 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19406
19407         * math/auto-libm-test-in: Add more tests of acosh, asinh and
19408         atanh.
19409         * math/auto-libm-test-out: Regenerated.
19410         * sysdeps/i386/fpu/libm-test-ulps: Update.
19411         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19412
19413         * math/auto-libm-test-in: Add another test of asin.
19414         * math/auto-libm-test-out: Regenerated.
19415         * sysdeps/i386/fpu/libm-test-ulps: Update.
19416         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19417
19418         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
19419         Remove macro.
19420         (LLL_EBX_REG): Likewise.
19421         (LLL_ENTER_KERNEL): Likewise.
19422
19423         * math/auto-libm-test-in: Add more tests of asin.
19424         * math/auto-libm-test-out: Regenerated.
19425         * sysdeps/i386/fpu/libm-test-ulps: Update.
19426         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19427
19428         [BZ #18138]
19429         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
19430         libc_do_syscall_args): New structure.
19431         (INTERNAL_SYSCALL_MAIN_0): New macro.
19432         (INTERNAL_SYSCALL_MAIN_1): Likewise.
19433         (INTERNAL_SYSCALL_MAIN_2): Likewise.
19434         (INTERNAL_SYSCALL_MAIN_3): Likewise.
19435         (INTERNAL_SYSCALL_MAIN_4): Likewise.
19436         (INTERNAL_SYSCALL_MAIN_5): Likewise.
19437         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
19438         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
19439         Replace conditional definitions by conditional definitions of ....
19440         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
19441         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
19442         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
19443         (libpthread-sysdep_routines): Add libc-do-syscall.
19444         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
19445         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
19446         to __NR_futex not 240.
19447
19448 2015-03-25  Alan Modra  <amodra@gmail.com>
19449
19450         * NEWS: Advertise TLS optimization.
19451         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
19452         (DT_PPC_NUM): Increment.
19453         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
19454         (CHECK_STATIC_TLS): Use here.
19455         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
19456         TLS descriptors.
19457         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
19458         * sysdeps/powerpc/dl-tls.c: New file.
19459         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
19460         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
19461         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
19462         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
19463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
19464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
19465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
19466
19467 2015-03-25  Alan Modra  <amodra@gmail.com>
19468
19469         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
19470         for overlapping .opd entries" to "support...".
19471         * sysdeps/powerpc/powerpc64/configure: Regenerate
19472
19473 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19474
19475         * math/auto-libm-test-in: Add more tests of acos.
19476         * math/auto-libm-test-out: Regenerated.
19477         * sysdeps/i386/fpu/libm-test-ulps: Update.
19478         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19479
19480         * math/auto-libm-test-in: Add more tests of expm1.
19481         * math/auto-libm-test-out: Regenerated.
19482         * sysdeps/i386/fpu/libm-test-ulps: Update.
19483         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19484
19485 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
19486
19487         * math/auto-libm-test-in: Add more tests of cosh and sinh.
19488         * math/auto-libm-test-out: Regenerated.
19489         * sysdeps/i386/fpu/libm-test-ulps: Update.
19490         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19491
19492         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
19493         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19494
19495         * math/auto-libm-test-in: Add more tests of log2.
19496         * math/auto-libm-test-out: Regenerated.
19497         * sysdeps/i386/fpu/libm-test-ulps: Update.
19498         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19499
19500 2015-03-23  Roland McGrath  <roland@hack.frob.com>
19501
19502         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
19503         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
19504         _IO_IS_APPENDING bit in READ_WRITE instead.
19505
19506 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19507
19508         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
19509         (__determine_cpumask_size): Replace extend_alloca with a
19510         variable-length array.  Do not treat res == 0 as an error.
19511
19512 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19513
19514         [BZ #18100]
19515         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
19516         and integer overflow.
19517         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
19518         (main): Add integer overflow tests.
19519         * manual/pattern.texi (Calling Wordexp): Document additional use
19520         for WRDE_SYNTAX.
19521
19522 2015-03-23  Alan Modra  <amodra@gmail.com>
19523
19524         * config.h.in: Remove HAVE_ASM_PPC_REL16.
19525         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
19526         and false branch of conditional.
19527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
19528         Likewise.
19529
19530 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
19531
19532         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
19533         libc-modules.h
19534         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
19535         unused declaration of _hurd_intr_rpc_msg_in_trap.
19536         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
19537         defined instead of whether it is non-zero.
19538         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
19539         input constraint instead of both input and output constraint.  Use ecx
19540         clobber instead of %ecx.
19541         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
19542         mutex_unlock): Use a statement expression instead of an expression list.
19543         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
19544         type to vm_size_t instead of vm_address_t.
19545         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
19546         defined instead of whether it is non-zero.
19547         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
19548         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
19549         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
19550         comparisons with mapaddr.
19551         * nscd/nscd-client.h: Include <time.h>.
19552         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
19553         9th parameter to __vm_region instead of int.
19554         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
19555         * scripts/check-local-headers.sh (exclude): Add device/,
19556         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
19557         cthreads.h.
19558
19559 2015-03-19  Roland McGrath  <roland@hack.frob.com>
19560
19561         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
19562         to account for alignment padding.
19563         * sysdeps/arm/memmove.S: Likewise.
19564
19565 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
19566
19567         * sysdeps/unix/sysv/linux/generic/README: New file.
19568
19569 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
19570
19571         [BZ #18138]
19572         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
19573         (futex_abstimed_wait)
19574         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
19575         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
19576         of lll_futex_timed_wait.
19577
19578 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
19579
19580         [BZ #17542]
19581         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
19582
19583 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
19584
19585         [BZ #17090]
19586         [BZ #17620]
19587         [BZ #17621]
19588         [BZ #17628]
19589         * NEWS: Update.
19590         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
19591         entries with Static TLS too.  Skip entries past the end of the
19592         allocated DTV, from Alan Modra.
19593         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
19594         Static TLS DTV entry set up from...
19595         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
19596         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
19597         * nptl/allocatestack.c (init_one_static_tls): ... and here...
19598         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
19599         for Static TLS.
19600         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
19601         that the slot we find is associated with the given map before
19602         using its generation count.
19603         * nptl_db/db_info.c: Include ldsodefs.h.
19604         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
19605         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
19606         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
19607         (link_map::l_tls_offset): New struct field.
19608         (dtv_t::counter): Likewise.
19609         (rtld_global): New struct.
19610         (_rtld_global): New rtld variable.
19611         (dl_tls_dtv_slotinfo_list): New rtld global field.
19612         (dtv_slotinfo_list): New struct.
19613         (dtv_slotinfo): Likewise.
19614         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
19615         (td_lookup): Rename to...
19616         (td_mod_lookup): ... this.  Use new mod parameter instead of
19617         LIBPTHREAD_SO.
19618         * nptl_db/td_thr_tlsbase.c: Include link.h.
19619         (dtv_slotinfo_list, dtv_slotinfo): New functions.
19620         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
19621         addresses even if the DTV is out of date or missing them.
19622         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
19623         index zero-length arrays.
19624         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
19625         (td_lookup): Make it a macro implemented in terms of...
19626         (td_mod_lookup): ... this declaration.
19627         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
19628         (DB_MAIN_VARIABLE): Likewise.
19629
19630 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19631
19632         [BZ #18134]
19633         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
19634
19635 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19636
19637         * stdlib/setenv.c (__add_to_environ): Revert previous change.
19638
19639 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
19640
19641         [BZ #18128]
19642         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
19643         (atomic_add, atomic_increment_and_test)
19644         (atomic_decrement_and_test): Fix 64-bit arithmetic.
19645
19646 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19647
19648         * stdlib/setenv.c (__add_to_environ):
19649         Dump core quickly if setenv (..., NULL, ...) is called.
19650
19651 2015-03-13  Roland McGrath  <roland@hack.frob.com>
19652
19653         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
19654         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
19655         all the necessary asm magic in one place.
19656         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
19657         using those.
19658
19659 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
19660
19661         [BZ #14906]
19662         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
19663         traced file mtime. Use consistent log message.
19664         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
19665         (register_traced_file): Call install_watches. Always set mtime.
19666         (invalidate_cache): Iterate over all trace files. Call install_watches.
19667         (inotify_check_files): Don't inline. Handle watching parent
19668         directories and configuration file movement in and out.
19669         (handle_inotify_events): New function.
19670         (main_loop_poll): Call handle_inotify_events.
19671         (main_loop_epoll): Likewise.
19672         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
19673         (struct traced_file): Use array of inotify fds. Add parent directory,
19674         and basename.
19675         (struct database_dyn): Remove unused file_mtime.
19676         (init_traced_file): New inline function.
19677         (define_traced_file): New macro.
19678         * nss/nss_db/db-init.c: Use define_traced_file.
19679         (_nss_db_init): Use init_traced_file.
19680         * nss/nss_files/files-init.c: Use define_traced_file.
19681         (_nss_files_init): Use init_traced_file.
19682
19683 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
19684
19685         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
19686         [_LIBC]: Do not include <stdlib.h>.
19687         [!_LIBC] (abort): Remove declaration.
19688         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
19689         _FP_STATIC_ASSERT instead of conditionally calling abort.
19690         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
19691         (_FP_EXTEND_CNAN): Likewise.
19692         (FP_TRUNC): Likewise.
19693         (__FP_CLZ): Likewise.
19694         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
19695
19696 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
19697
19698         * manual/string.texi (XPG basename): Fix prototype.
19699
19700 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19701
19702         [BZ #18080]
19703         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
19704         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19705         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
19706         (__setcontext): Likewise.
19707         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
19708         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19709         Call rt_sigprocmask syscall one time to set new signal mask
19710         and retrieve the current signal mask instead of two calls.
19711         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
19712         (__swapcontext): Likewise.
19713         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
19714         * stdlib/tst-setcontext2.c: New file.
19715
19716 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19717
19718         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
19719
19720 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
19721
19722         [BZ #18093]
19723         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
19724         the wrong size.
19725
19726 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
19727
19728         [BZ #18043]
19729         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
19730
19731 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19732
19733         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
19734         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
19735         Remove define.
19736         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
19737         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
19738         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
19739         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
19740         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
19741         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
19742         define.
19743         * nptl_db/td_symbol_list.c (td_lookup): Remove
19744         HAVE_ASM_GLOBAL_DOT_NAME code.
19745         * sysdeps/powerpc/powerpc64/configure.ac: Remove
19746         HAVE_ASM_GLOBAL_DOT_NAME check.
19747         * sysdeps/powerpc/powerpc64/configure: Regenerate.
19748         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
19749         (DOT_LABEL): Remove define.
19750         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
19751         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
19752         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
19753         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
19754         (__TLS_GET_ADDR): Likewise.
19755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
19756         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
19757
19758 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
19759
19760         [BZ #18111]
19761         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
19762         (_FPU_SETCW): Initialize cw from fpsr before storing.
19763         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
19764         (fesetexceptflag): Rewrite using fpu_control.h.
19765         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
19766
19767 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
19768
19769         [BZ #18110]
19770         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
19771         asms.
19772         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
19773
19774 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
19775
19776         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
19777         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
19778         abort.
19779         (_FP_FMA): Likewise.
19780         (_FP_DIV): Likewise.
19781
19782 2015-03-10  Roland McGrath  <roland@hack.frob.com>
19783
19784         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
19785         with 0 in that case.
19786         * Makefile (summarize-tests): New canned sequence, factored out of
19787         commands for targets tests and xtests.  Display summary lines that
19788         don't start with PASS: or XFAIL: rather than ones that do start with
19789         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
19790         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
19791         do start with ERROR: or FAIL:.
19792         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
19793         (except for [$(build-shared) = yes]).
19794         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
19795         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
19796         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
19797         * nptl/Makefile: Revert 2015-03-04 changes.
19798         [$(CXX) empty] (tests-unsupported): New variable.
19799         * debug/Makefile: Likewise.
19800
19801         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
19802         gnulib file.  Replace __attribute with __attribute__ throughout.
19803
19804 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
19805
19806         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19807
19808 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19809
19810         [BZ #18104]
19811         * math/auto-libm-test-in: Add another test of pow.
19812         * math/auto-libm-test-out: Regenerated.
19813
19814 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19815
19816         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
19817         $(config-cflags-nofma).
19818
19819 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19820
19821         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
19822         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
19823         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
19824         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
19825         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
19826         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
19827         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
19828         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
19829         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
19830         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
19831         Add comment on closing #endif.
19832
19833 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19834
19835         * posix/wordexp.c (CHAR_IN_SET): New macro.
19836         (parse_param): Use it.
19837
19838 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19839
19840         * sysdeps/powerpc/fpu/libm-test-ulps: update.
19841
19842 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19843
19844         [BZ #18043]
19845         * posix/wordexp.c (parse_param): Fix buffer overflow.
19846         * posix/wordexp-test.c (test_case): Add test case.
19847
19848 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19849
19850         [BZ #18042]
19851         * posix/wordexp.c (parse_backtick): Fix off-by-one.
19852         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
19853
19854 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19855
19856         [BZ #18043]
19857         * posix/wordexp-test.c (test_case): Add test for BZ #18043
19858         (do_bz18043): Delete.
19859         (at_page_end): New.
19860         (testit): Refactor to have words at the edge of unreadable page.
19861
19862 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19863
19864         [BZ #16734]
19865         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
19866         Cleanup read-only streams as well.
19867         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
19868
19869 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19870
19871         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
19872         <bits/libc-lockP.h>
19873
19874 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
19875
19876         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
19877         on [__KERNEL__].
19878         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
19879         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
19880         * soft-fp/op-common.h (_FP_DECL): Likewise.
19881
19882 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
19883
19884         * elf/ifuncdep2.c (global): Replace
19885         __attribute__((visibility("protected"))) with
19886         asm (".protected global").
19887         * elf/ifuncmod1.c (global): Likewise.
19888         * elf/ifuncmod5.c (global): Likewise.
19889
19890 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
19891
19892         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
19893         <asm/sfp-machine.h> instead of <sfp-machine.h>.
19894
19895 2015-03-06  Roland McGrath  <roland@hack.frob.com>
19896
19897         * manual/install.texi (Configuring and compiling):
19898         Document test-wrapper-env-only.
19899         * INSTALL: Regenerated.
19900
19901 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19902
19903         [BZ #18043]
19904         * posix/wordexp.c (parse_param): Fix buffer overflow.
19905         * posix/wordexp-test.c (do_bz18043): Add test case.
19906
19907 2015-03-06  Vincent Bernat  <vincent@bernat.im>
19908
19909         * time/tst-strptime2.c (do_test): Ensure failing tests are
19910         reported correctly.
19911         * time/tst-strptime3.c (do_test): Likewise.
19912
19913 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
19914
19915         Fix aio_error thread-safety.
19916         * sysdeps/pthread/aio_error.c: New file
19917         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
19918         synchronization.
19919
19920 2015-03-06  Florian Weimer  <fweimer@redhat.com>
19921
19922         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
19923         (group_number, vfprintf): Use it.
19924         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
19925         (JUMP, REF): Use it.
19926         (WORK_BUFFER_SIZE): New enum constant.
19927         (process_arg, vfprintf): Use it.
19928
19929 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
19930
19931         * manual/errno.texi (Error Messages): Complete example function
19932         by adding missing #define.
19933         (program_invocation_name): Add statement indicating GNU
19934         extension and reference which header file declares the variable.
19935         (program_invocation_short_name): Likewise.
19936
19937 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
19938
19939         * manual/errno.texi (Error Messages): Delete strerror ISO C89
19940         compatibility note.
19941
19942 2015-03-05  Roland McGrath  <roland@hack.frob.com>
19943
19944         * Makeconfig (test-wrapper-env-only): New variable.
19945         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
19946         then use that with $(test-wrapper-env-only) rather than using
19947         $(test-wrapper-env) $(run-program-env) $($*-ENV).
19948
19949 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19950
19951         [BZ #18082]
19952         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
19953         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
19954         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
19955         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
19956         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
19957         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
19958         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
19959         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
19960         Likewise.
19961         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
19962         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
19963         Likewise.
19964         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
19965         Likewise.
19966         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
19967         Likewise.
19968         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
19969         Likewise.
19970         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
19971         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
19972         Likewise.
19973         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
19974         Likewise.
19975         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
19976         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
19977
19978 2015-03-04  Roland McGrath  <roland@hack.frob.com>
19979
19980         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
19981         (ETH_ALEN): New macro.
19982         (struct ether_addr): Use it for length of ether_addr_octet.
19983
19984         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
19985         (setdb): Don't call __nss_configure_lookup for "rpc".
19986         (do_test): Don't call test_rpc.
19987         (output_rpcent, test_rpc): Functions moved ...
19988         * sunrpc/test-rpcent.c: ... to this new file.
19989         * sunrpc/Makefile (tests): Add it.
19990
19991         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
19992         __xpg_sigpause.
19993         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
19994         * nptl/tst-signal6.c: Likewise.
19995         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
19996         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
19997
19998         * configure.ac (libc_cv_cxx_link_ok): New check.
19999         Reset CXX to empty if it fails to link.
20000         * configure: Regenerated.
20001         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
20002         bug-atexit3-lib only if $(CXX) is nonempty.
20003         * nptl/Makefile (tests): Likewise for tst-cancel24.
20004         (tests, tests-static): Likewise for tst-cancel24-static.
20005         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
20006         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
20007         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
20008         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
20009
20010 2015-03-04  Andreas Schwab  <schwab@suse.de>
20011
20012         [BZ #17631]
20013         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
20014         for non-GCC compilers.
20015         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
20016         Likewise.
20017
20018 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20019
20020         [BZ #17776]
20021         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
20022         integer before bitwise and assembly operations.
20023         (feclearexcept): Likewise.
20024         * math/test-fenvinline.c: New file.
20025         * math/Makefile: Add test-fenvinline test.
20026
20027 2015-03-03  Alan Modra  <amodra@gmail.com>
20028
20029         [BZ #16512]
20030         * scripts/localplt.awk: Strip off symbol version.
20031         * NEWS: Mention bug fix.
20032
20033 2015-03-02  Roland McGrath  <roland@hack.frob.com>
20034
20035         * sysdeps/pthread/timer_routines.c
20036         (timer_free_list, thread_free_list, thread_active_list): Make static.
20037
20038 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
20039
20040         [BZ #17779]
20041         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20042         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20043         Undefine.
20044         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20045         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20046         Likewise.
20047         * sysdeps/unix/sysv/linux/sh/kernel-features.h
20048         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20049         Likewise.
20050
20051 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
20052
20053         [BZ #18036]
20054         * posix/fnmatch_loop.c (END): Detect invalid pattern.
20055         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
20056
20057 2015-03-02  Andreas Schwab  <schwab@suse.de>
20058
20059         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
20060         variable name.
20061
20062 2015-03-02  Florian Weimer  <fweimer@redhat.com>
20063
20064         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
20065         Return error status.
20066
20067 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
20068
20069         [BZ #15969]
20070         * locale/findlocale.c (_nl_find_locale): Introduce const
20071         version of loc_name and drop unsafe type casts.
20072
20073 2015-02-27  Roland McGrath  <roland@hack.frob.com>
20074
20075         * dlfcn/tststatic2.c (main): Converted to ...
20076         (do_test): ... this.
20077         (TEST_FUNCTION): New macro.
20078         Include test-skeleton.c.
20079
20080 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
20081
20082         [BZ #17711]
20083         * elf/Makefile (tests): Add vismain only if PIE is enabled.
20084         (tests-pie): Add vismain.
20085         (CFLAGS-vismain.c): New.
20086         * elf/vismain.c: Add comments for PIE requirement.
20087
20088 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
20089
20090         [BZ #18046]
20091         [BZ #18047]
20092         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
20093         0x1p-56L as threshold for just returning the argument.
20094         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
20095         0x1p-32L as threshold for just returning the argument.
20096         * math/auto-libm-test-in: Add more tests of atanh.
20097         * math/auto-libm-test-out: Regenerated.
20098         * sysdeps/i386/fpu/libm-test-ulps: Update.
20099         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
20100
20101 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
20102
20103         * string/bcopy.c (bcopy): Call memmove for performance.
20104
20105 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
20106
20107         * string/bzero.c (__bzero): Call memset for performance.
20108
20109 2015-02-27  John David Anglin  <dave.anglin@bell.net>
20110
20111         [BZ #18068]
20112         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
20113         to 00100000.
20114
20115 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
20116
20117         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
20118
20119 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
20120
20121         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
20122         (__kernel_standard): Use CSTR macro when setting exc.name.
20123         * sysdeps/ieee754/Makefile [$(subdir) = math]
20124         (CFLAGS-k_standard.c): Remove variable.
20125
20126         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
20127         setting p and q from "else if" to "else".
20128         (qzero): Likewise.
20129         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
20130         (qone): Likewise.
20131         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
20132         (qzerof): Likewise.
20133         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
20134         (qonef): Likewise.
20135         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
20136         (qzero): Likewise.
20137         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
20138         (qone): Likewise.
20139
20140         [BZ #18038]
20141         [BZ #18039]
20142         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
20143         return pi/2 for arguments below 0x1p-113L.
20144         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
20145         return pi/2 for arguments below 0x1p-106L.
20146         * math/auto-libm-test-in: Add more tests of acos.
20147         * math/auto-libm-test-out: Regenerated.
20148
20149         [BZ #16351]
20150         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
20151         (MO): New macro.
20152         (__ieee754_asin): Force underflow exception for results with small
20153         absolute value.
20154         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
20155         (MO): New macro.
20156         (__ieee754_asinf): Force underflow exception for results with
20157         small absolute value.
20158         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
20159         (__ieee754_asin): Force underflow exception for results with small
20160         absolute value.
20161         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
20162         (__ieee754_asinf): Force underflow exception for results with
20163         small absolute value.
20164         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
20165         (__ieee754_asinl): Force underflow exception for results with
20166         small absolute value.
20167         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
20168         (__ieee754_asinl): Force underflow exception for results with
20169         small absolute value.
20170         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
20171         (__ieee754_asinl): Force underflow exception for results with
20172         small absolute value.
20173         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
20174         Include <math.h>.
20175         * math/auto-libm-test-in: Do not mark underflow exceptions as
20176         possibly missing for bug 16351.
20177         * math/auto-libm-test-out: Regenerated.
20178
20179         [BZ #18030]
20180         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
20181         of power of 2 down when low part has opposite sign.
20182         * math/libm-test.inc (logb_test_data): Add more tests.
20183
20184 2015-02-26  Andreas Schwab  <schwab@suse.de>
20185
20186         [BZ #18032]
20187         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
20188         over collating symbol inside a bracket expression.  Minor cleanup.
20189         * posix/tst-fnmatch3.c (do_test): Add test case.
20190
20191 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
20192
20193         [BZ #18029]
20194         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
20195         Adjust exponent of power of 2 down when low part has opposite
20196         sign.
20197         * math/libm-test.inc (ilogb_test_data): Add more tests.
20198
20199 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
20200
20201         [BZ #15969]
20202         * locale/findlocale.c (_nl_find_locale): Fix constness error in
20203         the previous change.
20204
20205         [BZ #15969]
20206         * locale/findlocale.c (_nl_find_locale): Retry archive search
20207         after alias expansion.
20208
20209 2015-02-25  Roland McGrath  <roland@hack.frob.com>
20210
20211         * iconv/tst-iconv3.c (main): Converted to ...
20212         (do_test): ... this.
20213         (TEST_FUNCTION): New macro.
20214         Include test-skeleton.c.
20215
20216         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
20217         (convert): Make function static.
20218         (test_unalign): Likewise.  Add const to argument pointee types.
20219         (main): Replace with static function do_test.
20220         Print "Succeeded." only if RET is zero.
20221         (TEST_FUNCTION): New macro.
20222         Include test-skeleton.c.
20223
20224         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
20225         returns a null pointer.
20226
20227 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20228
20229         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
20230         to __memcpy_ppc only for static builds.
20231
20232 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
20233
20234         [BZ #18020]
20235         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
20236         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
20237         * math/auto-libm-test-in: Add more tests of asinh.
20238         * math/auto-libm-test-out: Regenerated.
20239         * sysdeps/i386/fpu/libm-test-ulps: Update.
20240         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20241
20242 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
20243
20244         [BZ #15850]
20245         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
20246         and ip6_mtuinfo definitions here.
20247         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
20248         in this define too.  Update comment.
20249
20250 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
20251
20252         * elf/sprof.c (load_shobj): Tweak error message to match others.
20253
20254 2015-02-24  Kevin Easton  <kevin@guarana.org>
20255
20256         [BZ #16145] (partial fix)
20257         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
20258         to reduce lock contention.
20259
20260 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
20261
20262         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
20263         (struct timex): Update time comment.
20264         (ADJ_SETOFFSET): Define.
20265
20266 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
20267
20268         [BZ #18019]
20269         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
20270         2**56 not 2**28 as threshold for log (2x) formula.
20271         * math/auto-libm-test-in: Add more tests of acosh.
20272         * math/auto-libm-test-out: Regenerated.
20273         * sysdeps/i386/fpu/libm-test-ulps: Update.
20274         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20275
20276 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
20277
20278         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
20279         parenthesis around the buf assignment.
20280         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
20281
20282 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
20283
20284         [BZ #16783]
20285         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
20286         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
20287         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
20288         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
20289         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
20290         * math/libm-test.inc (scalb_test_data): Add more tests.
20291
20292 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
20293
20294         [BZ #17916]
20295         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
20296         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
20297
20298 2015-02-24  Eric Rannaud  <e@nanocritical.com>
20299
20300         [BZ #17523]
20301         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
20302         * io/bits/fcntl2.h (open): Use it.
20303         (openat): Likewise.
20304         * io/open.c (__libc_open): Likewise.
20305         * io/open64.c (__libc_open64): Likewise.
20306         * io/open64_2.c (__open64_2): Likewise.
20307         * io/open_2.c (__open_2): Likewise.
20308         * io/openat.c (__openat): Likewise.
20309         * io/openat64.c (__openat64): Likewise.
20310         * io/openat64_2.c (__openat64_2): Likewise.
20311         * io/openat_2.c (__openat_2): Likewise.
20312         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
20313         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
20314         * sysdeps/posix/open64.c (__libc_open64): Likewise.
20315         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
20316         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
20317         (__open_nocancel): Likewise.
20318         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
20319         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
20320         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
20321
20322 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20323
20324         [BZ #14841]
20325         * resolv/gethnamaddr.c (getanswer): Skip logging if
20326         RES_USE_DNSSEC is set.
20327         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
20328
20329 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
20330
20331         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
20332
20333 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
20334
20335         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
20336         201304L, for Unicode 7.
20337
20338 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
20339
20340         [BZ #17836]
20341         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
20342         shared library.  Add gmon-start.os otherwise.
20343         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
20344         $(objpfx)gmon-start.os if builing shared library.
20345         ($(objpfx)g$(static-start-installed-name)): Likewise.
20346
20347 2015-02-23  Andreas Schwab  <schwab@suse.de>
20348
20349         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
20350
20351 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
20352
20353         [BZ #17269]
20354         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
20355         (enlarge_userbuf): Likewise.
20356
20357 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
20358
20359         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
20360         * math/atest-exp.c (TIMEOUT): Adjust to 200.
20361         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
20362         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
20363
20364 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
20365
20366         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
20367         expression inside statement expression.
20368
20369 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
20370
20371         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
20372         <sysdeps/nptl/lowlevellock.h> and remove macros and
20373         functions that are now defined there.
20374         (SYS_futex): Remove.
20375         (lll_compare_and_swap): Remove.
20376         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
20377
20378 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
20379
20380         [BZ #17999]
20381         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
20382         instead of scandirat.
20383         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
20384         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
20385         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
20386         __scandirat.
20387         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
20388         (__scandirat): Declare.  Use libc_hidden_proto.
20389         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
20390         Remove variable.
20391         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
20392
20393 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20394
20395         [BZ #15319]
20396         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
20397         (MO): New macro.
20398         (__ieee754_atan2): For results with small absolute value, force
20399         underflow exception and remove excess range and precision from
20400         return value.
20401         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
20402         (MO): New macro.
20403         (__ieee754_atan2f): For results with small absolute value, force
20404         underflow exception and remove excess range and precision from
20405         return value.
20406         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
20407         (MO): New macro.
20408         (__atan): For results with small absolute value, force underflow
20409         exception and remove excess range and precision from return value.
20410         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
20411         (MO): New macro.
20412         (__atanf): For results with small absolute value, force underflow
20413         exception and remove excess range and precision from return value.
20414         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
20415         <math.h>.
20416         (__ieee754_atan2): Force underflow exception for results with
20417         small absolute value.
20418         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
20419         <math_private.h>.
20420         (atan): Force underflow exception for results with small absolute
20421         value.
20422         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
20423         (__atanf): Force underflow exception for results with small
20424         absolute value.
20425         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
20426         <math.h>.
20427         (__atanl): Force underflow exception for results with small
20428         absolute value.
20429         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
20430         (__atanl): Force underflow exception for results with small
20431         absolute value.
20432         * sysdeps/x86/fpu/bits/mathinline.h
20433         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
20434         (__ieee754_atan2): Only define inline for long double.
20435         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
20436         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
20437         * math/auto-libm-test-in: Do not mark underflow exceptions as
20438         possibly missing for bug 15319.  Add more tests of atan2.
20439         * math/auto-libm-test-out: Regenerated.
20440         * math/libm-test.inc (casin_test_data): Do not mark underflow
20441         exceptions as possibly missing for bug 15319.
20442         (casinh_test_data): Likewise.
20443         * sysdeps/i386/fpu/libm-test-ulps: Update.
20444
20445 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
20446
20447         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
20448         * sysdeps/mips/bits/endian.h: Fix comments.
20449
20450 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20451
20452         [BZ #17996]
20453         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
20454         (hdestroy_r): Likewise.
20455         (hsearch_r): Likewise.
20456         (__hcreate_r): Declare and use libc_hidden_proto.
20457         (__hdestroy_r): Likewise.
20458         (__hsearch_r): Likewise.
20459         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
20460         (hcreate): Call __hcreate_r instead of hcreate_r.
20461         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
20462         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
20463         as weak alias of __hcreate_r.
20464         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
20465         __hdestroy_r.
20466         (hsearch_r): Rename to __hsearch_r and define as weak alias of
20467         __hsearch_r.
20468         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
20469         Remove variable.
20470         (test-xfail-XPG4/search.h/linknamespace): Likewise.
20471         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
20472         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
20473         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
20474
20475 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
20476
20477         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
20478         arena_lock into a single arena_get.
20479
20480 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
20481
20482         * dl-reloc.c: Inlucde libc-internal.h.
20483         (_dl_try_allocate_static_tls): Call ALIGN_UP.
20484         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
20485         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
20486         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
20487         (grow_heap): Likewise.
20488         * malloc/malloc.c: Include libc-internal.h.
20489         (do_check_malloc): Call powerof2.
20490         (sysmalloc): Use pagesize. Call ALIGN_UP.
20491         (systrim): Use pagesize.
20492         (mremap_chunk): Use pagesize. Call ALIGN_UP.
20493         (__libc_valloc): Use pagesize.
20494         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
20495
20496 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20497
20498         [BZ #17991]
20499         * include/sys/resource.h (__getrlimit64): Declare.  Use
20500         libc_hidden_proto.
20501         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
20502         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
20503         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
20504         getrlimit64.
20505         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
20506         __getrlimit64.
20507         [!getrlimit64] (getrlimit64): Define as weak alias of
20508         __getrlimit64.  Use libc_hidden_weak.
20509         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
20510         using __getrlimit64 not __new_getrlimit64.
20511         (__GI_getrlimit64): Likewise.
20512         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
20513         Likewise.
20514         (__GI_getrlimit64): Likewise.
20515         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
20516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
20517         (getrlimit): Add __getrlimit64 alias.
20518         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
20519         Likewise.
20520         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
20521         Remove variable.
20522         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
20523         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
20524
20525 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
20526
20527         * libio/fileops.c: Add missing sys/mman.h
20528         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
20529
20530 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20531
20532         * manual/math.texi (Errors in Math Functions): Clarify goals
20533         regarding inexact and underflow exceptions.
20534
20535 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20536
20537         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
20538         * sysdeps/mips/memset.S: Ditto.
20539
20540 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20541
20542         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
20543
20544 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
20545
20546         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
20547         (__v1longjmp): Remove versioned symbol.
20548         (__v1siglongjmp): Remove alias and versioned symbol.
20549         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
20550         (__v2siglongjmp): Likewise.
20551
20552 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20553
20554         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
20555
20556 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
20557
20558         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
20559
20560 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20561
20562         [BZ #17987]
20563         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
20564         zero result does not depend on the sign resulting from
20565         subtraction.
20566         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20567         Likewise.
20568         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20569         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20570         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20571         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20572         * math/libm-test.inc (remquo_test_data): Add more tests.
20573
20574 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20575
20576         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
20577         Problem reported by J William Piggott.
20578
20579 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20580
20581         [BZ #17978]
20582         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
20583         products 4 * y and 2 * y where those would overflow.
20584         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20585         Likewise.
20586         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20587         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20588         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20589         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20590         * math/libm-test.inc (remquo_test_data): Add more tests.
20591
20592         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
20593
20594         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
20595         [defined _COMPILING_NEWLIB].
20596         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
20597         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
20598
20599         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
20600         [!defined __mips_isa_rev || __mips_isa_rev < 6].
20601
20602 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20603
20604         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
20605         acquired.
20606
20607 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
20608
20609         [BZ #17792]
20610         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
20611         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
20612         HOST_STACK_END_ADDR): Likewise.
20613
20614 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
20615
20616         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
20617         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
20618         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
20619
20620 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20621
20622         * sysdeps/generic/c++-types.data: New file.
20623         * sysdeps/generic/ld.abilist: New file.
20624         * sysdeps/generic/libBrokenLocale.abilist: New file.
20625         * sysdeps/generic/libanl.abilist: New file.
20626         * sysdeps/generic/libc.abilist: New file.
20627         * sysdeps/generic/libcrypt.abilist: New file.
20628         * sysdeps/generic/libdl.abilist: New file.
20629         * sysdeps/generic/libm.abilist: New file.
20630         * sysdeps/generic/libpthread.abilist: New file.
20631         * sysdeps/generic/libresolv.abilist: New file.
20632         * sysdeps/generic/librt.abilist: New file.
20633
20634 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20635
20636         [BZ #17569]
20637         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20638         Compute absolute value of x as modified by fmod, not original
20639         value of x.
20640         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
20641         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
20642         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
20643         RUN_TEST_ffI_f1_mod8.
20644         (remquo_test_data): Add more tests.
20645
20646 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20647
20648         * sysdeps/init_array/pt-crti.S: New file.
20649
20650 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20651
20652         [BZ #17967]
20653         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
20654         __builtin_fmaf instead of relying on contraction of a * b + c.
20655
20656 2015-02-12  J William Piggott  <elseifthen@gmx.com>
20657
20658         [BZ #17969]
20659         * manual/time.texi: correct the zoneinfo path in the TZ Variable
20660         node.
20661
20662 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20663
20664         [BZ #17964]
20665         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
20666         __builtin_fma instead of relying on contraction of a * b + c.
20667
20668 2015-02-12  Roland McGrath  <roland@hack.frob.com>
20669
20670         * Makeconfig (ASFLAGS): Add -Werror=undef.
20671         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
20672         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
20673         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
20674
20675         * Makeconfig (after-link): New variable.
20676         (+link-pie, +link-pie-tests): Use it.
20677         (+link-static, +link-static-tests): Likewise.
20678         (+link, +link-tests): Likewise.
20679         * Makerules (build-module, build-module-asneeded): Likewise.
20680         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
20681         Likewise.
20682         * elf/Makefile ($(objpfx)ld.so): Likewise.
20683
20684 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
20685
20686         [BZ #17965]
20687         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
20688         both struct timeval and struct timespec.
20689
20690 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20691
20692         [BZ #16560]
20693         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
20694         and redefine.
20695         (__ieee754_exp2l): Do not multiply small fractional parts by
20696         M_LN2l.
20697         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
20698         small argument.
20699         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
20700         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
20701         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
20702         * math/auto-libm-test-in: Add more tests of exp2.
20703         * math/auto-libm-test-out: Regenerated.
20704
20705 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20706
20707         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
20708         unaligned path.
20709
20710 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20711
20712         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
20713         little endian.
20714
20715 2015-02-12  Andreas Schwab  <schwab@suse.de>
20716
20717         [BZ #15790]
20718         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
20719         Filter out elision flags from value returned in kind.
20720         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
20721         * nptl/tst-pthread-mutexattr.c: New file.
20722
20723 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20724
20725         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
20726         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
20727         into gnu-gnu, and update comment to refer to abi-tags.
20728
20729 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
20730
20731         [BZ #15467]
20732         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
20733         (__sincos): Set errno to EDOM for infinite argument.
20734         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
20735         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
20736         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
20737         (__sincosl): Set errno to EDOM for infinite argument.
20738         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
20739         (__sincosl): Set errno to EDOM for infinite argument.
20740         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
20741         (__sincosl): Set errno to EDOM for infinite argument.
20742         * math/libm-test.inc (sincos_test_data): Test errno setting.
20743
20744 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
20745
20746         * string/strxfrm_l.c: Remove #define STRCMP.
20747         * string/strcoll_l.c: Remove #define STRLEN.
20748         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
20749         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
20750
20751 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
20752
20753         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
20754         * sysdeps/mips/mips32/sfp-machine.h: ... here.
20755         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
20756         * sysdeps/mips/mips64/Makefile: ... here.
20757         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
20758         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
20759         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
20760         * sysdeps/mips/mips64/sfp-machine.h: ... here.
20761         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
20762         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
20763         * sysdeps/mips/mips64/n64/Implies: Likewise.
20764
20765 2015-02-10  Roland McGrath  <roland@hack.frob.com>
20766
20767         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
20768         <sys/time.h>, <string.h>, and <errno.h>.
20769         (dest_offset, dest_address, value, zero): Remove unused variables.
20770         (ldouble): Remove typedef.
20771         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
20772         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
20773         1).  Fix code style.
20774         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
20775         (check): Function removed.
20776         (CHECK): New macro.
20777         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
20778         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
20779         Don't call set_sigaction_FP and remove_sigaction_FP here.
20780         (ldouble_test): Just use 'long double' as macro argument, no need for
20781         the 'ldouble' typedef.
20782         (do_test): Set up SIGFPE handler at start, using plain signal rather
20783         than sigaction.  Fix code style.
20784
20785 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
20786
20787         [BZ #17949]
20788         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
20789         jump label.
20790
20791 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20792
20793         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
20794         * sysdeps/powerpc/powerpc32/configure: Regenerated.
20795
20796         * sysdeps/powerpc/configure.ac: Remove file.
20797         * sysdeps/powerpc/configure: Likewise.
20798
20799         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20800         [sysdep_routines]: Remove wordcopy-power6 object.
20801         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
20802         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
20803         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
20804         (__memmove_ppc32): Likewise.
20805         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
20806         file.
20807         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
20808         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
20809         Remove preprocessor.
20810
20811         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20812         [sysdep_routines]: Remove wide chars objects.
20813         [wcsmbs]: New rule for wide char objects.
20814
20815         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20816         Remove wordcopy-power6 obejct.
20817         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
20818         Use local call for wordcopy and memcpy symbols.
20819         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
20820         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
20821         implementation for loader.
20822         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
20823
20824         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20825         Remove wordcopy-power7 object.
20826         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
20827         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
20828         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
20829         (_wordcopy_fwd_dest_aligned): Likewise.
20830         (_wordcopy_bwd_aligned): Likewise.
20831         (_wordcopy_bwd_dest_aligned): Likewise.
20832
20833         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
20834         Rewrite to call __memmove_ppc instead of include default
20835         implementation.
20836
20837         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20838         Remove wide chars objects.
20839         [wcsmbs]: New rule for wide char objects.
20840
20841 2015-02-09  Andreas Schwab  <schwab@suse.de>
20842
20843         [BZ #17912]
20844         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
20845         in terms of __O_DIRECTORY.
20846
20847 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20848
20849         * time/getdate.c: Include <stdbool.h>.
20850         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
20851         call PTR_MANGLE.
20852         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
20853         PTR_DEMANGLE.
20854
20855 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20856
20857         Add ersatz _Static_assert on older C hosts
20858         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
20859         pre-C11 C platform that is not known to support _Static_assert.
20860
20861 2015-02-07  Richard Braun  <rbraun@sceen.net>
20862
20863         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
20864         sigstate.
20865         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
20866
20867 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20868
20869         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
20870         priority against unexistent AIO_PRIO_DELTA_MAX.
20871         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
20872         instead of int.
20873         * misc/fchflags.c (fchflags): Likewise.
20874         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
20875         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
20876         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
20877         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
20878         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
20879         Declare macros.
20880         [__USE_MISC] (chflags, fchflags): Declare functions.
20881         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
20882         EINVAL when nfds is greater than FD_SETSIZE.
20883         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
20884         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
20885         45.
20886         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
20887         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
20888         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
20889         MACH_RCV_TIMED_OUT.
20890         * hurd/hurd/signal.h (_hurd_self_sigstate,
20891         _hurd_critical_section_lock, _hurd_critical_section_unlock):
20892         Explicit casts from void *.
20893         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
20894         * abi-tags: Rename gnu-gnu os into gnu.
20895
20896         [BZ #4719]
20897         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
20898         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
20899         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
20900         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
20901         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
20902         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
20903
20904         [BZ #17944]
20905         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
20906         duplicates ADDR->sun_path with sockaddr LEN limitation.
20907         * sysdeps/mach/hurd/connect.c: Include <string.h>
20908         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
20909         * sysdeps/mach/hurd/sendmsg.c: Likewise.
20910         * sysdeps/mach/hurd/sendto.c: Likewise.
20911         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
20912         implementing it by hand.
20913
20914 2015-02-06  Roland McGrath  <roland@hack.frob.com>
20915
20916         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
20917         Use sfi_breg on ldr.
20918         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
20919         Likewise.
20920
20921         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
20922         it's defined.
20923         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
20924         Test SIGSETXID only if it's defined.
20925
20926         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
20927
20928         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
20929         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
20930
20931         * nptl/tst-align2.c: Moved ...
20932         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
20933         * nptl/Makefile (tests): Remove tst-align2.
20934         * sysdeps/unix/sysv/linux/Makefile
20935         [$(subdir) = nptl] (tests): Add tst-align-clone.
20936         * nptl/tst-getpid1.c: Moved ...
20937         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
20938         * nptl/tst-getpid2.c: Moved ...
20939         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
20940         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
20941         * sysdeps/unix/sysv/linux/Makefile
20942         [$(subdir) = nptl] (tests): ... here.
20943         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
20944         * sysdeps/unix/sysv/linux/Makefile
20945         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
20946
20947         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
20948         Drop trailing \n from perror argument.  Use return rather than exit.
20949
20950         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
20951         on [SA_SIGINFO].
20952         * nptl/tst-cancel21.c (do_test): Likewise.
20953         * debug/tst-backtrace6.c: Include <signal.h> first thing.
20954         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
20955         [!SA_SIGINFO]: Make it a stub test.
20956
20957         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
20958         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
20959
20960         * posix/tst-getlogin.c: Move to ...
20961         * login/tst-getlogin.c: ... here.
20962         * posix/Makefile (tests): Move tst-getlogin to ...
20963         * login/Makefile (tests): ... here.
20964
20965         * libio/tst-atime.c (do_test): Move local variables SV and E
20966         inside [ST_NOATIME] conditional.
20967
20968         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
20969
20970         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
20971
20972         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
20973         (wait_code): New function replaces macro.
20974         Call nanosleep rather than syscall.
20975
20976         * nptl/pt-system.c: Rewritten.  Put everything under
20977         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20978         Use IFUNC to redirect when possible.
20979
20980         * nptl/pt-longjmp.c: Rewritten.  Put everything under
20981         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20982         Use IFUNC to redirect when possible.
20983
20984         * nptl/pt-fork.c: Rewritten.  Put everything under
20985         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20986         Use IFUNC to redirect when possible.
20987         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
20988
20989         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
20990         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
20991         unconditionally nowadays.  This included the only reference to
20992         __vdso_clock_gettime that appears outside libc proper.
20993         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
20994         Remove version set (containing only __vdso_clock_gettime).
20995         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
20996         Add attribute_hidden.
20997         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
20998         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
20999         libc_hidden_data_def.
21000         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
21001         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
21002
21003         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
21004         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
21005         setrpcent, and getrpcport to ...
21006         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
21007         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
21008         getrpcbynumber_r, and getrpcent_r to ...
21009         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
21010         * inet/getrpcbyname.c: Moved ...
21011         * sunrpc/getrpcbyname.c: ... here.
21012         * inet/getrpcbyname_r.c: Moved ...
21013         * sunrpc/getrpcbyname_r.c: ... here.
21014         * inet/getrpcbynumber.c: Moved ...
21015         * sunrpc/getrpcbynumber.c: ... here.
21016         * inet/getrpcbynumber_r.c: Moved ...
21017         * sunrpc/getrpcbynumber_r.c: ... here.
21018         * inet/getrpcent.c: Moved ...
21019         * sunrpc/getrpcent.c: ... here.
21020         * inet/getrpcent_r.c: Moved ...
21021         * sunrpc/getrpcent_r.c: ... here.
21022         * inet/Makefile (routines): Move those to ...
21023         * sunrpc/Makefile (routines): ... here.
21024         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
21025         the $(subdirs) list.
21026         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
21027         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
21028         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
21029         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
21030
21031         * elf/Makefile (routines): Include $(all-dl-routines), not just
21032         $(dl-routines).
21033         (rtld-routines): Likewise.  Use = rather than :=.
21034         * sysdeps/aarch64/Makefile [$(subdir) = elf]
21035         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
21036         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
21037         * sysdeps/arm/Makefile: Likewise.
21038         * sysdeps/i386/Makefile: Likewise.
21039         * sysdeps/x86_64/Makefile: Likewise.
21040         * sysdeps/hppa/Makefile [$(subdir) = elf]
21041         (sysdep_routines, sysdep-rtld-routines): Don't add
21042         $(sysdep-dl-routines) to these.
21043         * sysdeps/ia64/Makefile: Likewise.
21044         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
21045         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
21046         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
21047         Don't add dl-static to these; sysdep-dl-routines alone is enough.
21048         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
21049         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
21050         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
21051         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
21052         * sysdeps/powerpc/Makefile [$(subdir) = elf]
21053         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
21054         these; sysdep-dl-routines alone is enough.
21055
21056 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
21057
21058         [BZ #17932]
21059         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
21060         where multiplication results in zero and third argument is finite
21061         and nonzero.
21062         * math/auto-libm-test-in: Add more tests of fma.
21063         * math/auto-libm-test-out: Regenerated.
21064
21065         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
21066         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
21067         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
21068         (_FP_CMP_EQ): Likewise.
21069         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
21070
21071         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
21072         extra argument CHECK_NAN.  Redefine as wrapper around
21073         _FP_EXTEND_CNAN.
21074
21075 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
21076
21077         * version.h (RELEASE): Set to "stable".
21078         (VERSION): Set to "2.21"
21079         * include/features.h (__GLIBC_MINOR__): Set to 21.
21080
21081         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
21082
21083 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
21084             Paul Eggert  <eggert@cs.ucla.edu>
21085
21086         [BZ #16618]
21087         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
21088         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
21089         size in bytes. Store needed elements in wpmax. Use needed size
21090         in bytes for extend_alloca.
21091
21092 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
21093
21094         * manual/install.texi: Latest tested versions are GCC 4.9.2,
21095         binutls 2.25, and texinfo 5.2.
21096         * INSTALL: Regenerate.
21097         * sysdeps/nios2/configure: Regenerate.
21098         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
21099         * manual/contrib.texi: Update.
21100         * po/be.po: Update.
21101         * po/bg.po: Update.
21102         * po/ca.po: Update.
21103         * po/cs.po: Update.
21104         * po/da.po: Update.
21105         * po/de.po: Update.
21106         * po/el.po: Update.
21107         * po/eo.po: Update.
21108         * po/es.po: Update.
21109         * po/fi.po: Update.
21110         * po/fr.po: Update.
21111         * po/gl.po: Update.
21112         * po/hr.po: Update.
21113         * po/hu.po: Update.
21114         * po/ia.po: Update.
21115         * po/id.po: Update.
21116         * po/it.po: Update.
21117         * po/ja.po: Update.
21118         * po/ko.po: Update.
21119         * po/lt.po: Update.
21120         * po/nb.po: Update.
21121         * po/nl.po: Update.
21122         * po/pl.po: Update.
21123         * po/pt_BR.po: Update.
21124         * po/ru.po: Update.
21125         * po/rw.po: Update.
21126         * po/sk.po: Update.
21127         * po/sl.po: Update.
21128         * po/sv.po: Update.
21129         * po/tr.po: Update.
21130         * po/uk.po: Update.
21131         * po/vi.po: Update.
21132         * po/zh_CN.po: Update.
21133         * po/zh_TW.po: Update.
21134
21135         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
21136         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
21137         * sysdeps/hppa/dl-irel.h: Remove #warning.
21138         * sysdeps/hppa/entry.h: Provide prototype for
21139         __canonicalize_funcptr_for_compare and cast argument.
21140         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
21141         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
21142         * sysdeps/hppa/sotruss-lib.c: New file.
21143         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
21144         (atomic_compare_and_exchange_val_acq): Use __typeof__.
21145         (atomic_compare_and_exchange_bool_acq): Likewise.
21146         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
21147         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
21148
21149         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
21150         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
21151         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
21152
21153 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
21154
21155         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
21156         called function in non-PIC case.
21157
21158 2015-01-31  David S. Miller  <davem@davemloft.net>
21159
21160         * sysdeps/sparc/sparc32/bits/atomic.h
21161         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
21162         unlock not after it.
21163         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
21164         volatile register usage warnings from the compiler.
21165
21166         * sysdeps/sparc/nptl/sem_init.c: Delete.
21167         * sysdeps/sparc/nptl/sem_post.c: Delete.
21168         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
21169         * sysdeps/sparc/nptl/sem_wait.c: Delete.
21170         * sysdeps/sparc/sparc32/sem_init.c: New file.
21171         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
21172         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
21173         padding explicitly initialized.
21174         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
21175         padding for in-semaphore spinlock.
21176         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
21177         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
21178         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
21179         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
21180         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
21181         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
21182         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
21183         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
21184         version.
21185         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
21186         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
21187
21188 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
21189
21190         [BZ #17801]
21191         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21192         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
21193         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
21194         New.
21195         (index_AVX_Fast_Unaligned_Load): Likewise.
21196         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
21197         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
21198         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
21199         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
21200         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
21201         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
21202         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
21203         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
21204         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
21205
21206 2015-01-29  Andreas Schwab  <schwab@suse.de>
21207
21208         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
21209
21210 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
21211
21212         [BZ #17892]
21213         * nscd/nscd_stat.c (send_stats): Initialize DATA.
21214
21215 2015-01-28  Martin Sebor  <msebor@redhat.com>
21216
21217         * math/README.libm-test: Clarify. Add "How to read the test output."
21218
21219 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
21220
21221         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
21222         Define to 0.
21223
21224 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
21225
21226         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
21227         (__HAVE_64B_ATOMICS): Define to 0.
21228
21229 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
21230
21231         [BZ #17885]
21232         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
21233         value to set as new flag.
21234
21235         [BZ #16576]
21236         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
21237         and use _ARCH_PPCSQ instead.
21238         (__ieee754_sqrt): Likewise.
21239         (__ieee754_sqrtf): Likewise.
21240         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
21241         _ARCH_PPCSQ is defined.
21242         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
21243         fsqrt instruction.
21244         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
21245         _ARCH_PPCSQ is defined.
21246         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
21247         fsqrts instruction.
21248         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
21249
21250 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21251
21252         * iconv/loop.c: Suppress array out of bound warning caused by GCC
21253         bug (GCC BZ #64739).
21254
21255 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
21256
21257         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
21258         Mark _retval as used.
21259         (lll_futex_wake_unlock): Likewise.
21260         (lll_futex_timed_wait_requeue_pi): Likewise.
21261
21262         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
21263         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
21264         register variables.
21265
21266         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
21267         libm_hidden_def.
21268
21269         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
21270         (__bswap_64): Mark as __always_inline.
21271
21272 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
21273
21274         [BZ #15378]
21275         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
21276         when none of the search directories exist.
21277
21278 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
21279
21280         [BZ #17869]
21281         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
21282         power8 in .machine directive.
21283
21284         [BZ #17868]
21285         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
21286         set dependency from opd value.
21287
21288 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
21289
21290         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21291         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
21292         architecture.
21293
21294 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
21295
21296         [BZ #17870]
21297         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
21298         with uint64_t.
21299         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
21300         (uint64_t) 1.
21301         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
21302         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
21303         Replace 1UL with (uint64_t) 1.
21304         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
21305         int with uint64_t.
21306
21307 2015-01-23  Roland McGrath  <roland@hack.frob.com>
21308
21309         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
21310         (if_freenameindex): Likewise.
21311
21312         * resource/getrlimit64.c: Add missing libc_hidden_def.
21313
21314 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
21315
21316         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
21317         __label__.
21318         (_FP_FMA): Likewise.
21319         (_FP_TO_INT_ROUND): Likewise.
21320         (_FP_FROM_INT): Likewise.
21321
21322 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21323
21324         [BZ #16418]
21325         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
21326         Make code racy and cancel safe.
21327
21328 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
21329
21330         * sysdeps/arm/unwind-resume.h: Fix copyright year.
21331         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
21332         attribution.
21333
21334         * pwd/tst-getpw.c: Rewrite.
21335
21336         [BZ #17702]
21337         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
21338         (modules-names): Add moddummy1 and moddummy2.
21339         ($(objpfx)tst-rec-dlopen): Define.
21340         * dlfcn/moddummy1.c: New file.
21341         * dlfcn/moddummy2.c: New file.
21342         * dlfcn/tst-rec-dlopen.c: New file.
21343         * elf/dl-cache.c (_dl_load_cache_lookup):
21344         Return char*. Copy result with alloca/strcpy/strdup.
21345         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
21346         returns char*. Free cached. If not saving realname
21347         free cached.
21348         * elf/dl-open.c (dl_open_worker): Do not assert that
21349         _r_debug->r_state is RT_CONSISTENT.
21350         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
21351         returns char*.
21352
21353 2015-01-21  Torvald Riegel  <triegel@redhat.com>
21354             Carlos O'Donell  <carlos@redhat.com>
21355
21356         [BZ #12674]
21357         * nptl/sem_waitcommon.c: New file.
21358         * nptl/sem_wait.c: Include sem_waitcommon.c.
21359         (__sem_wait_cleanup, do_futex_wait): Remove.
21360         (__new_sem_wait): Adapt.
21361         (__new_sem_trywait): New function.
21362         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
21363         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
21364         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
21365         (sem_timedwait): Adapt.
21366         * nptl/sem_post.c (__new_sem_post): Adapt.
21367         (futex_wake): New function.
21368         (__old_sem_post): Add release MO fence.
21369         * nptl/sem_open.c (sem_open): Adapt.
21370         * nptl/sem_init.c (__new_sem_init): Adapt.
21371         (futex_private_if_supported): New function.
21372         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
21373         (__old_sem_getvalue): Add using previous code.
21374         * sysdeps/nptl/internaltypes.h: Adapt.
21375         * nptl/tst-sem13.c (do_test): Adapt.
21376         * nptl/tst-sem11.c (main): Adapt.
21377         * nptl/sem_trywait.c: Remove.
21378         * nptl/DESIGN-sem.txt: Remove.
21379         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
21380         (gen-as-const-headers): Remove structsem.sym.
21381         * nptl/structsem.sym: Remove.
21382         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
21383         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
21384         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
21385         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
21386         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
21387         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
21388         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
21389         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
21390         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
21391         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
21392         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
21393         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
21394         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
21395         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
21396         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
21397         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
21398         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
21399         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
21400         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
21401         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
21402         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
21403         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
21404
21405 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
21406
21407         * INSTALL: Regenerated.
21408
21409         * po/libc.pot: Regenerated.
21410
21411 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
21412             Sandra Loosemore  <sandra@codesourcery.com>
21413             Andrew Jenner  <andrew@codesourcery.com>
21414             Joseph Myers  <joseph@codesourcery.com>
21415             Nathan Sidwell  <nathan@codesourcery.com>
21416
21417         * NEWS: Mention new Nios II port.
21418         * sysdeps/nios2/Implies: New file.
21419         * sysdeps/nios2/Makefile: New file.
21420         * sysdeps/nios2/Subdirs: New file.
21421         * sysdeps/nios2/Versions: New file.
21422         * sysdeps/nios2/__longjmp.S: New file.
21423         * sysdeps/nios2/abort-instr.h: New file.
21424         * sysdeps/nios2/backtrace.c: New file.
21425         * sysdeps/nios2/bits/endian.h: New file.
21426         * sysdeps/nios2/bits/fenv.h: New file.
21427         * sysdeps/nios2/bits/link.h: New file.
21428         * sysdeps/nios2/bits/setjmp.h: New file.
21429         * sysdeps/nios2/bsd-_setjmp.S: New file.
21430         * sysdeps/nios2/bsd-setjmp.S: New file.
21431         * sysdeps/nios2/configure: New generated file.
21432         * sysdeps/nios2/configure.ac: New file.
21433         * sysdeps/nios2/crti.S: New file.
21434         * sysdeps/nios2/crtn.S: New file.
21435         * sysdeps/nios2/dl-init.c: New file.
21436         * sysdeps/nios2/dl-machine.h: New file.
21437         * sysdeps/nios2/dl-sysdep.h: New file.
21438         * sysdeps/nios2/dl-tls.h: New file.
21439         * sysdeps/nios2/dl-trampoline.S: New file.
21440         * sysdeps/nios2/gccframe.h: New file.
21441         * sysdeps/nios2/gmp-mparam.h: New file.
21442         * sysdeps/nios2/jmpbuf-offsets.h: New file.
21443         * sysdeps/nios2/jmpbuf-unwind.h: New file.
21444         * sysdeps/nios2/ldsodefs.h: New file.
21445         * sysdeps/nios2/libc-tls.c: New file.
21446         * sysdeps/nios2/libm-test-ulps: New file.
21447         * sysdeps/nios2/machine-gmon.h: New file.
21448         * sysdeps/nios2/math-tests.h: New file.
21449         * sysdeps/nios2/math_private.h: New file.
21450         * sysdeps/nios2/memusage.h: New file.
21451         * sysdeps/nios2/nptl/Makefile: New file.
21452         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
21453         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
21454         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
21455         * sysdeps/nios2/nptl/pthreaddef.h: New file.
21456         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
21457         * sysdeps/nios2/nptl/tls.h: New file.
21458         * sysdeps/nios2/preconfigure: New file.
21459         * sysdeps/nios2/s_fma.c: New file.
21460         * sysdeps/nios2/s_fmaf.c: New file.
21461         * sysdeps/nios2/setjmp.S: New file.
21462         * sysdeps/nios2/sfp-machine.h: New file.
21463         * sysdeps/nios2/sotruss-lib.c: New file.
21464         * sysdeps/nios2/stackguard-macros.h: New file.
21465         * sysdeps/nios2/stackinfo.h: New file.
21466         * sysdeps/nios2/start.S: New file.
21467         * sysdeps/nios2/sysdep.h: New file.
21468         * sysdeps/nios2/tls-macros.h: New file.
21469         * sysdeps/nios2/tst-audit.h: New file.
21470         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
21471         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
21472         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
21473         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
21474         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
21475         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
21476         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
21477         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
21478         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
21479         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
21480         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
21481         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
21482         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
21483         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
21484         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
21485         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
21486         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
21487         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
21488         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
21489         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
21490         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
21491         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
21492         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
21493         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
21494         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
21495         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
21496         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
21497         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
21498         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
21499         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
21500         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
21501         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
21502         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
21503         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
21504         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
21505         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
21506         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
21507         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
21508         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
21509         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
21510         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
21511         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
21512         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
21513         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
21514
21515 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21516
21517         [BZ #17844]
21518         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
21519         (getutent): Use weak_alias in non SHARED case
21520         and default_symbol_version in SHARED case.
21521         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
21522         (getutent_r, pututline): Likewise.
21523         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
21524         (getutid): Likewise.
21525         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
21526         (getutid_r): Likewise.
21527         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
21528         (getutline): Likewise.
21529         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
21530         (getutline_r): Likewise.
21531         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
21532         (updwtmp): Likewise.
21533
21534 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21535
21536         [BZ #17848]
21537         * sysdeps/s390/s390-32/memcmp.S
21538         (memcmp_g5): Rename to __memcmp_g5.
21539         * sysdeps/s390/s390-32/memcpy.S
21540         (memcpy_g5): Rename to __memcpy_g5.
21541         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21542         (memcpy_mvcle) Rename to __memcpy_mvcle.
21543         * sysdeps/s390/s390-32/memset.S
21544         (memset_g5): Rename to __memset_g5.
21545         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
21546         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21547         and use prefixed functions.
21548         * sysdeps/s390/s390-32/multiarch/memcmp.S
21549         (memcmp_z196): Rename to __memcmp_z196.
21550         (memcmp_z10): Rename to __memcmp_z10.
21551         (memcmp): Set alias to __memcmp_g5.
21552         (bcmp): Set alias to __memcmp_g5.
21553         * sysdeps/s390/s390-32/multiarch/memcpy.S
21554         (memcpy_z196): Rename to __memcpy_z196.
21555         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21556         (memcpy_z10): Rename to __memcpy_z10.
21557         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21558         (memcpy): Set alias to __memcpy_g5.
21559         * sysdeps/s390/s390-32/multiarch/memset.S
21560         (memset_z196): Rename to __memset_z196.
21561         Jump to __memset_mvcle instead of memset_mvcle.
21562         (memset_z10): Rename to __memset_z10.
21563         Jump to __memset_mvcle instead of memset_mvcle.
21564         (memset_mvcle) Rename to __memset_mvcle.
21565         (memset): Set alias to __memset_g5.
21566         * sysdeps/s390/s390-64/memcmp.S
21567         (memcmp_z900): Rename to __memcmp_z900.
21568         * sysdeps/s390/s390-64/memcpy.S
21569         (memcpy_z900): Rename to __memcpy_z900.
21570         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21571         (memcpy_mvcle) Rename to __memcpy_mvcle.
21572         * sysdeps/s390/s390-64/memset.S
21573         (memset_z900): Rename to __memset_z900.
21574         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
21575         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21576         and use prefixed functions.
21577         * sysdeps/s390/s390-64/multiarch/memcmp.S
21578         (memcmp_z196): Rename to __memcmp_z196.
21579         (memcmp_z10): Rename to __memcmp_z10.
21580         (memcmp): Set alias to __memcmp_z900.
21581         (bcmp): Set alias to __memcmp_z900.
21582         * sysdeps/s390/s390-64/multiarch/memcpy.S
21583         (memcpy_z196): Rename to __memcpy_z196.
21584         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21585         (memcpy_z10): Rename to __memcpy_z10.
21586         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21587         (memcpy): Set alias to __memcpy_z900.
21588         * sysdeps/s390/s390-64/multiarch/memset.S
21589         (memset_z196): Rename to __memset_z196.
21590         Jump to __memset_mvcle instead of memset_mvcle.
21591         (memset_z10): Rename to __memset_z10.
21592         Jump to __memset_mvcle instead of memset_mvcle.
21593         (memset_mvcle) Rename to __memset_mvcle.
21594         (memset): Set alias to __memset_z900.
21595
21596 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
21597
21598         [BZ #17748]
21599         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
21600         __fesetenv instead of fesetenv.
21601
21602 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21603
21604         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
21605         macro.
21606
21607 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21608
21609         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
21610         regression on LE.
21611
21612         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
21613         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
21614         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21615         strncmp-power8 object.
21616         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21617         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
21618         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
21619         * NEWS: Update.
21620
21621 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21622             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21623
21624         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
21625         trailing byte check.
21626
21627 2015-01-13  David S. Miller  <davem@davemloft.net>
21628
21629         * include/signal.h (__sigreturn): Guard with __USE_MISC.
21630
21631 2015-01-13  Roland McGrath  <roland@hack.frob.com>
21632
21633         * login/logout.c (logout): Use memset rather than bzero.
21634         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
21635         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
21636         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
21637         (_gethtbyaddr): Likewise.
21638         * locale/programs/simple-hash.c (bcopy): Macro removed.
21639
21640 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21641
21642         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21643         Add strcmp-power8 object.
21644         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21645         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
21646         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
21647         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
21648         __strcmp_power8 implementation.
21649         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
21650         * NEWS: Update.
21651
21652         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21653         Add strncpy-power8 and stpncpy-power8 objects.
21654         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21655         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
21656         implementations.
21657         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
21658         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
21659         __stpncpy_power8 implementation.
21660         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
21661         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
21662         __strncpy_power8 implementation.
21663         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
21664         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
21665         * NEWS: Update.
21666
21667         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
21668         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
21669         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
21670
21671         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21672         strncat-power8 object.
21673         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
21674         __strcat_power8 implementation.
21675         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21676         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
21677         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
21678         optimized strcat for power8.
21679
21680         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21681         strcpy-power8 and stpcpy-power8 objects.
21682         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21683         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
21684         implementations.
21685         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
21686         multiarch stpcpy implementation for POWER8.
21687         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
21688         multiarch strcpy implementation for POWER8.
21689         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
21690         __strcpy_power8 function.
21691         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
21692         stpcpy for POWER8.
21693         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
21694         strcpy for POWER8.
21695         * NEWS: Update.
21696
21697 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
21698
21699         [BZ #16009]
21700         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
21701         weights and rules. Use do_xfrm_cached if data fits in cache,
21702         do_xfrm otherwise.  Moved former main loop to...
21703         * (do_xfrm_cached): New function.
21704         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
21705         find_idx, find_position and stack_push.
21706         * (find_idx): New function.
21707         * (find_position): Likewise.
21708         * localedata/sort-test.sh: Added test run for do_xfrm.
21709         * localedata/xfrm-test.c (main): Added command line option
21710         -nocache to run the test with strings that are too large for
21711         the STRXFRM cache.
21712
21713 2015-01-13  Torvald Riegel  <triegel@redhat.com>
21714
21715         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
21716         variable to lll_futex_wake call, not the value itself.
21717
21718 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
21719
21720         [BZ #17803]
21721         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
21722         twom64.  Adjust value to 0x1p-64L.
21723         (__scalblnl): Only return standard underflowing result for K <=
21724         -64 not K <= -63; adjust exponent for underflowing result by 64
21725         not 63.
21726         * math/libm-test.inc (scalbn_test_data): Add more tests.
21727         (scalbln_test_data): Likewise.
21728
21729         [BZ #17834]
21730         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
21731         0x1p63L.
21732         (__scalblnl): Get new exponent of adjusted subnormal value from ES
21733         not HX.
21734         * math/libm-test.inc (scalbn_test_data): Add more tests.
21735         (scalbln_test_data): Likewise.
21736
21737 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21738             Stefani Seibold  <stefani@seibold.net>
21739
21740         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
21741         (sysdep_routines): Add dl-vdso here, ...
21742         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
21743         (sysdep_routines): ... not here.
21744         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
21745         fallback when vDSO is not presented.
21746         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
21747         Define with libc_hidden_proto/libc_hidden_data_def definitions.
21748         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
21749         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
21750         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
21751         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
21752         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
21753         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
21754         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
21755         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
21756         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
21757         fallback configurable symbol when vDSO is not available.
21758         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
21759         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
21760         be able to redefine fallback symbol when vDSO is not available.
21761         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
21762         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
21763
21764 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21765
21766         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
21767         (TLS_INIT_TP): Add tm_capable initialization.
21768         (TLS_DEFINE_INIT_TP): Likewise.
21769         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
21770         TCB.
21771         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
21772         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
21773         calculation.
21774         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
21775         transactoion is lock elision is built and TCB tm_capable is set.
21776         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
21777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21778         (INTERNAL_SYSCALL_NCS): Likewise.
21779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21780         (INTERNAL_SYSCALL_NCS): Likewise.
21781         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
21782
21783         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
21784         for powerpc.
21785         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21786         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
21787         and remove it for 32 bits case.
21788         [pthread_rwlock_t] (__rwelision): New field for lock elision.
21789         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
21790         initialization.
21791         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
21792         Disable lock elision with rdlocks if elision is not available.
21793
21794         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
21795         (sysdep_routines): Add lock elision objects.
21796         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21797         [pthread_mutex_t] (__spins): Rework to add lock elision field.
21798         [pthread_mutex_t] (__elision): Add field.
21799         [__PTHREAD_SPINS]: Adjust to init lock elision field.
21800         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
21801         elision definitions for powerpc.
21802         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
21803         implementation of lock elision for powerpc.
21804         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
21805         implementation of timed lock elision for powerpc.
21806         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
21807         implementation of trylock with lock elision for powerpc.
21808         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
21809         implementaion of unlock for lock elision for powerpc.
21810         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
21811         automatic enable lock elision for mutexes.
21812         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
21813         transaction execution definitions for powerpc.
21814         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
21815         definitions.
21816         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
21817         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
21818         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
21819         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
21820         * NEWS: Update.
21821
21822 2015-01-09  Roland McGrath  <roland@hack.frob.com>
21823
21824         * sysdeps/posix/shm-directory.c: Use <> rather than ""
21825         for #include of <shm-directory.h>.
21826
21827 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
21828
21829         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
21830         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
21831
21832 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
21833
21834         [BZ #17791]
21835         * NEWS: Mention bug fix.
21836         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
21837         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
21838         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
21839
21840 2015-01-09  Torvald Riegel <triegel@redhat.com>
21841
21842         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
21843
21844 2015-01-09  Torvald Riegel <triegel@redhat.com>
21845
21846         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
21847
21848 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21849
21850         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
21851         pointer and cast to uintptr_t.
21852
21853 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21854
21855         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
21856         removed.
21857         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
21858
21859 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21860
21861         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
21862         of 0.
21863
21864 2015-01-08  Roland McGrath  <roland@hack.frob.com>
21865
21866         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
21867         <nptl/pthreadP.h> instead.
21868         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
21869
21870         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
21871         already defined.
21872         [__SIGRTMIN] (init): Function removed.
21873         [__SIGRTMIN] (initialized): Variable removed.
21874         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
21875         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
21876         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
21877         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
21878         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
21879         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
21880         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
21881         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
21882         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
21883         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
21884         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
21885         * sysdeps/nptl/allocrtsig.c: New file.
21886         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
21887         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
21888         * sysdeps/generic/testrtsig.h: File removed.
21889
21890         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
21891         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
21892
21893         * nptl/nptl-init.c (pthread_functions): Conditionalize
21894         .ptr__nptl_setxid initialization on [SIGSETXID].
21895
21896         * sysdeps/nptl/sys/procfs.h: New file.
21897         * nptl_db/Makefile (headers): Add it.
21898         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
21899
21900         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
21901         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
21902         * nptl/pthread_attr_setaffinity.c: Include it.
21903         * nptl/pthread_setattr_default_np.c: Likewise.
21904         * nptl/check-cpuset.h: New file.
21905
21906 2015-01-08  Richard Henderson  <rth@redhat.com>
21907
21908         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
21909         (CFLAGS-tst-execstack-prog.c): Likewise.
21910         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
21911
21912 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
21913             Sandra Loosemore  <sandra@codesourcery.com>
21914             Andrew Jenner  <andrew@codesourcery.com>
21915             Joseph Myers  <joseph@codesourcery.com>
21916             Nathan Sidwell  <nathan@codesourcery.com>
21917
21918         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
21919         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
21920         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
21921         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
21922         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
21923         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
21924         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
21925         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
21926         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
21927         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
21928         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
21929         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
21930         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
21931         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
21932         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
21933         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
21934         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
21935
21936 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21937
21938         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
21939         timespec struct member in syscall macro.
21940         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
21941         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
21942         first timeval struct member in syscall macro.
21943         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
21944
21945 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
21946
21947         [BZ #17748]
21948         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
21949         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
21950         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
21951         __feupdateenv and define as weak alias of __feupdateenv.  Use
21952         libm_hidden_weak.
21953         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
21954         libm_hidden_def.
21955         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
21956         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
21957         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21958         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
21959         libm_hidden_def.
21960         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
21961         __feupdateenv and define as weak alias of __feupdateenv.  Use
21962         libm_hidden_weak.
21963         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
21964         libm_hidden_def.
21965         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
21966         __feupdateenv and define as weak alias of __feupdateenv.  Use
21967         libm_hidden_weak.
21968         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
21969         libm_hidden_def.
21970         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21971         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21972         (__feupdateenv): Likewise.
21973         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
21974         __feupdateenv and define as weak alias of __feupdateenv.  Use
21975         libm_hidden_weak.
21976         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21977         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
21978         libm_hidden_def.
21979         * sysdeps/tile/math_private.h (__feupdateenv): New inline
21980         function.
21981         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
21982         libm_hidden_def.
21983         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
21984         __feupdateenv instead of feupdateenv.
21985         (default_libc_feupdateenv_test): Likewise.
21986         (libc_feresetround_ctx): Likewise.
21987
21988 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21989
21990         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
21991         prototype.
21992
21993 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
21994
21995         * posix/regcomp.c (parse_bracket_exp): Initialize type to
21996         COLL_SYM in a couple of places to avoid uninitialized variable
21997         wanings on tilegx gcc 4.8.2.
21998
21999 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
22000
22001         * sysdeps/aarch64/strcpy.S: New file.
22002         * sysdeps/aarch64/stpcpy.S: New file.
22003         * NEWS: Updated.
22004
22005 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
22006
22007         * sysdeps/aarch64/strrchr.S: New file.
22008         * NEWS: Updated.
22009
22010 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
22011
22012         [BZ #17658]
22013         * stdlib/setenv.c: Fix memory leak when setting large,
22014         duplicate string.
22015
22016 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
22017
22018         [BZ #17273]
22019         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
22020         and tabs from buffer before parsing fstab entry.
22021         * misc/tst-mntent.c (main): Add test for mount entry with
22022         trailing spaces and tabs.
22023
22024 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
22025
22026         [BZ #17748]
22027         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
22028         * math/fesetround.c (fesetround): Rename to __fesetround and
22029         define as weak alias of __fesetround.  Use libm_hidden_weak.
22030         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
22031         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
22032         * sysdeps/arm/fesetround.c (fesetround): Likewise.
22033         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
22034         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
22035         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
22036         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
22037         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
22038         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
22039         __fesetround_inline.
22040         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
22041         __fesetround_inline instead of __fesetround.
22042         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
22043         __fesetround and define as weak alias of __fesetround.  Use
22044         libm_hidden_weak.  Call __fesetround_inline instead of
22045         __fesetround.
22046         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
22047         __fesetround and define as weak alias of __fesetround.  Use
22048         libm_hidden_weak.
22049         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
22050         Likewise.
22051         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
22052         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22053         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
22054         * sysdeps/tile/math_private.h (__fesetround): New inline function.
22055         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
22056         __fesetround and define as weak alias of __fesetround.  Use
22057         libm_hidden_weak.
22058         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
22059         __fesetround instead of fesetround.
22060         (default_libc_feholdexcept_setround): Likewise.
22061         (libc_feholdsetround_ctx): Likewise.
22062         (libc_feholdsetround_noex_ctx): Likewise.
22063
22064         [BZ #17748]
22065         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
22066         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
22067         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
22068         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
22069         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22070         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
22071         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22072         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
22073         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22074         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22075         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22076         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22077         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22078         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22079         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
22080         libm_hidden_def.
22081         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
22082         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
22083         Likewise.
22084         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22085         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22086         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
22087         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22088         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
22089         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
22090         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
22091         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
22092         __fesetenv instead of fesetenv.
22093         (libc_feresetround_noex_ctx): Likewise.
22094         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22095         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
22096         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
22097         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22098         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22099         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22100         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
22101         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
22102         (__feupdateenv): Likewise.
22103         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22104         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22105         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22106         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
22107
22108 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
22109
22110         [BZ #17806]
22111         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
22112         addresses have been freed.
22113
22114 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
22115
22116         * resolv/res_init.c (__res_vinit): Improve comments about nserv
22117         and nservall.
22118
22119 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
22120
22121         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
22122         Clean up check_pf allocation pattern. addresses
22123
22124 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22125
22126         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
22127         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
22128         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
22129         * nptl/pthread_exit.c (__pthread_exit): Likewise.
22130         * nptl/pthread_join.c (pthread_join): Likewise.
22131         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
22132         * sysdeps/posix/waitid.c (__waitid): Likewise.
22133         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
22134         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
22135         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
22136         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
22137         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
22138         Likewise.
22139         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
22140         (__libc_pread64): Likewise.
22141         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
22142         (__libc_pwrite): Likewise.
22143         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
22144         (__libc_pwrite64): Likewsie.
22145         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
22146         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
22147         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
22148         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
22149         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
22150         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
22151         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
22152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
22153         Likewise.
22154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
22155         (__libc_pread64): Likewise.
22156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
22157         Likewise.
22158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
22159         (__libc_pwrite64): Likewise.
22160         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
22161         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
22162         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
22163         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
22164         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
22165         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
22166         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
22167         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
22168         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
22169         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
22170         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
22171         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
22172         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
22173         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
22174         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22175         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
22176         Likewise.
22177
22178 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
22179
22180         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
22181         (CFLAGS-test-double.c): Likewise.
22182         (CFLAGS-test-ldouble.c): Likewise.
22183         (CPPFLAGS-test-ifloat.c): Likewise.
22184         (CPPFLAGS-test-idouble.c): Likewise.
22185         (CPPFLAGS-test-ildoubl.c): Likewise.
22186         (CFLAGS-test-test-fenv.c): Remove variable.
22187         (CFLAGS-test-misc.c): Likewise.
22188
22189 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
22190
22191         [BZ #17797]
22192         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
22193         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
22194         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
22195         CLOCKS_PER_SEC == 1000000.
22196         * time/clocktest.c (main): Replace %ld with %jd and cast to
22197         intmax_t.
22198
22199 2015-01-05  Roland McGrath  <roland@hack.frob.com>
22200
22201         * sysdeps/generic/unwind-resume.h: New file.
22202         * sysdeps/gnu/unwind-resume.c: Include it.
22203         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
22204         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
22205         argument list.
22206         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
22207         global rather than static.
22208         (_Unwind_Resume): Update user.
22209         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
22210         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
22211         rather than static.  Add __attribute__ ((cold)).
22212         (_Unwind_Resume, __gcc_personality_v0): Update callers.
22213         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
22214         * sysdeps/arm/arm-unwind-resume.S: New file.
22215         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
22216         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
22217         * sysdeps/arm/Makefile [$(subdir) = csu]
22218         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
22219         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
22220         Add rt-arm-unwind-resume.
22221         [$(subdir) = nptl]
22222         (libpthread-sysdep_routines, libpthread-shared-only-routines):
22223         Add pt-arm-unwind-resume.
22224         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
22225         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
22226
22227 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22228
22229         [BZ #17748]
22230         * include/fenv.h (__feholdexcept): Declare.  Use
22231         libm_hidden_proto.
22232         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
22233         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
22234         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22235         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
22236         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
22237         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
22238         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
22239         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22240         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
22241         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
22242         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
22243         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
22244         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
22245         (feholdexcept): Likewise.
22246         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
22247         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
22248         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
22249         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22250         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
22251         __feholdexcept instead of feholdexcept.
22252         (default_libc_feholdexcept_setround): Likewise.
22253
22254 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22255
22256         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
22257         to avoid using stl/str to align destination.
22258
22259 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22260
22261         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
22262
22263 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22264
22265         [BZ #17796]
22266         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
22267         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
22268         Define as weak alias not strong alias.
22269
22270 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22271
22272         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
22273         bltzal with addiupc.
22274         (RTLD_START): Ditto.
22275
22276 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
22277
22278         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
22279         for __vdso_* functions in declarations.
22280         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
22281         definitions.
22282         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
22283         INTERNAL_VSYSCALL): Use struct return types to check for error.
22284
22285         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
22286         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
22287         function with cast from llround().
22288         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
22289         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
22290         Define.
22291
22292 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22293
22294         [BZ #17793]
22295         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
22296         Define as weak alias not strong alias.
22297
22298         [BZ #17635]
22299         * ctype/ctype-c99.c: New file.  isblank implementation moved from
22300         ...
22301         * ctype/ctype-extn.c: ... here.
22302         (__isblank_l): Move to ...
22303         * ctype/ctype-c99_l.c: ... here.  New file.
22304         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
22305         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
22306         Remove variable.
22307         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
22308         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
22309         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
22310         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
22311         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
22312
22313         [BZ #17777]
22314         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
22315         (posix_fadvise64): Define as weak alias not strong alias.
22316         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
22317         (posix_fallocate64): Likewise.
22318         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
22319         Remove variable.
22320         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
22321         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
22322         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
22323         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
22324         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
22325
22326 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
22327
22328         [BZ #16191]
22329         * NEWS: Mention bug fix.
22330         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
22331         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
22332         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
22333         (HOST_STACK_END_ADDR): Likewise.
22334
22335 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22336
22337         [BZ #17748]
22338         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
22339         * math/fegetround.c (fegetround): Rename to __fegetround and
22340         define as weak alias of __fegetround.  Use libm_hidden_weak.
22341         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
22342         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
22343         * sysdeps/arm/fegetround.c (fegetround): Likewise.
22344         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
22345         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
22346         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
22347         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
22348         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
22349         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
22350         Undefine after rather than before function definition; use
22351         parentheses around function name in definition.
22352         (__fegetround): Also undefine macro after function definition.
22353         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
22354         __fegetround and define as weak alias of __fegetround.  Use
22355         libm_hidden_weak.  Do not undefine as macro.
22356         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
22357         Likewise.
22358         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
22359         __fegetround and define as weak alias of __fegetround.  Use
22360         libm_hidden_weak.
22361         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
22362         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
22363         * sysdeps/tile/math_private.h (__fegetround): New inline function.
22364         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
22365         __fegetround and define as weak alias of __fegetround.  Use
22366         libm_hidden_weak.
22367         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
22368         __fegetround instead of fegetround.
22369
22370         [BZ #17782]
22371         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
22372         Condition macro definition on [__USE_MISC].
22373
22374         [BZ #17781]
22375         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
22376         (struct sigaction): Change type of sa_flags field to int.
22377
22378         [BZ #17780]
22379         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
22380         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
22381         __glibc_reserved0.
22382
22383         * nptl/version.c (banner): Use single year in copyright notice.
22384
22385         * NEWS: Update copyright dates.
22386         * catgets/gencat.c (print_version): Likewise.
22387         * csu/version.c (banner): Likewise.
22388         * debug/catchsegv.sh: Likewise.
22389         * debug/pcprofiledump.c (print_version): Likewise.
22390         * debug/xtrace.sh (do_version): Likewise.
22391         * elf/ldconfig.c (print_version): Likewise.
22392         * elf/ldd.bash.in: Likewise.
22393         * elf/pldd.c (print_version): Likewise.
22394         * elf/sotruss.sh: Likewise.
22395         * elf/sprof.c (print_version): Likewise.
22396         * iconv/iconv_prog.c (print_version): Likewise.
22397         * iconv/iconvconfig.c (print_version): Likewise.
22398         * locale/programs/locale.c (print_version): Likewise.
22399         * locale/programs/localedef.c (print_version): Likewise.
22400         * login/programs/pt_chown.c (print_version): Likewise.
22401         * malloc/memusage.sh (do_version): Likewise.
22402         * malloc/memusagestat.c (print_version): Likewise.
22403         * malloc/mtrace.pl: Likewise.
22404         * manual/libc.texinfo: Likewise.
22405         * nptl/version.c (banner): Likewise.
22406         * nscd/nscd.c (print_version): Likewise.
22407         * nss/getent.c (print_version): Likewise.
22408         * nss/makedb.c (print_version): Likewise.
22409         * posix/getconf.c (main): Likewise.
22410         * scripts/test-installation.pl: Likewise.
22411         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
22412
22413 2015-01-02  Will Newton  <will.newton@linaro.org>
22414
22415         * sysdeps/arm/armv7/configure: Removed.
22416         * sysdeps/arm/armv7/configure.ac: Likewise.
22417
22418 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22419
22420         * All files with FSF copyright notices: Update copyright dates
22421         using scripts/update-copyrights.
22422         * intl/plural.c: Regenerated.
22423         * locale/programs/charmap-kw.h: Likewise.
22424         * locale/programs/locfile-kw.h: Likewise.
22425
22426 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
22427
22428         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
22429
22430 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22431
22432         [BZ #17748]
22433         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
22434         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
22435         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22436         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22437         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22438         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
22439         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22440         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
22441         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22442         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22443         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22444         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22445         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22446         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22447         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
22448         libm_hidden_def.
22449         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
22450         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
22451         Likewise.
22452         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22453         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22454         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22455         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22456         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
22457         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22458         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22459         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
22460         __fegetenv instead of fegetenv.
22461         (libc_feholdsetround_noex_ctx): Likewise.
22462
22463 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
22464
22465         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
22466         (Elf_MIPS_ABIFlags_v0): New structure.
22467         (EF_MIPS_FP64): Define.
22468         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
22469         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
22470         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
22471         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
22472         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
22473         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
22474         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
22475         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
22476         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
22477         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
22478         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
22479         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
22480         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
22481         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
22482         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
22483         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
22484         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
22485         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
22486         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
22487         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
22488         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
22489         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
22490         field.
22491         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
22492         EF_MIPS_FP64.
22493         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
22494         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
22495         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
22496         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
22497         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
22498         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
22499         * sysdeps/mips/tst-abi-interlink.c: Likewise.
22500         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
22501         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
22502         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
22503         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
22504         record the current FP ABI extension.
22505         (mips-mode-switch): Define to show if kernel headers support mode
22506         switching.
22507         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22508         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
22509         supported SYSV ABI version to 3.
22510         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
22511         feature.
22512
22513 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22514             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22515
22516         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
22517         path.
22518         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
22519
22520 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22521
22522         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
22523         __fegetround and redefine to call __fegetround.  Remove condition
22524         on [!__NO_MATH_INLINES].
22525         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
22526         function.
22527         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
22528         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
22529         Remove macro.
22530         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
22531         instead of <fenv_libc.h>.
22532         (__llrintl): Call fegetround instead of __fegetround.
22533         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
22534         instead of <fenv_libc.h>.
22535         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
22536         (__lrintl): Call fegetround instead of __fegetround.
22537         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
22538         instead of <fenv_libc.h>.
22539         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
22540         (__rintl): Call fegetround instead of __fegetround.
22541
22542 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
22543
22544         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
22545         arrays.
22546
22547 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22548
22549         [BZ #17775]
22550         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
22551         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
22552         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
22553
22554 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22555
22556         * sysdeps/i386/tls-macros.h: Include <features.h>.
22557         (TLS_LE): Use non-PIC version for GCC >= 5.0.
22558         (TLS_IE): Likewise.
22559         (TLS_LD): Likewise.
22560         (TLS_GD): Likewise.
22561         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
22562         define for GCC >= 5.0.
22563
22564 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
22565
22566         * math/test-fenv.c (test_single_exception, set_single_exc,
22567         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
22568         feexcp_mask_test, feenable_test, fe_single_test): Add
22569         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
22570         case where they are not used.
22571         * math/libm-test.inc: Likewise.
22572         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
22573         unused in the absence of FP rounding/exception support.
22574         * stdio-common/tst-printf-round.c: Likewise.
22575         * stdlib/tst-strtod-round.c: Likewise.
22576         * stdlib/tst-strtod-underflow.c: Likewise.
22577
22578 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
22579
22580         [BZ #17723]
22581         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
22582         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
22583         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22584         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22585         libm_hidden_weak.
22586         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
22587         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22588         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
22589         libm_hidden_def.
22590         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22591         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22592         libm_hidden_weak.
22593         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
22594         Likewise.
22595         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
22596         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22597         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22598         libm_hidden_weak.
22599         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22600         libm_hidden_def.
22601         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
22602         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
22603         (__feraiseexcept): Likewise.
22604         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22605         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22606         libm_hidden_weak.
22607         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22608         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22609         libm_hidden_def.
22610         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
22611         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
22612         Use libm_hidden_def.
22613         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
22614         libm_hidden_def.
22615         (feraiseexcept): Define as weak not strong alias.  Use
22616         libm_hidden_weak.
22617         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
22618         New inline function.  Factored out of ...
22619         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
22620         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
22621         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
22622         feraiseexcept.
22623         * math/w_acos.c (__acos): Likewise.
22624         * math/w_asin.c (__asin): Likewise.
22625         * math/w_ilogb.c (__ilogb): Likewise.
22626         * math/w_j0.c (y0): Likewise.
22627         * math/w_j1.c (y1): Likewise.
22628         * math/w_jn.c (yn): Likewise.
22629         * math/w_log.c (__log): Likewise.
22630         * math/w_log10.c (__log10): Likewise.
22631         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
22632         * sysdeps/aarch64/fpu/math_private.h
22633         (libc_feupdateenv_test_aarch64): Likewise.
22634         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22635         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
22636         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
22637         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22638         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22639         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22640         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
22641         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22642         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22643         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22644
22645 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22646
22647         [BZ #17732]
22648         * io/test-utime.c (main): Replace %ld with %jd and cast to
22649         intmax_t.
22650         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
22651         * nptl/tst-mutex5.c: Include <stdint.h>.
22652         (do_test): Replace %ld with %jd and cast to intmax_t.
22653         * posix/tst-regex.c (run_test): Likewise.
22654         (run_test_backwards): Likewise.
22655         * rt/tst-clock.c: Include <stdint.h>.
22656         (clock_test): Replace %ld with %jd and cast to intmax_t.
22657         * rt/tst-cpuclock1.c: Include <stdint.h>.
22658         (do_test): Replace %lu with %ju and cast to uintmax_t.
22659         * rt/tst-cpuclock2.c: Include <stdint.h>.
22660         (do_test): Replace %lu with %ju and cast to uintmax_t.
22661         * rt/tst-mqueue1.c: Include <stdint.h>.
22662         (check_attrs): Replace %ld with %jd and cast to intmax_t.
22663         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
22664         intmax_t.
22665         * rt/tst-mqueue4.c (do_test): Likewise.
22666         * rt/tst-timer4.c: Include <stdint.h>.
22667         (check_ts): Replace %ld with %jd and cast to intmax_t.
22668         (do_test): Likewise.
22669         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
22670         and cast to intmax_t.
22671         * sysdeps/pthread/tst-timer.c (main): Likewise.
22672         * time/clocktest.c (main): Likewise.
22673         * time/tst-posixtz.c (do_test): Likewise.
22674         * timezone/tst-timezone.c (main): Likewise.
22675
22676 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22677             H.J. Lu  <hongjiu.lu@intel.com>
22678
22679         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
22680         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
22681         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
22682         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
22683         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
22684         version if bit_Fast_Unaligned_Load is set.
22685         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
22686         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
22687         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
22688         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
22689         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
22690         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
22691         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22692         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
22693         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
22694         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
22695         to 4.
22696         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
22697         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
22698         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
22699         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
22700
22701 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
22702
22703         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
22704         instead of #if to avoid a Wundef warning.
22705         * stdlib/tst-limits.c (do_test): Likewise.
22706
22707         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
22708         parallel other exception macros.
22709         (fegetenv): Convert from macro to extern inline so that it applies
22710         retroactively to inline functions already seen by the compiler.
22711         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
22712
22713         * posix/Makefile (before-compile): Use $(objpfx) for
22714         posix-conf-vars-def.h.
22715
22716 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
22717
22718         * posix/getconf.c (main): Use size_t for type of I.
22719         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
22720         NSPEC.
22721
22722         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
22723         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
22724         * posix/posix-envs.def: Likewise.
22725         * sysdeps/posix/sysconf.c: Likewise.
22726         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
22727         (specs): Remove array.
22728         * scripts/gen-posix-conf-vars.awk: Support generation of specs
22729         array.
22730
22731         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
22732         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
22733         (__sysconf): Use CONF_IS_* macros.
22734
22735         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
22736         ($(objpfx)posix-conf-vars-def.h): New target.
22737         * posix/posix-conf-vars.list: New file.
22738         * posix/posix-conf-vars.h: New file.
22739         * posix/confstr.c: Include posix-conf-vars.h.
22740         (confstr): Use CONF_IS_* macros.
22741         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
22742         CONF_IS_* macros.
22743         * scripts/gen-posix-conf-vars.awk: New file.
22744
22745 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
22746
22747         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
22748         fegetround): Add no-op macros to avoid linknamespace issues.
22749
22750         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
22751         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
22752
22753         * sysdeps/unix/sysv/linux/tile/sysdep.h
22754         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
22755         assembly-specific section to avoid a redefinition warning.
22756
22757         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
22758         long before casting to pointer to avoid a cast warning.
22759
22760 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
22761
22762         * sysdeps/tile/tilegx/Implies: New file.
22763
22764 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
22765
22766         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
22767
22768 2014-12-23  Florian Weimer  <fweimer@redhat.com>
22769
22770         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
22771
22772 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22773
22774         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
22775         not define.
22776         * sysdeps/unix/sysv/linux/utimes.c: Do not include
22777         <kernel-features.h>.
22778         (__utimes) [__NR_utimes]: Make code unconditional.
22779         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
22780         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
22781         (__ASSUME_UTIMES): Do not undefine.
22782         * sysdeps/unix/sysv/linux/tile/kernel-features.h
22783         (__ASSUME_UTIMES): Likewise.
22784         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
22785         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
22786         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
22787         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
22788
22789 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22790
22791         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
22792
22793 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
22794
22795         [BZ #17747]
22796         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
22797         alias to weak alias for j0l, y0l.
22798         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
22799         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
22800
22801         [BZ #17746]
22802         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
22803         conversion.
22804
22805 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22806
22807         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
22808         to zero if not already defined.
22809
22810 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22811
22812         [BZ #17724]
22813         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
22814         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
22815         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
22816         (char *) casts added.
22817         * sysdeps/ieee754/k_standardf.c: New file.
22818         * sysdeps/ieee754/k_standardl.c: Likewise.
22819         * math/Makefile (libm-support): Remove k_standard.
22820         (libm-calls): Add k_standard.
22821
22822 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22823
22824         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
22825         Optimize to avoid an unnecessary FPCR read.
22826
22827 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22828
22829         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
22830         Optimize to reduce FPCR/FPSR accesses.
22831
22832 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22833
22834         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
22835         Call libc_fetestexcept_aarch64.
22836
22837 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22838
22839         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
22840         Call libc_fesetround_aarch64.
22841
22842 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22843
22844         [BZ #17733]
22845         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
22846         (__bind): Do not define as weak alias.
22847         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
22848         define.
22849         (__getsockname): Do not define as weak alias.
22850
22851 2014-12-22  Will Newton  <will.newton@linaro.org>
22852
22853         * manual/install.texi: Document that we require bison 2.7
22854         or above.
22855         * INSTALL: Regenerate.
22856         * configure.ac: Use AC_CHECK_PROG_VER instead of
22857         AC_PATH_PROG when checking for bison and check for
22858         version 2.7 or above.
22859         * configure: Regenerate.
22860
22861 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
22862
22863         [BZ #17745]
22864         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
22865         * sysdeps/tile/ffsll.c (ffsll): To here.
22866
22867         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
22868
22869 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22870
22871         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
22872         if not defined.
22873         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
22874         definition.
22875         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22876         hidden ___tls_get_addr.
22877         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22878         hidden __tls_get_addr.
22879         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
22880         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
22881         Likewise.
22882
22883 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22884
22885         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
22886         _dl_init call.
22887
22888 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22889
22890         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
22891         from "call _dl_init@PLT".
22892         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
22893
22894 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
22895
22896         * manual/search.texi: (Array Sort Function): Clarify stable sorting
22897         guarantees.
22898
22899 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
22900
22901         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
22902
22903 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22904
22905         [BZ #17744]
22906         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
22907         strnlen.
22908
22909 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22910
22911         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
22912         of multu on MIPSr6.
22913         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
22914         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
22915         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
22916         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
22917         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
22918
22919 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22920
22921         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
22922         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
22923         (PTR_SUBU): Use subu for mips32r6/mips64r6.
22924         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
22925         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
22926         mips32r6/mips64r6.
22927         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
22928
22929 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
22930
22931         * string/strncat.c (STRNCAT): Simplify implementation.
22932
22933 2014-12-19  David S. Miller  <davem@davemloft.net>
22934
22935         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
22936         access the quad as both a long double and as a series of 4 words.
22937
22938         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
22939         link_map->l_info array access.
22940
22941 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22942
22943         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
22944
22945         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
22946         * math/atest-exp2.c (TIMEOUT): Likewise.
22947         * math/atest-sincos.c (TIMEOUT): Likewise.
22948
22949 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22950
22951         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
22952         -Wno-error with -fno-builtin-lround.
22953
22954 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22955
22956         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
22957         Contains futex constants and functions moved over from ...
22958         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
22959         <lowlevellock-futex.h>.
22960         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22961         (lll_timedwait_tid): Add comments and parentheses around macro
22962         arguments.
22963
22964 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22965
22966         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
22967         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
22968         (__lll_private_flag): Remove.
22969         (lll_futex_wait): Likewise.
22970         (lll_futex_timed_wait): Likewise.
22971         (lll_futex_wake): Likewise.
22972         (lll_futex_requeue): Likewise.
22973         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22974         (__lll_timedwait_tid): Spell out argument names.
22975         (lll_timedwait_tid): Add comments and parentheses around macro
22976         arguments.
22977         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
22978         LLL_SHARED and LLL_PRIVATE usable from assembly code.
22979
22980 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22981
22982         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
22983         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
22984         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
22985         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
22986         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
22987         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
22988         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
22989         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
22990         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
22991         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
22992         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
22993         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
22994         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
22995         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
22996         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
22997         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
22998         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
22999         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
23000         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
23001
23002 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23003
23004         * sysdeps/x86_64/x32/Makefile: New file.
23005
23006 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23007
23008         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
23009         1L with (mp_limb_t) 1.
23010
23011 2014-12-17  Roland McGrath  <roland@hack.frob.com>
23012
23013         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
23014         * nptl/libc_pthread_init.c: ... here.
23015         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
23016         * nptl/register-atfork.c: ... here.
23017
23018         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
23019         Use pthread_sigmask rather than INTERNAL_SYSCALL.
23020         Use assert_perror to check its return value.
23021         (__gai_create_helper_thread): Likewise.
23022
23023         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
23024
23025         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
23026
23027 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
23028
23029         [BZ #17725]
23030         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
23031         __profil_counter.
23032         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
23033         Likewise.
23034         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
23035         Likewise.
23036         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
23037         Likewise.
23038         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
23039         (profil_counter): Likewise.
23040         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
23041         (profil_counter): Likewise.
23042         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
23043         Likewise.
23044         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
23045         Likewise.
23046         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
23047         (profil_counter): Likewise.
23048         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
23049         Likewise.
23050         [!__profil_counter] (profil_counter): Define as weak alias of
23051         __profil_counter.
23052         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
23053         (profil_counter): Rename to __profil_counter.
23054         [!__profil_counter] (profil_counter): Define as weak alias of
23055         __profil_counter.
23056         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
23057         (profil_counter): Rename to __profil_counter.
23058         [!__profil_counter] (profil_counter): Define as weak alias of
23059         __profil_counter.
23060         * sysdeps/posix/profil.c: Update comment referring to
23061         profil_counter.
23062         (__profil): Use __profil_counter instead of profil_counter.
23063         * sysdeps/posix/sprofil.c (profil_counter): Rename to
23064         __profil_counter.  Use __profil_counter_ushort and
23065         __profil_counter_uint in definitions.
23066         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
23067         instead of profil_counter_uint and profil_counter_ushort.
23068
23069         [BZ #17722]
23070         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
23071         define as weak alias of __inet_makeaddr.
23072         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
23073         as weak alias of __inet_addr.
23074         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
23075         as weak alias of __inet_pton.  Use libc_hidden_weak.
23076         * include/arpa/inet.h (__inet_pton): Declare.  Use
23077         libc_hidden_proto.
23078         (inet_makeaddr): Don't use libc_hidden_proto.
23079         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
23080         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
23081         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
23082         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
23083         Remove variable.
23084         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
23085         (test-xfail-POSIX/time.h/linknamespace): Likewise.
23086
23087 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
23088
23089         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
23090
23091 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
23092
23093         * stdio-common/bug-vfprintf-nargs.c (do_test):
23094         Cast value to intptr_t to avoid format warning
23095         for usage with PRIdPTR printing macro.
23096
23097 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
23098
23099         * libio/tst-widetext.c (do_test):
23100         Use format type %td instead of %Zd for ptrdiff_t
23101         in order to avoid format warning.
23102
23103 2014-12-17  Andreas Schwab  <schwab@suse.de>
23104
23105         * nscd/mem.c (gc): Add size_t cast to match printf format.
23106
23107 2014-12-16  Roland McGrath  <roland@hack.frob.com>
23108
23109         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
23110         (init): Apply PTR_MANGLE to pointers before storing them.
23111         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
23112         before using them.
23113
23114 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
23115
23116         [BZ #17719]
23117         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
23118         define as weak alias of __memrchr.
23119         (__memrchr): Do not define as strong alias of memrchr.
23120         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
23121         Remove variable.
23122         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
23123         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
23124         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
23125
23126         [BZ #17717]
23127         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
23128         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
23129         (if_indextoname): Rename to __if_indextoname and define as weak
23130         alias of __if_indextoname.  Use libc_hidden_weak.
23131         (if_freenameindex): Rename to __if_freenameindex and define as
23132         weak alias of __if_freenameindex.
23133         (if_nameindex): Rename to __if_nameindex and define as weak alias
23134         of __if_nameindex.
23135         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
23136         __if_nametoindex and define as weak alias of __if_nametoindex.
23137         Use libc_hidden_weak.
23138         (if_freenameindex): Rename to __if_freenameindex and define as
23139         weak alias of __if_freenameindex.
23140         (if_nameindex): Rename to __if_nameindex and define as weak alias
23141         of __if_nameindex.
23142         (if_indextoname): Rename to __if_indextoname and define as weak
23143         alias of __if_indextoname.  Use libc_hidden_weak.
23144         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
23145         __if_nametoindex and define as weak alias of __if_nametoindex.
23146         Use libc_hidden_weak.
23147         (if_freenameindex): Rename to __if_freenameindex and define as
23148         weak alias of __if_freenameindex.  Use libc_hidden_weak.
23149         (if_nameindex_netlink): Use __if_freenameindex instead of
23150         if_freenameindex.
23151         (if_nameindex): Rename to __if_nameindex and define as weak alias
23152         of __if_nameindex.  Use libc_hidden_weak.
23153         (if_indextoname): Rename to __if_indextoname and define as weak
23154         alias of __if_indextoname.  Use libc_hidden_weak.
23155         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
23156         libc_hidden_proto.
23157         [!_ISOMAC] (__if_freenameindex): Likewise.
23158         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
23159         if_nametoindex.
23160         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
23161         variable.
23162         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
23163         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
23164         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
23165         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
23166         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
23167         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
23168         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
23169
23170         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
23171         Remove variable.
23172         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
23173         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
23174
23175 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
23176
23177         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
23178         subscript above bounds'
23179
23180         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
23181         bounds.
23182
23183 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
23184
23185         * libio/tst-fopenloc.c: Use test-skeleton.c.
23186
23187         * stdlib/tst-bsearch.c: Use test-skeleton.c.
23188         (entry): Rename to ITEM.
23189         (do_test, comp): Adjust.
23190
23191         * stdio-common/tst-fseek.c: Use test-skeleton.c.
23192
23193 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23194
23195         * string/tester.c: Include <libc-internal.h>.
23196         (test_memset): Ignore -Wmemset-transposed-args.
23197
23198 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23199
23200         * misc/tst-mntent2.c (do_test): Fix warning.
23201
23202 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23203
23204         * elf/tst-unique4lib.cc(a): Mark as used.
23205
23206 2014-12-16  Florian Weimer  <fweimer@redhat.com>
23207
23208         [BZ #17630]
23209         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
23210         names.
23211
23212 2014-12-16  Allan McRae  <allan@archlinux.org>
23213
23214         * stdio-common/Makefile (tests): Re-add bug26.
23215
23216 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
23217
23218         [BZ #17657]
23219         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
23220         static array.
23221
23222 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
23223
23224         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
23225         (__lll_lock_wait): Likewise.
23226         (__lll_timedlock_wait): Likewise.
23227         (__lll_timedwait_tid): Likewise.
23228         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
23229         (__lll_robust_timedlock_wait): Likewise.
23230         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
23231         (lll_cond_trylock): Likewise.
23232         (__lll_lock): Likewise.
23233         (__lll_robust_lock): Likewise.
23234         (__lll_cond_lock): Likewise.
23235         (lll_robust_cond_lock): Likewise.
23236         (__lll_timedlock): Likewise.
23237         (__lll_robust_timedlock): Likewise.
23238         (__lll_unlock): Likewise.
23239         (__lll_robust_unlock): Likewise.
23240         (lll_wait_tid): Likewise.
23241         (lll_timedwait_tid): Likewise.
23242
23243 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23244
23245         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
23246
23247 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23248
23249         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
23250
23251 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23252
23253         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
23254         * stdio-common/tst-sprintf.c: Likewise.
23255
23256 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23257
23258         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
23259
23260 2014-12-15  Jeff Law  <law@redhat.com>
23261
23262         [BZ #16617]
23263         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
23264         on the heap.  (CVE-2012-3406)
23265         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
23266         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
23267         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
23268
23269 2014-12-15  Will Newton  <will.newton@linaro.org>
23270
23271         * manual/install.texi: Bump required version of texinfo
23272         to 4.7 from 4.5.
23273         * INSTALL: Regenerated.
23274         * configure.ac: Check for makeinfo version 4.7 and above.
23275         * configure: Regenerated.
23276
23277 2014-12-12  Roland McGrath  <roland@hack.frob.com>
23278
23279         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
23280         PREFIX, string constant to insert between directory and name.
23281         * sysdeps/posix/shm_open.c: Update caller.
23282         * sysdeps/posix/shm_unlink.c: Likewise.
23283         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
23284         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
23285         (SEM_SHM_PREFIX): New macro.
23286         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
23287         [$(have-thread-library) = no].
23288         * nptl/Makefile (libpthread-routines): Add shm-directory.
23289         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
23290         * sysdeps/nptl/shm-directory.h: New file.
23291         * sysdeps/posix/shm-directory.c
23292         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
23293         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
23294         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
23295         INTERNAL_SYSCALL.
23296         (__where_is_shmfs): Function removed.
23297         (mountpoint, defaultmount, defaultdir, __namedsem_once):
23298         Variables removed.
23299         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
23300         Use SHM_GET_NAME.
23301         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
23302
23303         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
23304         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
23305         unconditional for use inside libpthread.
23306         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
23307
23308 2014-12-12  Roland McGrath  <roland@hack.frob.com>
23309
23310         * nptl/pthread_getaffinity.c: New file.
23311         * nptl/pthread_setaffinity.c: New file.
23312         * nptl/pthread_getname.c: New file.
23313         * nptl/pthread_setname.c: New file.
23314
23315         * nptl/pthread_create.c (START_THREAD_DEFN)
23316         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
23317
23318 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23319             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23320
23321         * resolv/res_send.c (send_vc): Disable warning resplen may
23322         be used uninitialized.
23323
23324 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23325
23326         * nptl/tst-mutex6.c
23327         (ATTR_NULL): New define checks ATTR against NULL.
23328         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
23329         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
23330
23331 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
23332
23333         [BZ #17581]
23334         * malloc/hooks.c
23335         (mem2mem_check): Revert my previous change.
23336         (malloc_check_get_size): Revert my previous change.
23337         (mem2chunk_check): Revert my previous change.
23338
23339 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23340
23341         * sysdeps/posix/shm-directory.c: New file.
23342         * sysdeps/posix/shm-directory.h: New file.
23343         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
23344         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
23345         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
23346         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
23347         Transmute EPERM to EACCES.
23348         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
23349         from ...
23350         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
23351         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
23352
23353 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
23354
23355         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
23356         pointer and cast to uintptr_t.
23357         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
23358         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
23359         Add cast to avoid warning.
23360         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
23361
23362 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23363
23364         * nptl/semaphore.h: Move to ...
23365         * sysdeps/pthread/semaphore.h: ... here.
23366         * Makefile (installed-headers): Change nptl/semaphore.h to
23367         sysdeps/pthread/semaphore.h.
23368
23369 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23370
23371         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
23372         generated error format strings.
23373
23374         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
23375         -Wformat-extra-args warnings for scanf formats.
23376         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
23377         test of zero-length format (duh).
23378         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
23379         corner-case scanf format test.
23380         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
23381         generated fprintf format string.
23382         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
23383         corner-case sprintf format tests.
23384         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
23385         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
23386         -Wformat-extra-args warnings throughout.
23387         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
23388         (CFLAGS-scanf4.c): Likewise.
23389         (CFLAGS-scanf7.c): Likewise.
23390         (CFLAGS-tst-sprintf.c): Likewise.
23391         (CFLAGS-tst-printf.c): Likewise.
23392         (CFLAGS-tst-printfsz.c): Likewise.
23393
23394 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23395
23396         * include/cpio.h: New file.
23397         * include/fmtmsg.h: Likewise.
23398
23399         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
23400         corresponding format argument to size_t.
23401         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
23402         arguments.
23403         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
23404         corresponding format argument to size_t.
23405         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
23406         arguments.
23407         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
23408         corresponding format argument to size_t.
23409         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
23410         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
23411         (CFLAGS-tst-mbswcs2.c): Likewise.
23412         (CFLAGS-tst-mbswcs3.c): Likewise.
23413         (CFLAGS-tst-mbswcs4.c): Likewise.
23414         (CFLAGS-tst-mbswcs5.c): Likewise.
23415         (CFLAGS-tst-trans.c): Likewise.
23416
23417 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23418
23419         * posix/regexbug1.c (main): Use "%s" format with regerror results,
23420         rather than assuming they won't contain any '%'s.
23421
23422 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
23423
23424         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
23425         inhibit_loop_to_libcall to avoid recursive calls.
23426         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
23427         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
23428
23429 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23430
23431         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
23432         prototype.
23433
23434 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23435
23436         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
23437         integer value instead of boolean.
23438
23439 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23440
23441         * malloc/malloc.c: Fix powerof2 check.
23442
23443 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23444
23445         * locale/programs/locfile.h (maybe_swap_uint32):
23446         Remove inline and add unused attribute.
23447
23448 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23449
23450         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
23451         Truncating assembler expression to a .long expression.
23452
23453 2014-12-11  Andreas Schwab  <schwab@suse.de>
23454
23455         * elf/rtld.c (struct map_args): Constify str member.
23456         (do_preload): Constify fname argument.
23457
23458 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23459
23460         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
23461         constants definition.
23462
23463 2014-12-11  Andreas Schwab  <schwab@suse.de>
23464
23465         [BZ #16657]
23466         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
23467         FORCE_ELISION instead of DO_ELISION.
23468         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
23469         Remove.
23470         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
23471         Likewise.
23472
23473         * iconvdata/gconv-modules: Remove duplicate entry.
23474
23475 2014-12-11  Will Newton  <will.newton@linaro.org>
23476
23477         Merge gettext 0.19.3 into intl/.
23478
23479         This involves a number of cosmetic changes to comments
23480         and ANSI function definitions and prototypes throughout
23481         all the files. The gettext copyright header is used but
23482         with the date ranges taken from the glibc copy.
23483
23484         * NEWS: Add gettext merge to 2.21.
23485         * intl/bindtextdom.c: Switch to gettext copyright.
23486         Use ANSI definitions and prototypes.
23487         Use gl_* locking primitives rather than __libc_* ones.
23488         Use __builtin_expect rather than __glibc_likely/unlikely.
23489         * intl/dcgettext.c: Switch to gettext copyright.
23490         Use ANSI definitions and prototypes.
23491         * intl/dcigettext.c: Switch to gettext copyright.
23492         Use ANSI definitions and prototypes.
23493         (INTDIV0_RAISES_SIGFPE): New define.
23494         Use gl_* locking primitives rather than __libc_* ones.
23495         Include eval-plural.h instead of plural-eval.c.
23496         Use __builtin_expect rather than __glibc_likely/unlikely.
23497         * intl/dcngettext.c: Switch to gettext copyright.
23498         Use ANSI definitions and prototypes.
23499         * intl/dgettext.c: Likewise.
23500         * intl/dngettext.c: Likewise.
23501         * intl/plural-eval.c: Renamed to...
23502         * intl/eval-plural.h: ...this.
23503         * intl/explodename.c: Switch to gettext copyright.
23504         Use ANSI definitions and prototypes.
23505         (_nl_explode_name): Use strchr instead of __rawmemchr.
23506         * intl/finddomain.c: Switch to gettext copyright.
23507         Use ANSI definitions and prototypes.
23508         Use gl_* locking primitives rather than __libc_* ones.
23509         (_nl_find_domain): Use malloc rather than alloca for
23510         allocation of temporary locale name.
23511         * intl/gettext.c: Switch to gettext copyright.
23512         Use ANSI definitions and prototypes.
23513         * intl/gettextP.h: Switch to gettext copyright.
23514         Use ANSI definitions and prototypes.
23515         Use gl_* locking primitives rather than __libc_* ones.
23516         * intl/gmo.h: Switch to gettext copyright.
23517         (struct sysdep_string): Move struct segment_pair outside of
23518         struct definition.
23519         * intl/hash-string.c: Use ANSI definitions and prototypes.
23520         * intl/hash-string.h: Switch to gettext copyright.
23521         Use ANSI definitions and prototypes.
23522         * intl/l10nflist.c: Switch to gettext copyright.
23523         Use ANSI definitions and prototypes.
23524         (_nl_normalize_codeset): Avoid integer overflow.
23525         * intl/loadinfo.h: Switch to gettext copyright.
23526         Use ANSI definitions and prototypes.
23527         (LIBINTL_DLL_EXPORTED): New define.
23528         (PATH_SEPARATOR): New define.
23529         * intl/loadmsgcat.c: Switch to gettext copyright.
23530         * intl/localealias.c: Switch to gettext copyright.
23531         Use ANSI definitions and prototypes.
23532         (_nl_expand_alias): Use PATH_SEPARATOR.
23533         * intl/ngettext.c: Switch to gettext copyright.
23534         Use ANSI definitions and prototypes.
23535         * intl/plural-exp.c: Likewise.
23536         * intl/plural-exp.h: Switch to gettext copyright.
23537         Use ANSI definitions and prototypes.
23538         (struct expression): Move definition of enum operator outside
23539         of struct definition.
23540         * intl/plural.c: Regenerate.
23541         * intl/plural.y: Switch to gettext copyright.
23542         Use ANSI definitions and prototypes.
23543         Port to bison 3.0.
23544         * intl/textdomain.c: Switch to gettext copyright.
23545         Use ANSI definitions and prototypes.
23546         Use gl_* locking primitives rather than __libc_* ones.
23547
23548 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
23549
23550         * debug/warning-nop.c: Add used atrribute.
23551
23552 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23553
23554         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
23555
23556         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
23557         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
23558         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
23559
23560 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23561             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23562
23563         [BZ #17634]
23564         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
23565         Undefine after defining function.  Define as weak alias of
23566         __wcschr.  Use libc_hidden_weak.
23567         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
23568         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
23569         (libc_hidden_def): Also define __GI___wcschr alias.
23570         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
23571         __wcschr and define as weak alias of __wcschr.
23572         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
23573         __wcschr.
23574         [!WCSCHR] (DEFAULT_WCSCHR): Define.
23575         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
23576         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
23577         libc_hidden_weak.  Do not use libc_hidden_def.
23578         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
23579         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
23580         __GI___wcschr alias.
23581         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
23582         [IS_IN (libc)] (wcschr): Define as macro expanding to
23583         __redirect_wcschr.
23584         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
23585         [IS_IN (libc)] (__wcschr_power6): Likewise.
23586         [IS_IN (libc)] (__wcschr_power7): Likewise.
23587         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
23588         instead of wcschr.
23589         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
23590         __libc_wcschr.
23591         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
23592         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
23593         __wcschr and define as weak alias of __wcschr.  Use
23594         libc_hidden_builtin_def.
23595         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
23596         as weak alias of __wcschr.  Use libc_hidden_weak.
23597         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
23598         wcschr.
23599         * time/era.c (_nl_init_era_entries): Likewise.
23600         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
23601         variable.
23602         (test-xfail-XPG3/time.h/linknamespace): Likewise.
23603         (test-xfail-XPG4/time.h/linknamespace): Likewise.
23604
23605 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23606
23607         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
23608         format for long int variable.
23609
23610 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
23611
23612         [BZ #10672]
23613         * manual/search.texi: (Array Sort Function): Remove claim how to make
23614         qsort stable.
23615
23616 2014-12-10  Andreas Schwab  <schwab@suse.de>
23617
23618         [BZ #12847]
23619         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
23620         user-controlled locks.
23621
23622 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
23623
23624         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
23625         register.
23626
23627 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23628
23629         * configure.ac (--disable-werror): New configure option.
23630         (enable_werror): New AC_SUBST.
23631         * configure: Regenerated.
23632         * config.make.in (enable-werror): New variable.
23633         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
23634         -Wno-error=undef.
23635         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
23636         * manual/install.texi (Configuring and compiling): Document
23637         --disable-werror.
23638         * INSTALL: Regenerated.
23639         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
23640         (CFLAGS-tst-chk2.c): Likewise.
23641         (CFLAGS-tst-chk3.c): Likewise.
23642         (CFLAGS-tst-chk4.cc): Likewise.
23643         (CFLAGS-tst-chk5.cc): Likewise.
23644         (CFLAGS-tst-chk6.cc): Likewise.
23645         (CFLAGS-tst-lfschk1.c): Likewise.
23646         (CFLAGS-tst-lfschk2.c): Likewise.
23647         (CFLAGS-tst-lfschk3.c): Likewise.
23648         (CFLAGS-tst-lfschk4.cc): Likewise.
23649         (CFLAGS-tst-lfschk5.cc): Likewise.
23650         (CFLAGS-tst-lfschk6.cc): Likewise.
23651
23652         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
23653         (main): Disable -Wdeprecated-declarations around calls to
23654         register_printf_function.
23655
23656         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
23657         (do_test): Disable -Wdiv-by-zero around some calls to
23658         fwrite_unlocked and fread_unlocked.
23659
23660         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
23661         (DIAG_POP_NEEDS_COMMENT): Likewise.
23662         (_DIAG_STR1): Likewise.
23663         (_DIAG_STR): Likewise.
23664         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
23665         * stdio-common/bug21.c: Include <libc-internal.h>.
23666         (do_test): Disable -Wformat around call to sscanf.
23667         * stdio-common/scanf14.c: Include <libc-internal.h>.
23668         (main): Disable -Wformat around some calls to scanf functions.
23669
23670 2014-12-09  Torvald Riegel  <triegel@redhat.com>
23671
23672         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
23673
23674 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23675
23676         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
23677         stack variable alignment.
23678
23679 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
23680
23681         [BZ #17682]
23682         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
23683         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
23684         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
23685         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
23686         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
23687         __getrlimit instead of getrlimit.
23688         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
23689         __gettimeofday instead of gettimeofday.
23690         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23691         Likewise.
23692         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
23693         Likewise.
23694         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
23695         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
23696         Remove variable.
23697         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
23698         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
23699
23700 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23701
23702         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
23703         for wide-character tests.
23704
23705 2014-12-04  Roland McGrath  <roland@hack.frob.com>
23706
23707         * io/openat64.c: #include <libc-internal.h>
23708         (__openat64): Prototypify.  Use ignore_value on MODE.
23709         * io/openat.c: Likewise.
23710         * misc/reboot.c: #include <libc-internal.h>
23711         (reboot): Prototypify.  Use ignore_value on HOWTO.
23712         * misc/ptrace.c: #include <libc-internal.h>
23713         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
23714
23715 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
23716
23717         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
23718         XPG4, UNIX98 and XOPEN2K.
23719         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
23720         Remove variable.
23721         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
23722
23723 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23724
23725         * libio/fileops.c: Use ISO C style for function definitions.
23726         * libio/iofopen.c: Likewise.
23727         * libio/wfileops.c: Likewise.
23728
23729         [BZ #17653]
23730         * libio/fileops.c (_IO_new_file_underflow): Unset cached
23731         offset on EOF.
23732         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
23733         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
23734         (fgets_func): Function pointer to fgets and fgetws.
23735         (do_ftell_test): Add test to verify ftell value after read
23736         EOF.
23737         (do_test): Set fgets_func.
23738
23739         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
23740         O_TRUNC flag for w and w+ modes.
23741         (do_rewind_test): Likewise.
23742         (do_ftell_test): Likewise.
23743         (do_write_test): Likewise.
23744
23745         [BZ #17647]
23746         * libio/fileops.c (do_ftell): Seek only when there are
23747         unflushed writes.
23748         * libio/wfileops.c (do_ftell_wide): Likewise.
23749         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
23750         test case.
23751         (do_one_test): Call it.
23752
23753 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
23754
23755         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
23756         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
23757         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
23758         Remove variable.
23759         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
23760         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
23761         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
23762
23763 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23764
23765         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
23766         Remove variable.
23767         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
23768
23769         [BZ #17668]
23770         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
23771         as weak alias of __getifaddrs.  Use libc_hidden_weak.
23772         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23773         __freeifaddrs.  Use libc_hidden_weak.
23774         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
23775         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
23776         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23777         __freeifaddrs.  Use libc_hidden_weak.
23778         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
23779         __getifaddrs and define as weak alias of __getifaddrs.  Use
23780         libc_hidden_weak.
23781         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23782         __freeifaddrs.  Use libc_hidden_weak.
23783         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
23784         Remove variable.
23785         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
23786         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
23787
23788 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23789
23790         [BZ #17601]
23791         * sysdeps/mips/start.S (__start): Use indirect jump to call
23792         __libc_start_main.
23793
23794 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23795
23796         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
23797
23798         * nptl/tst-mutex1.c: Include <stdbool.h>.
23799         [!ATTR] (ATTR_NULL): New macro.
23800         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
23801         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
23802         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
23803
23804         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
23805         to char *.
23806
23807         [BZ #17665]
23808         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
23809         Change conditional to [__USE_MISC].
23810
23811         [BZ #17664]
23812         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
23813         fgets_unlocked.
23814         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
23815         __fgets_unlocked.
23816         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
23817         fgets_unlocked.
23818         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
23819         Remove variable.
23820         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
23821         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
23822         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
23823         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
23824         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
23825         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
23826         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
23827         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
23828         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
23829
23830         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
23831
23832 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23833
23834         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23835         Remove strpbrk objects.
23836         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23837         (__libc_ifunc_impl_list): Remove strpbrk implementation.
23838         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
23839         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
23840         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
23841         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
23842
23843         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23844         Remove strcspn objects.
23845         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23846         (__libc_ifunc_impl_list): Remove strcspn implementation.
23847         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
23848         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
23849         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
23850         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
23851
23852         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23853         Remove strspn objetcs.
23854         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23855         (__libc_ifunc_impl_list): Remove strspn implementation.
23856         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
23857         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23858         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
23859         * sysdeps/powerpc/powerpc64/strspn.S: New file.
23860
23861 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
23862
23863         [BZ #17581]
23864         * malloc/hooks.c
23865         (mem2mem_check): Add a terminator to the chain of checking blocks.
23866         (malloc_check_get_size): Use it here.
23867         (mem2chunk_check): Ditto.
23868
23869 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23870
23871         * sysdeps/powerpc/powerpc64/strtok.S: New file.
23872         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
23873
23874 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
23875
23876         * bits/ioctl-types.h: Indent preprocessor directives correctly.
23877
23878         * nptl/nptl-init.c: Include libc-internal.h.
23879         (__pthread_initialize_minimal_internal): Use ROUND_UP.
23880
23881         * elf/ldconfig.c (search_dir): Expand comment.
23882
23883 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
23884
23885         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
23886         variable.
23887         (linknamespace-symlist-stdlibs-tests): Likewise.
23888         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
23889         instead of $(objpfx)symlist-stdlibs.
23890         (linknamespace-libs-isoc): New variable.
23891         (linknamespace-libs): Use $(linknamespace-libs-isoc).
23892         (linknamespace-libs-ISO): New variable.
23893         (linknamespace-libs-ISO99): Likewise.
23894         (linknamespace-libs-ISO11): Likewise.
23895         (linknamespace-libs-XPG3): Likewise.
23896         (linknamespace-libs-XPG4): Likewise.
23897         (linknamespace-libs-POSIX): Likewise.
23898         (linknamespace-libs-UNIX98): Likewise.
23899         (linknamespace-libs-XOPEN2K): Likewise.
23900         (linknamespace-libs-POSIX2008): Likewise.
23901         (linknamespace-libs-XOPEN2K8): Likewise.
23902         ($(objpfx)symlist-stdlibs): Replace by
23903         $(linknamespace-symlist-stdlibs-tests).  Use
23904         $(linknamespace-libs-$*) as set of libraries.
23905         ($(linknamespace-header-tests)): Update dependencies.  Use
23906         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
23907         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
23908         * conform/linknamespace.pl: Remove comment about considering
23909         definitions of symbols from irrelevant libraries.
23910
23911 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
23912
23913         [BZ #13862]
23914         * elf/dl-tls.c: Include <atomic.h>.
23915         (oom): Remove #ifdef SHARED/#endif.
23916         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
23917         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
23918         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
23919         big enough.
23920         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
23921         * nptl/Makefile (tests): Add tst-stack4.
23922         (modules-names): Add tst-stack4mod.
23923         ($(objpfx)tst-stack4): New.
23924         (tst-stack4mod.sos): Likewise.
23925         ($(objpfx)tst-stack4.out): Likewise.
23926         ($(tst-stack4mod.sos)): Likewise.
23927         (clean): Likewise.
23928         * nptl/tst-stack4.c: New file.
23929         * nptl/tst-stack4mod.c: Likewise.
23930
23931 2014-11-27  J. Brown  <jb999@gmx.de>
23932
23933         * sysdeps/x86/bits/string.h: Add recent CPUs.
23934
23935 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23936
23937         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
23938         sigblock.
23939
23940         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
23941         feof.
23942
23943         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
23944         variable.
23945
23946 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
23947
23948         * nscd/connections.c: Include libc-internal.h because of macro
23949         usage ignore_value.
23950
23951 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23952
23953         * string/bits/string3.h (__warn_memset_zero_len): Don't
23954         declare for gcc newer than 5.0.
23955         (memset): Don't test for zero-length __LEN for gcc newer than
23956         5.0.
23957
23958 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23959
23960         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
23961         size_t for %zu format.
23962
23963         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
23964         difference, not %ju.
23965
23966 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23967
23968         * include/libc-internal.h (ignore_value): New macro.
23969         * nscd/connections.c (restart): Wrap calls to setuid and setgid
23970         with ignore_value.
23971
23972         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
23973         definition.
23974
23975         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
23976         pthread_cleanup_push to void *.
23977
23978         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
23979         Undefine.
23980
23981         [BZ #16619]
23982         [BZ #16740]
23983         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
23984         instead of 1L << 52.
23985
23986         * libio/bug-rewind.c (do_test): Check fwscanf return values.
23987         * libio/bug-rewind2.c (do_test): Likewise.
23988
23989         * debug/test-stpcpy_chk-ifunc.c: Remove file.
23990         * debug/test-strcpy_chk-ifunc.c: Likewise.
23991         * wcsmbs/test-wcschr-ifunc.c: Likewise.
23992         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
23993         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
23994         * wcsmbs/test-wcslen-ifunc.c: Likewise.
23995         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
23996         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
23997         * Rules [$(multi-arch) = no] (tests): Do not filter out
23998         $(tests-ifunc).
23999         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
24000         * debug/Makefile (tests-ifunc): Remove variable.
24001         (tests): Do not add $(tests-ifunc).
24002         * wcsmbs/Makefile (tests-ifunc): Remove variable.
24003         (tests): Do not add $(tests-ifunc).
24004         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
24005         [TEST_IFUNC]: Remove conditionals.
24006         * string/test-string.h (TEST_IFUNC): Remove macro.
24007         [TEST_IFUNC]: Remove conditionals.
24008
24009         * string/test-strchr.c [!WIDE] (L): New macro.
24010         [WIDE] (L): Likewise.
24011         (check1): Use CHAR instead of char.  Use L on string and character
24012         constants.
24013
24014 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
24015
24016         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
24017         tests.
24018         * sysdeps/powerpc/bits/atomic.h
24019         (__arch_atomic_exchange_and_add_32_acq): Add definition.
24020         (__arch_atomic_exchange_and_add_32_rel): Likewise.
24021         (atomic_exchange_and_add_acq): Likewise.
24022         (atomic_exchange_and_add_rel): Likewise.
24023         * sysdeps/powerpc/powerpc32/bits/atomic.h
24024         (__arch_atomic_exchange_and_add_64_acq): Add definition.
24025         (__arch_atomic_exchange_and_add_64_rel): Likewise.
24026         * sysdeps/powerpc/powerpc64/bits/atomic.h
24027         (__arch_atomic_exchange_and_add_64_acq): Add definition.
24028         (__arch_atomic_exchange_and_add_64_rel): Likewise.
24029
24030 2014-11-26  Torvald Riegel  <triegel@redhat.com>
24031
24032         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
24033         Change synchronization of __sched_fifo_min_prio and
24034         __sched_fifo_max_prio.
24035         * nptl/pthread_mutexattr_getprioceiling.c
24036         (pthread_mutexattr_getprioceiling): Likewise.
24037         * nptl/pthread_mutexattr_setprioceiling.c
24038         (pthread_mutexattr_setprioceiling): Likewise.
24039         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
24040         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
24041         Likewise.
24042
24043 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
24044
24045         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
24046         void.
24047
24048 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
24049
24050         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
24051         third argument const.
24052
24053 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24054
24055         fnmatch: work around GCC compiler warning bug with uninit var
24056         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
24057         This works around a bug with x86-64 GCC 4.9.2 and earlier
24058         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
24059         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
24060         used uninitialized in this function [-Wmaybe-uninitialized]".
24061
24062 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
24063
24064         * posix/bug-regex31.c (main): Return RES not 0.
24065
24066 2014-11-25  Anton Blanchard <anton@samba.org>
24067
24068         * sysdeps/powerpc/bits/atomic.h
24069         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
24070
24071 2014-11-24  Sterling Augustine  <saugustine@google.com>
24072
24073         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
24074
24075 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
24076
24077         [BZ #17608]
24078         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
24079
24080 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
24081
24082         [BZ #17633]
24083         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
24084         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
24085         variable.
24086         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
24087         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
24088
24089 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
24090
24091         * string/strncpy.c (strncpy): Improve performance by using memset.
24092
24093 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
24094
24095         * string/strcpy.c (strcpy):
24096         Improve performance by using strlen and memcpy.
24097
24098 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
24099
24100         * string/strcoll_l.c (get_next_seq): __always_inline.
24101         * string/strcoll_l.c (do_compare): __always_inline.
24102
24103 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
24104
24105         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
24106         defined.
24107         * include/mqueue.h: Likewise.
24108         * include/stdlib.h: Likewise.
24109
24110         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
24111         (get_null_defines): Adjust.
24112         * sunrpc/Makefile: Adjust comment.
24113         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
24114         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
24115         (CFLAGS-interp.c): Likewise.
24116         (CFLAGS-ldconfig.c): Likewise.
24117         (CPPFLAGS-.os): Likewise.
24118         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24119         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24120         * extra-modules.mk (extra-modules.mk): Likewise.
24121         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
24122         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
24123         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
24124         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
24125         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
24126         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
24127         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
24128         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
24129         * iconvdata/Makefile (CPPFLAGS): Likewise.
24130         (cpp-srcs-left): Add libof for all iconvdata routines.
24131         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
24132         * include/assert.h: Likewise.
24133         * include/ctype.h: Likewise.
24134         * include/errno.h: Likewise.
24135         * include/libc-symbols.h: Likewise.
24136         * include/math.h: Likewise.
24137         * include/netdb.h: Likewise.
24138         * include/resolv.h: Likewise.
24139         * include/stdio.h: Likewise.
24140         * include/stdlib.h: Likewise.
24141         * include/string.h: Likewise.
24142         * include/sys/stat.h: Likewise.
24143         * include/wctype.h: Likewise.
24144         * intl/l10nflist.c: Likewise.
24145         * libidn/idn-stub.c: Likewise.
24146         * libio/libioP.h: Likewise.
24147         * nptl/libc_multiple_threads.c: Likewise.
24148         * nptl/pthreadP.h: Likewise.
24149         * posix/regex_internal.h: Likewise.
24150         * resolv/res_hconf.c: Likewise.
24151         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
24152         * sysdeps/arm/memmove.S: Likewise.
24153         * sysdeps/arm/sysdep.h: Likewise.
24154         * sysdeps/generic/_itoa.h: Likewise.
24155         * sysdeps/generic/symbol-hacks.h: Likewise.
24156         * sysdeps/gnu/errlist.awk: Likewise.
24157         * sysdeps/gnu/errlist.c: Likewise.
24158         * sysdeps/i386/i586/memcpy.S: Likewise.
24159         * sysdeps/i386/i586/memset.S: Likewise.
24160         * sysdeps/i386/i686/memcpy.S: Likewise.
24161         * sysdeps/i386/i686/memmove.S: Likewise.
24162         * sysdeps/i386/i686/mempcpy.S: Likewise.
24163         * sysdeps/i386/i686/memset.S: Likewise.
24164         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
24165         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
24166         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
24167         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
24168         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
24169         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
24170         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
24171         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
24172         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
24173         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
24174         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
24175         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
24176         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
24177         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
24178         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
24179         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
24180         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
24181         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
24182         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
24183         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
24184         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
24185         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
24186         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
24187         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
24188         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
24189         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
24190         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
24191         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
24192         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
24193         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
24194         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
24195         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
24196         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
24197         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
24198         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
24199         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
24200         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
24201         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
24202         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24203         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24204         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
24205         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
24206         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24207         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
24208         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
24209         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
24210         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
24211         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
24212         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
24213         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
24214         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
24215         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
24216         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
24217         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
24218         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
24219         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
24220         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
24221         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
24222         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
24223         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
24224         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
24225         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
24226         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
24227         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24228         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24229         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
24230         * sysdeps/posix/closedir.c: Likewise.
24231         * sysdeps/posix/opendir.c: Likewise.
24232         * sysdeps/posix/readdir.c: Likewise.
24233         * sysdeps/posix/rewinddir.c: Likewise.
24234         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
24235         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
24236         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
24237         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
24238         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
24239         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
24240         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
24241         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
24242         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
24243         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
24244         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
24245         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
24246         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
24247         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
24248         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
24249         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
24250         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
24251         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
24252         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
24253         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
24254         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
24255         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
24256         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
24257         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
24258         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
24259         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
24260         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
24261         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
24262         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
24263         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
24264         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
24265         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
24266         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
24267         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
24268         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
24269         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
24270         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
24271         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
24272         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
24273         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
24274         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
24275         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
24276         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
24277         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
24278         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24279         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
24280         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
24281         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
24282         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
24283         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
24284         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
24285         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
24286         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
24287         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
24288         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
24289         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
24290         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
24291         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
24292         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
24293         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
24294         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
24295         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
24296         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
24297         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
24298         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
24299         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
24300         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
24301         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
24302         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
24303         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
24304         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
24305         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
24306         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
24307         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
24308         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
24309         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
24310         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
24311         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
24312         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
24313         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
24314         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
24315         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
24316         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
24317         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
24318         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
24319         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
24320         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
24321         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
24322         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
24323         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
24324         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
24325         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
24326         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
24327         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
24328         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
24329         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
24330         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
24331         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
24332         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
24333         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
24334         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24335         * sysdeps/unix/alpha/sysdep.S: Likewise.
24336         * sysdeps/unix/alpha/sysdep.h: Likewise.
24337         * sysdeps/unix/make-syscalls.sh: Likewise.
24338         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24339         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24340         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24341         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
24342         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24343         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
24344         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
24345         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24346         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24347         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
24348         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24349         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24350         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24351         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24352         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24353         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
24354         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24355         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24356         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24357         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24358         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
24359         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24360         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24361         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24362         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24363         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24364         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24367         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
24368         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24369         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24370         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
24371         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24372         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
24373         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24374         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
24375         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24376         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
24377         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
24378         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24379         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24380         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24381         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
24382         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24383         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24384         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24385         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
24386         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24387         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24388         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24389         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24390         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24391         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24392         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
24393         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24394         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24395         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24396         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
24397         * sysdeps/x86_64/memcpy.S: Likewise.
24398         * sysdeps/x86_64/memmove.c: Likewise.
24399         * sysdeps/x86_64/memset.S: Likewise.
24400         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
24401         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
24402         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
24403         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
24404         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
24405         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24406         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24407         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
24408         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
24409         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
24410         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
24411         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
24412         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
24413         * sysdeps/x86_64/multiarch/memset.S: Likewise.
24414         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
24415         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
24416         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
24417         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
24418         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24419         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
24420         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
24421         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
24422         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
24423         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
24424         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
24425         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
24426         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24427         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
24428         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
24429         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
24430         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
24431         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
24432         * sysdeps/x86_64/strcmp.S: Likewise.
24433
24434         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
24435
24436         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
24437         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
24438         * elf/rtld-Rules: Likewise.
24439         * elf/setup-vdso.h: Likewise.
24440         * include/assert.h: Likewise.
24441         * include/bits/stdlib-float.h: Likewise.
24442         * include/errno.h: Likewise.
24443         * include/sys/stat.h: Likewise.
24444         * include/unistd.h: Likewise.
24445         * sysdeps/aarch64/setjmp.S: Likewise.
24446         * sysdeps/alpha/setjmp.S: Likewise.
24447         * sysdeps/arm/__longjmp.S: Likewise.
24448         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
24449         * sysdeps/arm/setjmp.S: Likewise.
24450         * sysdeps/arm/sysdep.h: Likewise.
24451         * sysdeps/generic/_itoa.h: Likewise.
24452         * sysdeps/generic/dl-sysdep.h: Likewise.
24453         * sysdeps/generic/ldsodefs.h: Likewise.
24454         * sysdeps/i386/dl-tls.h: Likewise.
24455         * sysdeps/i386/setjmp.S: Likewise.
24456         * sysdeps/m68k/setjmp.c: Likewise.
24457         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
24458         * sysdeps/mach/hurd/opendir.c: Likewise.
24459         * sysdeps/posix/getcwd.c: Likewise.
24460         * sysdeps/posix/opendir.c: Likewise.
24461         * sysdeps/posix/profil.c: Likewise.
24462         * sysdeps/powerpc/dl-procinfo.h: Likewise.
24463         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
24464         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
24465         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
24466         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
24467         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
24468         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
24469         * sysdeps/s390/dl-tls.h: Likewise.
24470         * sysdeps/s390/s390-32/setjmp.S: Likewise.
24471         * sysdeps/s390/s390-64/setjmp.S: Likewise.
24472         * sysdeps/sh/sh3/setjmp.S: Likewise.
24473         * sysdeps/sh/sh4/setjmp.S: Likewise.
24474         * sysdeps/unix/alpha/sysdep.h: Likewise.
24475         * sysdeps/unix/arm/sysdep.S: Likewise.
24476         * sysdeps/unix/i386/sysdep.S: Likewise.
24477         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24478         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
24479         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24480         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24481         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24482         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24483         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
24484         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24485         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24486         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24487         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
24488         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24489         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
24491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
24492         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24493         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24494         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24495         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24496         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24497         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24498         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24499         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24500         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24501         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24502         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24503         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24504         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24505         * sysdeps/x86_64/setjmp.S: Likewise.
24506
24507         * include/math.h: Use IS_IN instead of IS_IN_libm.
24508         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
24509         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
24510         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
24511         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
24512         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
24513         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
24514         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
24515         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
24516         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
24517         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
24518         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
24519         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
24520         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
24521         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
24522         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
24523         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
24524         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24525         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
24526         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24527         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
24528         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
24529         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
24530         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
24531         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
24532         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
24533         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
24534         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
24535         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
24536         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
24537         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
24538         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
24539         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
24540         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
24541         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
24542         Likewise.
24543         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
24544         Likewise.
24545         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
24546         Likewise.
24547         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
24548         Likewise.
24549         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
24550         Likewise.
24551         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
24552         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
24553         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
24554         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
24555         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
24556         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
24557         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
24558         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
24559         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
24560         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
24561         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
24562         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
24563         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
24564         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
24565         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
24566         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
24567         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
24568         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
24569         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
24570         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
24571         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
24572         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
24573         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
24574         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
24575         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
24576         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
24577         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
24578
24579         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
24580         * nptl/pthreadP.h: Likewise.
24581         * nptl_db/structs.def: Likewise.
24582         * sysdeps/arm/sysdep.h: Likewise.
24583         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24584         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24585         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
24586         * sysdeps/unix/alpha/sysdep.h: Likewise.
24587         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24588         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24589         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24590         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24591         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24592         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24593         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24594         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24595         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24596         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24597         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24598         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24599         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24600         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24603         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24604         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24605         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24606         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24607         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24608         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24609         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24610         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24611         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
24612         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24613
24614         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
24615         * nptl/pthreadP.h: Likewise.
24616         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24617         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24618         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24619         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24620         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24621         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24622         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24623         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24624         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24625         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24626         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24627         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
24629         Likewise.
24630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
24631         Likewise.
24632         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24633         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24634         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24635         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24636         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24637         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24638         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24639         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24640
24641         * dlfcn/dladdr.c: Use IS_IN.
24642         * dlfcn/dladdr1.c: Likewise.
24643         * dlfcn/dlclose.c: Likewise.
24644         * dlfcn/dlerror.c: Likewise.
24645         * dlfcn/dlinfo.c: Likewise.
24646         * dlfcn/dlmopen.c: Likewise.
24647         * dlfcn/dlopen.c: Likewise.
24648         * dlfcn/dlsym.c: Likewise.
24649         * dlfcn/dlvsym.c: Likewise.
24650
24651         * include/ifaddrs.h: Use IS_IN.
24652         * inet/check_pf.c: Likewise.
24653         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
24654         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
24655
24656         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
24657         IS_IN_ldconfig.
24658         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
24659         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
24660
24661         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
24662         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
24663         IS_IN (libc).
24664
24665         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
24666
24667         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
24668         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24669         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24670         * include/libc-symbols.h (IS_IN_LIB): New macro.
24671         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
24672         * include/netdb.h: Likewise.
24673         * include/stap-probe.h: Remove all uses of IN_LIB.
24674
24675         * Makeconfig (module-cppflags-real): Define MODULE_NAME
24676         instead of IN_MODULE.
24677         * include/libc-symbols.h (IN_MODULE): Define using
24678         MODULE_NAME.
24679         (PASTE_NAME, PASTE_NAME1): New macros.
24680         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
24681         of IN_LIB.
24682         (STAP_PROBE_ASM): Likewise.
24683
24684 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24685
24686         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
24687         __mach_init in dlopened libc.
24688
24689 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
24690
24691         * sysdeps/arm/preconfigure.ac: Delete EABI check.
24692         * sysdeps/arm/preconfigure: Regenerate.
24693
24694 2014-11-21  Roland McGrath  <roland@hack.frob.com>
24695
24696         * nptl/pthread_create.c (__pthread_create_2_1): Set
24697         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
24698         when copying values from IATTR into PD.
24699
24700 2014-11-21  Will Newton  <will.newton@linaro.org>
24701             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
24702
24703         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
24704         Refactor inline-asm.  Also add comment.
24705
24706         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
24707         ElfW macro instead of hardcoded Elf64 types.
24708         (la_aarch64_gnu_pltenter): Likewise.
24709         * sysdeps/aarch64/dl-machine.h
24710         (elf_machine_runtime_setup): Use ElfW(Addr).
24711
24712         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
24713         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
24714         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
24715         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
24716         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
24717         (R_AARCH64_TLS_DTPMOD64): Rename to ..
24718         (R_AARCH64_TLS_DTPMOD): This.
24719         (R_AARCH64_TLS_DTPREL64): Rename to ...
24720         (R_AARCH64_TLS_DTPREL): This.
24721         (R_AARCH64_TLS_TPREL64): Rename to ...
24722         (R_AARCH64_TLS_TPREL): This.
24723         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
24724         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
24725         R_AARCH64_TLS_TPREL64.
24726         (elf_machine_rela): Likewise.
24727
24728 2014-11-21  Torvald Riegel  <triegel@redhat.com>
24729
24730         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
24731         by setting it to 0.  64b atomics are not supported currently.
24732
24733 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24734
24735         [BZ #16469]
24736         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
24737         search domain names.
24738
24739 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24740
24741         [BZ #16469]
24742         * NEWS: Update.
24743         * resolv/res_query.c (__libc_res_nquerydomain): Retain
24744         trailing dot.
24745         * posix/tst-getaddrinfo5.c: New.
24746         * posix/Makefile (tests): Add it.
24747
24748 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24749
24750         [BZ #14498]
24751         * NEWS: Fixed.
24752         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
24753         after parsing line but before break_if_match.
24754         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
24755         if there is a protocol mismatch.
24756
24757 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
24758
24759         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
24760         because the potential race is on the user-supplied stream.
24761
24762 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24763
24764         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
24765         string literal if not passed a buffer.
24766         * manual/job.texi (ctermid): Update reasoning, note deviation
24767         from posix, suggest mtasurace when not passed a buffer, for
24768         future non-preliminary safety notes.
24769
24770 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24771
24772         * manual/users.texi (cuserid): Fix MT-Safety note for the case
24773         of not passing it a buffer.
24774         Reported by Peng Haitao.
24775
24776 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24777
24778         * manual/Makefile ($(objpfx)stamp-summary): Require
24779         check-safety.sh to pass.
24780         * manual/check-safety.sh: Wish for verification that every
24781         @deftypefn and @deftypefun is followed by a @safety remark.
24782
24783 2014-11-20  Roland McGrath  <roland@hack.frob.com>
24784
24785         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
24786
24787         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
24788         PTHREAD_CANCEL_ASYNCHRONOUS.
24789         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
24790         send SIGCANCEL.
24791
24792         * nptl/default-sched.h: New file.
24793         * sysdeps/unix/sysv/linux/default-sched.h: New file.
24794         * nptl/pthread_create.c: Include it.
24795         (__pthread_create_2_1): Use collect_default_sched instead of making
24796         Linux syscalls here directly.
24797
24798 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24799
24800         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
24801         __pthread_once): Use C11 atomics.
24802
24803 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24804
24805         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
24806
24807 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24808
24809         * include/atomic.h (__atomic_link_error, __atomic_check_size,
24810         atomic_thread_fence_acquire, atomic_thread_fence_release,
24811         atomic_thread_fence_seq_cst, atomic_load_relaxed,
24812         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
24813         atomic_compare_exchange_weak_relaxed,
24814         atomic_compare_exchange_weak_acquire,
24815         atomic_compare_exchange_weak_release,
24816         atomic_exchange_acquire, atomic_exchange_release,
24817         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
24818         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
24819         atomic_fetch_and_acquire,
24820         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
24821
24822 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24823
24824         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
24825         USE_ATOMIC_COMPILER_BUILTINS): Define.
24826         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
24827         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24828         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
24829         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24830         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
24831         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24832         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
24833         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24834         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
24835         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24836         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
24837         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24838         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
24839         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24840         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
24841         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24842         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24843         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24844         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24845         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24846         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
24847         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24848         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24849         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24850         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
24851         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24852         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24853         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24854         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
24855         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24856         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
24857         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24858         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
24859         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24860         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24861         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24862         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
24863         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24864         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
24865         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24866
24867 2014-11-19  Roland McGrath  <roland@hack.frob.com>
24868
24869         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
24870         the sched_priority value here.  It was already checked when the user
24871         called pthread_attr_setschedparam.
24872
24873         * nptl/tst-bad-schedattr.c: New file.
24874         * nptl/Makefile (tests): Add it.
24875
24876 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
24877             Florian Weimer  <fweimer@redhat.com>
24878             Joseph Myers  <joseph@codesourcery.com>
24879             Adam Conrad  <adconrad@0c3.net>
24880             Andreas Schwab  <schwab@suse.de>
24881             Brooks  <bmoses@google.com>
24882
24883         [BZ #17625]
24884         * wordexp-test.c (__dso_handle): Add prototype.
24885         (__register_atfork): Likewise.
24886         (__app_register_atfork): New function.
24887         (registered_forks): New global.
24888         (register_fork): New function.
24889         (test_case): Add 3 new tests for WRDE_CMDSUB.
24890         (main): Call __app_register_atfork.
24891         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
24892         fork count is non-zero fail the test.
24893         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
24894         is set.
24895         (parse_dollars): Remove check for WRDE_NOCMD.
24896         (parse_dquote): Likewise.
24897
24898 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24899
24900         * Makeconfig (built-modules): List non-library modules to be
24901         built.
24902         (module-cppflags): Include libc-modules.h for
24903         everything except shlib-versions.v.i.
24904         (CPPFLAGS): Use it.
24905         (before-compile): Add libc-modules.h.
24906         ($(common-objpfx)libc-modules.h,
24907         $(common-objpfx)libc-modules.stmp): New targets.
24908         (common-generated): Add libc-modules.h and libc-modules.stmp.
24909         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
24910         * include/libc-symbols.h: Don't include libc-modules.h.
24911         * include/libc-modules.h: Remove file.
24912         * scripts/gen-libc-modules.awk: New script to generate
24913         libc-modules.h.
24914         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
24915         Depend on libc-modules.stmp.
24916
24917         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
24918
24919         * Makeconfig (in-module): Get value of libof set for the
24920         translation unit.
24921         (CPPFLAGS): Use $(in-module).
24922         * Makerules: Don't suffix routine names for nonlib.
24923         * include/libc-modules.h: New file.
24924         * include/libc-symbols.h: Include libc-modules.h
24925         (IS_IN): New macro to replace IS_IN_* macros.
24926         * elf/Makefile: Set libof-* for each routine.
24927         * elf/rtld-Rules: Likewise.
24928         * extra-modules.mk: Likewise.
24929         * iconv/Makefile: Likewise.
24930         * iconvdata/Makefile: Likewise.
24931         * locale/Makefile: Likewise.
24932         * malloc/Makefile: Likewise.
24933         * nss/Makefile: Likewise.
24934         * sysdeps/gnu/Makefile: Likewise.
24935         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
24936         * sysdeps/unix/sysv/linux/Makefile: Likewise.
24937         * sysdeps/s390/s390-64/Makefile: Likewise.
24938         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
24939         CPPFLAGS for nscd instead of nonlib.
24940
24941 2014-11-18  Roland McGrath  <roland@hack.frob.com>
24942
24943         * nptl/createthread.c: New file.
24944
24945         * nptl/createthread.c: Moved ...
24946         * sysdeps/unix/sysv/linux/createthread.c: ... here.
24947
24948         * nptl/createthread.c: Add proper top-line comment.
24949         (do_clone): Folded into ...
24950         (create_thread): ... here.  Take new arguments STOPPED_START and
24951         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
24952         increment __nptl_threads, do event-reporting logic, do
24953         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
24954         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
24955         resource cleanup if sched_setaffinity or sched_setscheduler fails,
24956         just send SIGCANCEL.
24957         * nptl/pthread_create.c: Forward-declare create_thread before
24958         including createthread.c.
24959         (start_thread): Use new macro START_THREAD_DEFN to replace defining
24960         declaration, and new macro START_THREAD_SELF to replace argument.
24961         Remove return statement.
24962         (report_thread_creation): New function.
24963         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
24964         synchronization logic, and __nptl_nthreads increment here, around
24965         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
24966         PD->parent_cancelhandling here, before create_thread.  When
24967         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
24968         __deallocate_stack, and ENOMEM translation here.
24969
24970 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
24971
24972         [BZ #17616]
24973         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
24974         (mptwo): Rename to __mptwo.
24975         (__inv): Use __mptwo instead of mptwo.
24976         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
24977         (mptwo): Rename to __mptwo.
24978         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
24979         of mpone and __mptwo instead of mptwo.
24980         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
24981         instead of mpone.
24982         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
24983         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
24984         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
24985         of mpone and __mptwo instead of mptwo.
24986         (__mpranred): Use __mpone instead of mpone.
24987         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
24988         variable.
24989         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24990         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24991         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24992         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24993         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24994         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24995         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24996         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24997         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24998         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24999         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
25000         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
25001         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
25002         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
25003         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
25004         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
25005         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
25006         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
25007         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
25008
25009 2014-11-18  Tom de Vries  <tom@codesoucery.com>
25010
25011         * manual/signal.texi (Primitives Interrupted by Signals): In section,
25012         replace BSD Handler xref with BSD Signal Handling.
25013
25014 2014-11-17  Richard Henderson  <rth@redhat.com>
25015
25016         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
25017         (_FP_PACK_RAW_2): Remove.
25018         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
25019         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
25020         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
25021         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
25022         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
25023         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
25024         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
25025         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
25026         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
25027         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
25028         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
25029         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
25030         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
25031         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
25032         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
25033         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
25034
25035 2014-11-14  Roland McGrath  <roland@hack.frob.com>
25036
25037         * signal/signal.h [__USE_MISC]
25038         (struct sigvec): Remove type.
25039         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
25040         (sigvec): Remove declaration.
25041         * sysdeps/posix/sigvec.c: Moved ...
25042         * signal/sigvec.c: ... here, replacing old file.
25043         (struct sigvec): New type, copied from old signal.h definition.
25044         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
25045         (__sigvec): Convert definition to prototype.
25046         (sigvec): Replace weak_alias with compat_symbol.
25047         * signal/Versions (libc: GLIBC_2.21): New version set.
25048         * include/signal.h: Remove __sigvec declaration.
25049         * sysdeps/unix/bsd/sigvec.c: Remove file.
25050         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
25051         * manual/signal.texi (BSD Handler): Remove subsection.
25052         Move siginterrupt up to ...
25053         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
25054         (Blocking in BSD): Fold subsection into its parent.
25055         * NEWS: Mention sigvec removal.
25056
25057 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
25058
25059         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
25060         (DLA_FMS): Make definition conditional only on [__FMA4__].
25061         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
25062         definition.
25063
25064         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
25065         Make definition conditional only on [PROF].
25066         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
25067         definition.
25068         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
25069         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
25070
25071         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
25072         !__GNUC__].
25073         * include/signal.h (__sigpause): Move declaration above call to
25074         libc_hidden_proto.
25075         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
25076         variable.
25077         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
25078         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
25079
25080 2014-11-14  David S. Miller  <davem@davemloft.net>
25081
25082         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
25083         Define before including <string/memcpy.c> and <string/mempcpy.c>.
25084
25085 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
25086
25087         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
25088         * configure: Regenerated.
25089         * manual/install.texi (Tools for Compilation): Document a
25090         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
25091         compiler verified to work.
25092         * INSTALL: Regenerated.
25093
25094         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
25095         redeclare with asm name.
25096         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
25097         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
25098         including <string.h>.
25099         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25100         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
25101         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25102         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
25103         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25104         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
25105         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25106
25107 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
25108
25109         * stdlib/strtol.c (__strtol): Use prototype definition.
25110
25111         [BZ #17594]
25112         * stdlib/strtol.c (SYM__): New macro.
25113         (SYM__1): Likewise.
25114         (__strtol): Likewise.
25115         (strtol): Rename to __strtol and define as weak alias of
25116         __strtol.  Use libc_hidden_weak.
25117
25118 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25119
25120         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
25121         Use numbered labels in inline assembly.
25122
25123 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25124
25125         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
25126         Add setjmp LIBC_PROBE.
25127         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
25128         Likewise.
25129         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
25130         Add longjmp, longjmp_target LIBC_PROBE.
25131         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
25132         Likewise.
25133
25134 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25135
25136         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
25137         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
25138         to get rid of unused variable warning.
25139
25140 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25141
25142         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
25143         Check for unwind_backtrace ==  NULL only in SHARED case.
25144         (__backchain_backtrace): Compile only in SHARED case.
25145         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
25146         Likewise.
25147         (__backchain_backtrace): Declare as static.
25148
25149 2014-11-12  Roland McGrath  <roland@hack.frob.com>
25150
25151         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
25152         (__libc_multiple_threads_ptr): Variable moved ...
25153         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
25154
25155 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
25156
25157         * conform/GlibcConform.pm: New file.
25158         * conform/conformtest.pl: Use GlibcConform module.
25159         * conform/linknamespace.pl: New file.
25160         * conform/list-header-symbols.pl: Likewise.
25161         * conform/Makefile (linknamespace-symlists-base): New variable.
25162         (linknamespace-symlists-tests): Likewise.
25163         (linknamespace-header-base): Likewise.
25164         (linknamespace-header-tests): Likewise.
25165         (tests-special): Add new tests.
25166         ($(linknamespace-symlists-tests)): New rule.
25167         (linknamespace-libs): New variable.
25168         ($(objpfx)symlist-stdlibs): New rule.
25169         ($(linknamespace-header-tests)): Likewise.
25170         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
25171         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
25172         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
25173         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
25174         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
25175         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
25176         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
25177         (test-xfail-ISO/math.h/linknamespace): Likewise.
25178         (test-xfail-ISO/signal.h/linknamespace): Likewise.
25179         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
25180         (test-xfail-ISO/time.h/linknamespace): Likewise.
25181         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
25182         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
25183         (test-xfail-ISO99/math.h/linknamespace): Likewise.
25184         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
25185         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
25186         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
25187         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
25188         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
25189         (test-xfail-ISO11/math.h/linknamespace): Likewise.
25190         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
25191         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
25192         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
25193         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
25194         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
25195         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
25196         (test-xfail-XPG3/math.h/linknamespace): Likewise.
25197         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
25198         (test-xfail-XPG3/search.h/linknamespace): Likewise.
25199         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
25200         (test-xfail-XPG3/time.h/linknamespace): Likewise.
25201         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
25202         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
25203         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
25204         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
25205         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
25206         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
25207         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
25208         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
25209         (test-xfail-XPG4/math.h/linknamespace): Likewise.
25210         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
25211         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
25212         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
25213         (test-xfail-XPG4/search.h/linknamespace): Likewise.
25214         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
25215         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
25216         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
25217         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
25218         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
25219         (test-xfail-XPG4/time.h/linknamespace): Likewise.
25220         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
25221         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
25222         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
25223         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
25224         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
25225         (test-xfail-POSIX/math.h/linknamespace): Likewise.
25226         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
25227         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
25228         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
25229         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
25230         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
25231         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
25232         (test-xfail-POSIX/time.h/linknamespace): Likewise.
25233         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
25234         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
25235         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
25236         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
25237         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
25238         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
25239         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
25240         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
25241         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
25242         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
25243         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
25244         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
25245         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
25246         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
25247         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
25248         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
25249         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
25250         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
25251         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
25252         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
25253         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
25254         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
25255         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
25256         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
25257         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
25258         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
25259         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
25260         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
25261         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
25262         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
25263         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
25264         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
25265         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
25266         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
25267         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
25268         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
25269         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
25270         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
25271         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
25272         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
25273         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
25274         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
25275         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
25276         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
25277         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
25278         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
25279         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
25280         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
25281         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
25282         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
25283         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
25284         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
25285         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
25286         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
25287         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
25288         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
25289         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
25290         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
25291         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
25292         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
25293         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
25294         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
25295         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
25296         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
25297         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
25298         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
25299         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
25300         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
25301         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
25302         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
25303         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
25304         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
25305         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
25306         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
25307         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
25308         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
25309         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
25310         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
25311         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
25312         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
25313         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
25314         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
25315         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
25316         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
25317         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
25318         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
25319         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
25320         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
25321         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
25322         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
25323         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
25324         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
25325         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
25326         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
25327         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
25328         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
25329         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
25330         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
25331
25332         [BZ #17589]
25333         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
25334         of fgets_unlocked.
25335
25336         [BZ #17585]
25337         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
25338         (memmem): Rename to __memmem and define as weak alias of
25339         __memmem.  Use libc_hidden_weak.
25340         (__memmem): Use libc_hidden_def.
25341         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
25342         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
25343         memmem.
25344
25345         [BZ #17582]
25346         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
25347         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
25348         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
25349         and define as weak alias of __fgets_unlocked.  Use
25350         libc_hidden_weak.
25351         (__fgets_unlocked): Use libc_hidden_def.
25352         * include/stdio.h (__fgets_unlocked): Declare.  Use
25353         libc_hidden_proto.
25354         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
25355         __fgets_unlocked instead of fgets_unlocked.
25356         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
25357         (GET_NPROCS_CONF_PARSER): Likewise.
25358         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
25359         (GET_NPROCS_CONF_PARSER): Likewise.
25360
25361         [BZ #17574]
25362         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
25363         weak alias of __wmemset.  Use libc_hidden_weak.
25364         (__wmemset): Use libc_hidden_def.
25365         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
25366         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
25367         of wmemset.
25368
25369         [BZ #17573]
25370         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
25371         with asm name __mempcpy.
25372         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
25373
25374         [BZ #17572]
25375         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
25376         and define as weak alias of __rawmemchr.
25377         (__rawmemchr): Do not define as strong alias of rawmemchr.
25378
25379         [BZ #17571]
25380         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
25381         alias of __qsort_r.
25382         (qsort): Call __qsort_r instead of qsort_r.
25383         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
25384         (__qsort_r): Declare.  Call libc_hidden_proto.
25385         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
25386         instead of qsort_r.
25387         * nscd/gai.c (__qsort_r): Define to qsort_r.
25388         * posix/tst-rfc3484.c (__qsort_r): Likewise.
25389         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
25390         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
25391
25392         [BZ #17570]
25393         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
25394         define as weak alias of __malloc_info.
25395
25396         [BZ #17584]
25397         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
25398         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25399         (__rewinddir): Use libc_hidden_def.
25400         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
25401         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25402         (__rewinddir): Use libc_hidden_def.
25403         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
25404         weak alias of __rewinddir.  Don't use libc_hidden_def.
25405         (__rewinddir): Use libc_hidden_def.
25406         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
25407         (__rewinddir): Use libc_hidden_proto.
25408         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
25409         rewinddir.
25410         (__getcwd): Use __rewinddir instead of rewinddir.
25411
25412         [BZ #17583]
25413         * libio/fileno.c (fileno): Rename to __fileno and define as weak
25414         alias of __fileno.  Use libc_hidden_weak.
25415         (__fileno): Use libc_hidden_def.
25416         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
25417         * libio/ftello.c (ftello): Rename to __ftello and define as weak
25418         alias of __ftello.
25419         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
25420         __ftello.
25421         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
25422         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
25423         libc_hidden_def.
25424         (fread_unlocked): Don't use libc_hidden_ver.
25425         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
25426         and define as weak alias of __fread_unlocked.  Don't use
25427         libc_hidden_def.
25428         (__fread_unlocked): Use libc_hidden_def.
25429         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
25430         (ftello): Don't use libc_hidden_proto.
25431         (__ftello): Declare.  Use libc_hidden_proto.
25432         (fread_unlocked): Don't use libc_hidden_proto.
25433         (__fread_unlocked): Declare.  Use libc_hidden_proto.
25434         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
25435         and __ftello instead of fileno, fread_unlocked and ftello.
25436
25437 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
25438
25439         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
25440         GOT12.
25441         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
25442         Likewise.
25443         (_dl_start_user): Likewise.
25444         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
25445
25446 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
25447             Siddhesh Poyarekar  <siddhesh@redhat.com>
25448
25449         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
25450         Move argv and envp down instead of moving argc up.
25451         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
25452
25453 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
25454
25455         [BZ #17506]
25456         * test-skeleton.c (main): Return successful if one of
25457         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
25458         * string/tst-strcoll-overflow.c: Define expected status.
25459
25460 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
25461
25462         [BZ #17475]
25463         * locale/iso-639.def: Define Bhili and Tulu language codes.
25464
25465 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
25466
25467         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
25468
25469 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
25470
25471         [BZ #17555]
25472         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
25473
25474 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
25475
25476         * configure.ac: Updated check of minimal required version to
25477         2.22.
25478         * manual/install.texi (Tools for Compilation): Updated version
25479         number.
25480         * configure: Regenerated.
25481         * INSTALL: Likewise.
25482
25483 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
25484
25485         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
25486         __tls_get_addr.
25487
25488 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
25489
25490         * include/sys/wait.h (__libc_waitpid): Remove declaration.
25491         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
25492         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25493         libc_hidden_weak.
25494         (waitpid): Define as alias of __waitpid.
25495         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
25496         __waitpid.
25497         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25498         libc_hidden_weak.
25499         (waitpid): Define as alias of __waitpid.
25500         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
25501         __libc_waitpid alias.
25502         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
25503         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
25504         Likewise.
25505         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
25506         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
25507         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
25508         alias.
25509         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
25510         __waitpid.
25511         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25512         libc_hidden_weak.
25513         (waitpid): Define as alias of __waitpid.
25514
25515 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
25516
25517         * manual/llio.texi: Add comment that write safety has been
25518         fixed in Linux.
25519
25520         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
25521         (localplt-build-dso): Add elf/ld.so.
25522         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
25523         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
25524         and free for ld.so.
25525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
25526         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
25527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
25528         Likewise.
25529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
25530         Likewise.
25531         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
25532         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
25533         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
25534         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
25535         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
25536         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
25537         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
25538         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
25539         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
25540         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
25541         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
25542
25543 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
25544
25545         [BZ #14132]
25546         * include/libc-symbols.h (INTUSE): Remove macro.
25547         (INTDEF): Likewise.
25548         (INTVARDEF): Likewise.
25549         (_INTVARDEF): Likewise.
25550         (INTDEF2): Likewise.
25551         (INTVARDEF2): Likewise.
25552         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
25553         rtld_hidden_def instead of INTVARDEF.
25554         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
25555         (_dl_starting_up_internal): Remove declaration.
25556         (_dl_starting_up): Use rtld_hidden_proto.
25557         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
25558         declaration.
25559         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
25560         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
25561         _dl_starting_up.
25562         * elf/dl-writev.h (_dl_writev): Likewise.
25563         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
25564         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
25565         _dl_starting_up_internal.
25566
25567 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25568
25569         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
25570         test-skeleton.c.
25571
25572 2014-11-05  Will Newton  <will.newton@linaro.org>
25573
25574         * benchtests/Makefile: (bench-malloc): Add malloc thread
25575         scalability benchmark.
25576         * benchtests/bench-malloc-threads.c: New file.
25577
25578 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
25579
25580         * sysdeps/aarch64/strchrnul.S: New file.
25581
25582 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25583
25584         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
25585         definition.
25586         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
25587         Likwise.
25588         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
25589         Likewise.
25590         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
25591         Likewise.
25592         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
25593         Likewise.
25594         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
25595         Likewise.
25596
25597 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
25598
25599         * catgets/test-gencat.c: Use test-skeleton.c.
25600         * catgets/tst-catgets.c: Likewise.
25601         * csu/tst-empty.c: Likewise.
25602         * elf/tst-audit2.c: Likewise.
25603         * elf/tst-global1.c: Likewise.
25604         * elf/tst-pathopt.c: Likewise.
25605         * elf/tst-piemod1.c: Likewise.
25606         * elf/tst-tls10.c: Likewise.
25607         * elf/tst-tls11.c: Likewise.
25608         * elf/tst-tls12.c: Likewise.
25609         * gnulib/tst-gcc.c: Likewise.
25610         * iconvdata/tst-e2big.c: Likewise.
25611         * iconvdata/tst-loading.c: Likewise.
25612         * iconv/tst-iconv1.c: Likewise.
25613         * iconv/tst-iconv2.c: Likewise.
25614         * inet/test-inet6_opt.c: Likewise.
25615         * inet/tst-gethnm.c: Likewise.
25616         * inet/tst-network.c: Likewise.
25617         * inet/tst-ntoa.c: Likewise.
25618         * intl/tst-codeset.c: Likewise.
25619         * intl/tst-gettext2.c: Likewise.
25620         * intl/tst-gettext3.c: Likewise.
25621         * intl/tst-ngettext.c: Likewise.
25622         * intl/tst-translit.c: Likewise.
25623         * io/test-stat.c: Likewise.
25624         * libio/test-fmemopen.c: Likewise.
25625         * libio/tst-freopen.c: Likewise.
25626         * libio/tst-sscanf.c: Likewise.
25627         * libio/tst-ungetwc1.c: Likewise.
25628         * libio/tst-ungetwc2.c: Likewise.
25629         * libio/tst-widetext.c: Likewise.
25630         * localedata/tst-ctype.c: Likewise.
25631         * localedata/tst-digits.c: Likewise.
25632         * localedata/tst-leaks.c: Likewise.
25633         * localedata/tst-mbswcs1.c: Likewise.
25634         * localedata/tst-mbswcs2.c: Likewise.
25635         * localedata/tst-mbswcs3.c: Likewise.
25636         * localedata/tst-mbswcs4.c: Likewise.
25637         * localedata/tst-mbswcs5.c: Likewise.
25638         * localedata/tst-setlocale.c: Likewise.
25639         * localedata/tst-trans.c: Likewise.
25640         * localedata/tst-wctype.c: Likewise.
25641         * localedata/tst-xlocale1.c: Likewise.
25642         * login/tst-grantpt.c: Likewise.
25643         * malloc/tst-calloc.c: Likewise.
25644         * malloc/tst-malloc.c: Likewise.
25645         * malloc/tst-mallocstate.c: Likewise.
25646         * malloc/tst-mcheck.c: Likewise.
25647         * malloc/tst-mtrace.c: Likewise.
25648         * malloc/tst-obstack.c: Likewise.
25649         * math/atest-exp2.c: Likewise.
25650         * math/atest-exp.c: Likewise.
25651         * math/atest-sincos.c: Likewise.
25652         * math/test-matherr.c: Likewise.
25653         * math/test-misc.c: Likewise.
25654         * math/test-powl.c: Likewise.
25655         * math/tst-definitions.c: Likewise.
25656         * misc/tst-dirname.c: Likewise.
25657         * misc/tst-efgcvt.c: Likewise.
25658         * misc/tst-fdset.c: Likewise.
25659         * misc/tst-hsearch.c: Likewise.
25660         * misc/tst-mntent2.c: Likewise.
25661         * nptl/tst-sem7.c: Likewise.
25662         * nptl/tst-sem8.c: Likewise.
25663         * nptl/tst-sem9.c: Likewise.
25664         * nss/test-netdb.c: Likewise.
25665         * posix/tst-fnmatch.c: Likewise.
25666         * posix/tst-getlogin.c: Likewise.
25667         * posix/tst-gnuglob.c: Likewise.
25668         * posix/tst-mmap.c: Likewise.
25669         * pwd/tst-getpw.c: Likewise.
25670         * resolv/tst-inet_ntop.c: Likewise.
25671         * rt/tst-timer.c: Likewise.
25672         * stdio-common/test-fseek.c: Likewise.
25673         * stdio-common/test-popen.c: Likewise.
25674         * stdio-common/test-vfprintf.c: Likewise.
25675         * stdio-common/tst-cookie.c: Likewise.
25676         * stdio-common/tst-fileno.c: Likewise.
25677         * stdio-common/tst-gets.c: Likewise.
25678         * stdio-common/tst-obprintf.c: Likewise.
25679         * stdio-common/tst-perror.c: Likewise.
25680         * stdio-common/tst-sprintf2.c: Likewise.
25681         * stdio-common/tst-sprintf3.c: Likewise.
25682         * stdio-common/tst-sprintf.c: Likewise.
25683         * stdio-common/tst-swprintf.c: Likewise.
25684         * stdio-common/tst-tmpnam.c: Likewise.
25685         * stdio-common/tst-unbputc.c: Likewise.
25686         * stdio-common/tst-wc-printf.c: Likewise.
25687         * stdlib/tst-environ.c: Likewise.
25688         * stdlib/tst-fmtmsg.c: Likewise.
25689         * stdlib/tst-limits.c: Likewise.
25690         * stdlib/tst-rand48-2.c: Likewise.
25691         * stdlib/tst-rand48.c: Likewise.
25692         * stdlib/tst-random2.c: Likewise.
25693         * stdlib/tst-random.c: Likewise.
25694         * stdlib/tst-strtol.c: Likewise.
25695         * stdlib/tst-strtoll.c: Likewise.
25696         * stdlib/tst-tls-atexit.c: Likewise.
25697         * stdlib/tst-xpg-basename.c: Likewise.
25698         * string/test-ffs.c: Likewise.
25699         * string/tst-bswap.c: Likewise.
25700         * string/tst-inlcall.c: Likewise.
25701         * string/tst-strtok.c: Likewise.
25702         * string/tst-strxfrm.c: Likewise.
25703         * sysdeps/x86_64/tst-audit10.c: Likewise.
25704         * sysdeps/x86_64/tst-audit3.c: Likewise.
25705         * sysdeps/x86_64/tst-audit4.c: Likewise.
25706         * sysdeps/x86_64/tst-audit5.c: Likewise.
25707         * time/tst-ftime_l.c: Likewise.
25708         * time/tst-getdate.c: Likewise.
25709         * time/tst-mktime3.c: Likewise.
25710         * time/tst-mktime.c: Likewise.
25711         * time/tst-posixtz.c: Likewise.
25712         * time/tst-strptime2.c: Likewise.
25713         * time/tst-strptime3.c: Likewise.
25714         * wcsmbs/tst-btowc.c: Likewise.
25715         * wcsmbs/tst-mbrtowc.c: Likewise.
25716         * wcsmbs/tst-mbsrtowcs.c: Likewise.
25717         * wcsmbs/tst-wchar-h.c: Likewise.
25718         * wcsmbs/tst-wcpncpy.c: Likewise.
25719         * wcsmbs/tst-wcrtomb.c: Likewise.
25720         * wcsmbs/tst-wcsnlen.c: Likewise.
25721         * wcsmbs/tst-wcstof.c: Likewise.
25722
25723 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
25724
25725         [BZ #14132]
25726         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
25727         INTDEF.
25728         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
25729         declaration.
25730         (_dl_mcount): Use rtld_hidden_proto.
25731         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
25732         _dl_mcount.
25733         * elf/rtld.c (_rtld_global_ro): Likewise.
25734
25735         [BZ #14132]
25736         * elf/dl-init.c (_dl_init): Don't use INTDEF.
25737         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
25738         of _dl_init_internal.
25739         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
25740         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
25741         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
25742         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
25743         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
25744         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
25745         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
25746         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
25747         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
25748         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
25749         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
25750         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
25751         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25752         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25753         * sysdeps/tile/dl-start.S (_start): Likewise.
25754         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
25755         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
25756
25757         [BZ #14132]
25758         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
25759         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
25760         (rtld_progname): Make macro definition unconditional.
25761         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
25762         INTDEF.
25763         (dlmopen_doit): Do not use INTUSE with _dl_argv.
25764         (dl_main): Likewise.
25765         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
25766         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
25767         instead of _dl_argv_internal.
25768         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
25769         __GI__dl_argv instead of INTUSE(_dl_argv).
25770         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
25771         __GI__dl_argv instead of _dl_argv_internal.
25772
25773         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
25774         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
25775         macro.
25776         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
25777         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
25778         New macro.
25779         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
25780         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
25781         macro.
25782         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
25783         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
25784
25785 2014-11-04  Andreas Schwab  <schwab@suse.de>
25786
25787         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
25788
25789 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25790
25791         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
25792         mtvsrd instruction in binary form.
25793
25794 2014-11-03  Andreas Schwab  <schwab@suse.de>
25795
25796         [BZ #17522]
25797         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
25798         for less than MB_LEN_MAX use a local buffer of that size.
25799         * libio/tst-fputws.c: New file.
25800         * libio/Makefile (tests): Add tst-fputws.
25801
25802 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
25803
25804         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
25805         the size of the fpu_fr.fpu_dregs[] array.
25806
25807 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
25808
25809         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
25810         (__nanosleep): Do not define as alias.
25811         (nanosleep): Define as alias of __nanosleep.
25812         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
25813         __libc_nanosleep name.
25814
25815 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25816
25817         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
25818         install.texi in comment.
25819
25820 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25821
25822         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
25823         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
25824         ... add here and use lwsync or sync ...
25825         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
25826         ... and add here using lwsync.
25827
25828 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25829
25830         * elf/dl-machine-reject-phdr.h: New file.
25831         * elf/dl-load.c: #include that.
25832         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
25833         if that returned true.
25834
25835 2014-10-31  Roland McGrath  <roland@hack.frob.com>
25836
25837         [BZ #17496]
25838         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
25839         gen-as-const-headers chunk.  Add a big scare comment after the last
25840         safe place to touch before-compile.
25841
25842 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25843
25844         * manual/install.texi (Tools for Compilation): Update autoconf
25845         version requirements.
25846         * INSTALL: Regenerated.
25847
25848         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
25849         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
25850         (__libc_pselect): Likewise.
25851
25852         [BZ #14138]
25853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
25854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
25855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
25856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
25857
25858 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25859
25860         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
25861         correct barrier instruction.
25862         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
25863         Likewise.
25864         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
25865         Likewise.
25866
25867 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25868
25869         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
25870         after defining inlines.  Instead, just use parens to defeat macro
25871         expansion of __isctype in its declaration.
25872
25873 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25874
25875         * include/sys/uio.h (__libc_readv): Remove declaration.
25876         (__libc_writev): Likewise.
25877         * misc/readv.c (__libc_readv): Rename to __readv.
25878         (__readv): Do not define as alias.
25879         (readv): Define as alias of __readv.
25880         * misc/writev.c (__libc_writev): Rename to __writev.
25881         (__writev): Do not define as alias.
25882         (writev): Define as alias of __writev.
25883         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
25884         (__readv): Do not define as alias.
25885         (readv): Define unconditionally as alias of __readv.
25886         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
25887         (__writev): Do not define as alias.
25888         (writev): Define unconditionally as alias of __writev.
25889         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
25890         name.
25891         (writev): Do not define __libc_writev name.
25892
25893 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25894
25895         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
25896         (convert_charseq): New function, broken out of ...
25897         (use_from_charmap): ... here.  Call it.
25898         (use_to_charmap): Use convert_charseq and free instead of duplicating
25899         its code with a variable-length stack struct.
25900
25901 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25902
25903         * include/fcntl.h (__libc_creat): Remove declaration.
25904         * io/creat.c (__libc_creat): Rename to creat.
25905         (creat): Do not define as alias.
25906         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
25907         of creat instead of __libc_creat.
25908         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
25909         to creat.
25910         (creat): Do not define as alias.
25911         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
25912         __libc_creat.
25913         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
25914         __libc_creat name.
25915         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
25916         Likewise.
25917
25918 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
25919
25920         * manual/llio.texi: Add comments discussing why write() may be
25921         considered MT-unsafe on Linux.
25922
25923 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
25924
25925         * dl-load.c (local_strdup): Remove.
25926         (expand_dynamic_string_token): Use __strdup.
25927         (decompose_rpath): Likewise.
25928         (_dl_map_object): Likewise.
25929
25930 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
25931
25932         [BZ #14132]
25933         * sysdeps/generic/unwind-dw2-fde.c
25934         (__register_frame_info_bases_internal): Do not declare.
25935         (__register_frame_info_table_bases_internal): Likewise.
25936         (__deregister_frame_info_bases_internal): Likewise.
25937         (__register_frame_info_bases): Declare and use hidden_proto before
25938         definition.  Use hidden_def instead of INTDEF.
25939         (__register_frame_info_table_bases): Likewise.
25940         (__deregister_frame_info_bases): Likewise.
25941         (__register_frame_info): Do not use INTUSE.
25942         (__register_frame): Likewise.
25943         (__register_frame_info_table): Likewise.
25944         (__register_frame_table): Likewise.
25945         (__deregister_frame_info): Likewise.
25946         (__deregister_frame): Likewise.
25947
25948 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
25949
25950         * sysdeps/unix/sysv/linux/arm/kernel-features.h
25951         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
25952         not undefine.
25953         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
25954         Likewise.
25955         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
25956         Likewise.
25957
25958 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
25959
25960         [BZ #14138]
25961         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
25962         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
25963         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
25964         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
25965         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
25966         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
25967         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
25968         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
25969         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
25970         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
25971         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
25972         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
25973         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
25974         syscall.
25975         (setfsuid): Likewise.
25976         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
25977         (setfsuid): Likewise.
25978         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
25979         (setfsuid): Likewise.
25980         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
25981         Likewise.
25982         (setfsuid): Likewise.
25983         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
25984         (setfsuid): Likewise.
25985         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
25986         Likewise.
25987         (setfsuid): Likewise.
25988
25989 2014-10-27  Andreas Schwab  <schwab@suse.de>
25990
25991         [BZ #17501]
25992         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
25993         check for Slow_SSE4_2 feature bit.
25994         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
25995         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
25996         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
25997         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
25998
25999 2014-10-24  Roland McGrath  <roland@hack.frob.com>
26000
26001         * configure.ac: Validate compiler version with a empirical test of
26002         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
26003         $CC -v output.
26004         * configure: Regenerated.
26005
26006         * inet/htons.c (htons): Prototypify.
26007         * inet/htonl.c (htonl): Likewise.
26008
26009 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26010
26011         * string/strncat.c (strncat): Improve performance by using strlen.
26012
26013 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26014
26015         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
26016
26017 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26018
26019         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
26020         Call libc_fetestexcept_aarch64.
26021
26022 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26023
26024         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
26025         Call libc_feholdexcept_aarch64.
26026
26027 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26028
26029         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
26030         Call get_rounding_mode.
26031
26032 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26033
26034         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
26035         Simplify logic.
26036
26037 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26038
26039         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
26040         Simplify logic.
26041
26042 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
26043
26044         [BZ #14138]
26045         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
26046         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
26047         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
26048         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
26049         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
26050         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
26051         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
26052         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
26053         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
26054         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
26055         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
26056         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
26057         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
26058         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
26059         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
26060         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
26061         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
26062         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
26063         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
26064         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
26065         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
26066         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
26067         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
26068         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
26069         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
26070         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
26071         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
26072         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
26073         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
26074         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
26075         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
26076         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
26077         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
26078         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
26079         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
26080         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
26081         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
26082         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
26083         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
26084         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
26085         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
26086         syscall.
26087         (geteuid): Likewise.
26088         (getgid): Likewise.
26089         (getuid): Likewise.
26090         (getresgid): Likewise.
26091         (getresuid): Likewise.
26092         (getgroups): Likewise.
26093         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
26094         (geteuid): Likewise.
26095         (getgid): Likewise.
26096         (getuid): Likewise.
26097         (getresgid): Likewise.
26098         (getresuid): Likewise.
26099         (getgroups): Likewise.
26100         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
26101         (geteuid): Likewise.
26102         (getgid): Likewise.
26103         (getuid): Likewise.
26104         (getresgid): Likewise.
26105         (getresuid): Likewise.
26106         (getgroups): Likewise.
26107         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
26108         Likewise.
26109         (geteuid): Likewise.
26110         (getgid): Likewise.
26111         (getuid): Likewise.
26112         (getresgid): Likewise.
26113         (getresuid): Likewise.
26114         (getgroups): Likewise.
26115         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
26116         (geteuid): Likewise.
26117         (getgid): Likewise.
26118         (getuid): Likewise.
26119         (getresgid): Likewise.
26120         (getresuid): Likewise.
26121         (getgroups): Likewise.
26122         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
26123         Likewise.
26124         (geteuid): Likewise.
26125         (getgid): Likewise.
26126         (getuid): Likewise.
26127         (getgroups): Likewise.
26128
26129         [BZ #14138]
26130         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
26131         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
26132         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
26133         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
26134         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
26135         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
26136         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
26137         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
26138         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
26139         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
26140         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
26141         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
26142         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
26143         __chown.
26144         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
26145         (lchown): Likewise.
26146         (fchown): Likewise.
26147         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
26148         Likewise.
26149         (lchown): Likewise.
26150         (fchown): Likewise.
26151         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
26152         (lchown): Likewise.
26153         (fchown): Likewise.
26154         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
26155         Likewise.
26156         (lchown): Likewise.
26157         (fchown): Likewise.
26158
26159 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26160
26161         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
26162         Simplify logic.
26163
26164 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26165
26166         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
26167         Cleanup logic.
26168
26169 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26170
26171         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
26172         Remove unused include.
26173
26174 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26175
26176         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
26177         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
26178         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
26179         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
26180
26181 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
26182             Helge Deller <deller@gmx.de>
26183
26184         [BZ #17508]
26185         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
26186         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
26187         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
26188
26189 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
26190
26191         [BZ #14132]
26192         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
26193         Remove macro definition.
26194         (__ashrdi3_v_glibc20): Likewise.
26195         (__lshrdi3_v_glibc20): Likewise.
26196         (__cmpdi2_v_glibc20): Likewise.
26197         (__ucmpdi2_v_glibc20): Likewise.
26198         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
26199         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
26200         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
26201         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
26202         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
26203         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
26204
26205 2014-10-22  Roland McGrath  <roland@hack.frob.com>
26206
26207         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
26208         old GNU extension [0] syntax.
26209         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
26210         alloca rather than an array member with variable length.
26211         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
26212         * nscd/nscd.c (invalidate_db): New function, broken out of ...
26213         (parse_opt): ... here.  Likewise use alloca there.
26214         Validate the -i argument before checking for rootness.
26215         (send_shutdown): New function, broken out of ...
26216         (parse_opt): ... here.
26217
26218 2014-10-22  Roland McGrath  <roland@hack.frob.com>
26219
26220         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
26221         macro to get at the _rt_local_ro field.
26222         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
26223         ([PIC] case) or _dl_hwcap ([!PIC] case).
26224         * sysdeps/arm/setjmp.S: Likewise.
26225
26226         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
26227         * sysdeps/arm/configure.ac: New check to define it.
26228         * sysdeps/arm/configure: Regenerated.
26229         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
26230         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
26231         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
26232         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
26233         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
26234         Use move/movt pair instead of a load.
26235         (LDST_GLOBAL): Macro removed.
26236         (LDR_GLOBAL): New macro replaces it.
26237         (LDR_HIDDEN): New macro.
26238         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
26239         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
26240
26241         * setjmp/tst-setjmp-static.c: New file.
26242         * setjmp/Makefile (tests): Add it.
26243         (tests-static): New variable.
26244
26245 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
26246
26247         [BZ #17485]
26248         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
26249
26250 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
26251
26252         [BZ #14132]
26253         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
26254
26255 2014-10-21  Roland McGrath  <roland@hack.frob.com>
26256
26257         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
26258
26259 2014-10-20  Roland McGrath  <roland@hack.frob.com>
26260
26261         * io/fts.c (dirent_not_directory): New function.
26262         (fts_build): Call it.
26263
26264 2014-10-20  Roland McGrath  <roland@hack.frob.com>
26265
26266         * nptl/version.c (__nptl_main): Use normal __write rather than
26267         INTERNAL_SYSCALL.
26268         (banner): Update copyright years.
26269
26270         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
26271         gettimeofday.
26272         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
26273         * nptl/pthread_cond_timedwait.c: Likewise.
26274         * nptl/pthread_mutex_timedlock.c: Likewise.
26275         * nptl/sem_timedwait.c: Likewise.
26276
26277         * sysdeps/nptl/bits/libc-lock.h
26278         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
26279         (__libc_lock_init_recursive): Return void, not 0.
26280         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
26281         (__libc_rwlock_init): Likewise.
26282         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
26283
26284 2014-10-20  Torvald Riegel  <triegel@redhat.com>
26285
26286         [BZ #15215]
26287         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
26288         (__pthread_once_slow): ... here.
26289         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
26290         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
26291
26292 2014-10-20  Torvald Riegel  <triegel@redhat.com>
26293
26294         [BZ #15215]
26295         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
26296         __PTHREAD_ONCE_FORK_GEN_INCR): New.
26297         * sysdeps/nptl/fork.c (__libc_fork): Use them.
26298         * nptl/pthread_once.c (__pthread_once): Likewise.
26299         Update comments.
26300
26301 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
26302
26303         [BZ #14138]
26304         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
26305         name.
26306         (writev): Use __libc_writev as strong name.
26307         * sysdeps/unix/sysv/linux/readv.c: Remove file.
26308         * sysdeps/unix/sysv/linux/writev.c: Likewise.
26309
26310 2014-10-17  Roland McGrath  <roland@hack.frob.com>
26311
26312         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
26313
26314         * sysdeps/i386/nptl/tls.h
26315         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
26316         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
26317         New macros.
26318         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
26319         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
26320         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
26321         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
26322         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
26323         Call CHECK_THREAD_SYSINFO instead of doing an assert.
26324
26325         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
26326         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
26327         on [__NR_futex].
26328         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
26329         broken out of ...
26330         (__pthread_mutex_init): ... here.  Call it.
26331         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
26332         Conditionalize PI cases on [__NR_futex].
26333         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
26334         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
26335         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
26336
26337         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
26338         conditional on [SIGSETXID].
26339         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
26340         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
26341         is defined.  Likewise for SIGSETXID.
26342         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
26343         Conditionalize definitions on [SIGSETXID].
26344         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
26345         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
26346         unblocking on [SIGCANCEL].
26347
26348         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
26349         [__NR_set_robust_list].
26350
26351 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
26352
26353         * string/strcoll_l.c (get_next_seq): Fix up formatting.
26354         (do_compare): Likewise.
26355
26356 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
26357
26358         [BZ #15884]
26359         * string/strcoll_l.c: Don't include stdio.h.
26360         (coll_seq): Remove members idxarr and rulearr.
26361         (get_next_seq_cached): Remove function.
26362         (get_next_seq): Likewise.
26363         (get_next_seq_nocache): Rename to get_next_seq.
26364         (do_compare): Remove function.
26365         (do_compare_nocache): Rename to do_compare.
26366         (STRCOLL): Remove weight and rules cache.
26367
26368 2014-10-16  Roland McGrath  <roland@hack.frob.com>
26369
26370         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
26371         * sysdeps/arm/sfp-machine.h: ... to here.
26372         * sysdeps/arm/Implies: Remove arm/soft-fp.
26373
26374 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
26375
26376         * conform/data/sys/utsname.h-data (*_t): Allow.
26377         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
26378         [POSIX] (WEXITED): Do not expect constant.
26379         [POSIX] (WSTOPPED): Likewise.
26380         [POSIX] (WNOHANG): Likewise.
26381         [POSIX] (WNOWAIT): Likewise.
26382         [POSIX] (siginfo_t): Do not expect type or elements.
26383         [POSIX] (pid_t): Do not expect type.
26384         [POSIX] (signal.h): Do not allow header.
26385         [POSIX] (sys/resource.h): Likewise.
26386         [POSIX] (si_*): Do not allow pattern.
26387         [POSIX] (W*): Likewise.
26388         [POSIX] (P_*): Likewise.
26389         [POSIX] (BUS_*): Likewise.
26390         [POSIX] (CLD_*): Likewise.
26391         [POSIX] (FPE_*): Likewise.
26392         [POSIX] (ILL_*): Likewise.
26393         [POSIX] (POLL_*): Likewise.
26394         [POSIX] (SEGV_*): Likewise.
26395         [POSIX] (SI_*): Likewise.
26396         [POSIX] (TRAP_*): Likewise.
26397         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
26398         variable.
26399
26400 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
26401
26402         [BZ #12926]
26403         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
26404         infinite loop when __recvmsg returns 0.
26405
26406 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
26407
26408         * CANCEL-FCT-WAIVE: Remove file.
26409         * CANCEL-FILE-WAIVE: Likewise.
26410
26411         [BZ #14132]
26412         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
26413         instead of INTVARDEF.
26414         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26415         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
26416         rtld_hidden_data_def instead of INTVARDEF.
26417         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26418         * elf/dl-deps.c (expand_dst): Likewise.
26419         * elf/dl-load.c (_dl_dst_count): Likewise.
26420         (_dl_dst_substitute): Likewise.
26421         (decompose_rpath): Likewise.
26422         (_dl_init_paths): Likewise.
26423         (open_path): Likewise.
26424         (_dl_map_object): Likewise.
26425         * elf/rtld.c (dl_main): Likewise.
26426         (process_dl_audit): Likewise.
26427         (process_envvars): Likewise.
26428         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
26429         Remove declaration.
26430         (__libc_enable_secure): Use rtld_hidden_proto.
26431
26432 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26433
26434         * elf/dl-load.c
26435         (add_path): New function broken out of _dl_rtld_di_serinfo.
26436         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
26437
26438 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26439
26440         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
26441         parentheses around macro arguments.
26442         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
26443         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
26444         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
26445         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
26446         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
26447         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26448         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26449         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
26450         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
26451         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
26452         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
26453         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
26454         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
26455         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
26456         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
26457         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
26458         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
26459         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
26460         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
26461         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
26462         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
26463         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
26464         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
26465         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26466         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26467         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
26468         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
26469         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
26470         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
26471         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
26472         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
26473         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
26474         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
26475         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
26476         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
26477         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
26478         Likewise.
26479         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
26480         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26481         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26482         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
26483         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
26484         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
26485         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
26486         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
26487         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
26488         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
26489         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
26490         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
26491         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
26492         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
26493         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
26494         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26495         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26496         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
26497         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
26498         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
26499         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
26500         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
26501         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
26502         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
26503         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
26504         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
26505         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
26506         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
26507         (_FP_FRAC_SRS_1): Likewise.
26508         (_FP_FRAC_CLZ_1): Likewise.
26509         (_FP_MUL_MEAT_1_imm): Likewise.
26510         (_FP_MUL_MEAT_1_wide): Likewise.
26511         (_FP_MUL_MEAT_1_hard): Likewise.
26512         (_FP_SQRT_MEAT_1): Likewise.
26513         (_FP_FRAC_ASSEMBLE_1): Likewise.
26514         (_FP_FRAC_DISASSEMBLE_1): Likewise.
26515         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
26516         (__FP_CLZ_2): Likewise.
26517         (_FP_MUL_MEAT_2_wide): Likewise.
26518         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
26519         (_FP_MUL_MEAT_2_gmp): Likewise.
26520         (_FP_MUL_MEAT_2_120_240_double): Likewise.
26521         (_FP_SQRT_MEAT_2): Likewise.
26522         (_FP_FRAC_ASSEMBLE_2): Likewise.
26523         (_FP_FRAC_DISASSEMBLE_2): Likewise.
26524         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
26525         (_FP_FRAC_CLZ_4): Likewise.
26526         (_FP_MUL_MEAT_4_wide): Likewise.
26527         (_FP_MUL_MEAT_4_gmp): Likewise.
26528         (_FP_SQRT_MEAT_4): Likewise.
26529         (_FP_FRAC_ASSEMBLE_4): Likewise.
26530         (_FP_FRAC_DISASSEMBLE_4): Likewise.
26531         * soft-fp/op-common.h (_FP_CMP): Likewise.
26532         (_FP_CMP_EQ): Likewise.
26533         (_FP_CMP_UNORD): Likewise.
26534         (_FP_TO_INT): Likewise.
26535         (_FP_FROM_INT): Likewise.
26536         [!__FP_CLZ] (__FP_CLZ): Likewise.
26537         (_FP_DIV_HELP_imm): Likewise.
26538         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
26539         Likewise.
26540         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
26541         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
26542         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
26543         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
26544         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
26545         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26546         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26547         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
26548         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
26549         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
26550         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
26551         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
26552         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
26553         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
26554         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
26555         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
26556         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
26557         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
26558         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
26559         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
26560         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
26561         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
26562         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
26563         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26564         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26565         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
26566         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
26567         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
26568         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
26569         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
26570         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
26571         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
26572         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
26573         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
26574         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
26575         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
26576         (FP_UNPACK_RAW_SP): Likewise.
26577         (FP_PACK_RAW_S): Likewise.
26578         (FP_PACK_RAW_SP): Likewise.
26579         (FP_UNPACK_S): Likewise.
26580         (FP_UNPACK_SP): Likewise.
26581         (FP_UNPACK_SEMIRAW_S): Likewise.
26582         (FP_UNPACK_SEMIRAW_SP): Likewise.
26583         (FP_PACK_S): Likewise.
26584         (FP_PACK_SP): Likewise.
26585         (FP_PACK_SEMIRAW_S): Likewise.
26586         (FP_PACK_SEMIRAW_SP): Likewise.
26587         (_FP_SQRT_MEAT_S): Likewise.
26588         (FP_CMP_S): Likewise.
26589         (FP_CMP_EQ_S): Likewise.
26590         (FP_CMP_UNORD_S): Likewise.
26591         (FP_TO_INT_S): Likewise.
26592         (FP_FROM_INT_S): Likewise.
26593
26594         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
26595
26596         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
26597         (FP_EX_INVALID_IMZ): Likewise.
26598         (FP_EX_INVALID_IMZ_FMA): Likewise.
26599         (FP_EX_INVALID_ISI): Likewise.
26600         (FP_EX_INVALID_ZDZ): Likewise.
26601         (FP_EX_INVALID_IDI): Likewise.
26602         (FP_EX_INVALID_SQRT): Likewise.
26603         (FP_EX_INVALID_CVI): Likewise.
26604         (FP_EX_INVALID_VC): Likewise.
26605         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
26606         "invalid" exceptions.
26607         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
26608         (_FP_ADD_INTERNAL): Likewise.
26609         (_FP_MUL): Likewise.
26610         (_FP_FMA): Likewise.
26611         (_FP_DIV): Likewise.
26612         (_FP_CMP_CHECK_NAN): Likewise.
26613         (_FP_SQRT): Likewise.
26614         (_FP_TO_INT): Likewise.
26615         (FP_EXTEND): Likewise.
26616
26617 2014-10-09  Allan McRae  <allan@archlinux.org>
26618
26619         * po/fr.po: Update French translation from translation project.
26620
26621 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26622
26623         [BZ #14132]
26624         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
26625         of INTDEF.
26626         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
26627         (__cxa_atexit): Use libc_hidden_proto.
26628         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
26629
26630         [BZ #14132]
26631         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
26632         declaration.
26633         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
26634         [!_ISOMAC] (__iswspace_l_internal): Likewise.
26635         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
26636         [!_ISOMAC] (__iswctype_internal): Likewise.
26637         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
26638         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
26639         alias.
26640         (fcntl): Remove __fcntl_internal alias.
26641         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
26642         __connect_internal alias.
26643         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
26644         Likewise.
26645
26646         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
26647         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
26648         FP_DENORM_ZERO.
26649         (_FP_CHECK_FLUSH_ZERO): New macro.
26650         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
26651         (_FP_CMP): Likewise.
26652         (_FP_CMP_EQ): Likewise.
26653         (_FP_TO_INT): Do not set inexact for subnormal arguments if
26654         FP_DENORM_ZERO.
26655         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
26656         (FP_TRUNC): Likewise.
26657
26658         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
26659         treated as invalid conversion, not as normal exponent.
26660
26661         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
26662         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
26663         (_FP_CMP_EQ): Likewise.
26664         (_FP_CMP_UNORD): Likewise.
26665         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
26666         (FP_CMP_EQ_D): Likewise.
26667         (FP_CMP_UNORD_D): Likewise.
26668         * soft-fp/extended.h (FP_CMP_E): Likewise.
26669         (FP_CMP_EQ_E): Likewise.
26670         (FP_CMP_UNORD_E): Likewise.
26671         * soft-fp/quad.h (FP_CMP_Q): Likewise.
26672         (FP_CMP_EQ_Q): Likewise.
26673         (FP_CMP_UNORD_Q): Likewise.
26674         * soft-fp/single.h (FP_CMP_S): Likewise.
26675         (FP_CMP_EQ_S): Likewise.
26676         (FP_CMP_UNORD_S): Likewise.
26677         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
26678         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
26679         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
26680         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
26681         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
26682         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
26683         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
26684         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
26685         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
26686         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
26687         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
26688         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
26689         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
26690         to FP_CMP_Q.
26691         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
26692         FP_CMP_Q.
26693         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
26694         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
26695         FP_CMP_EQ_Q.
26696         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
26697         FP_CMP_Q.
26698         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
26699         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
26700         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
26701         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
26702         FP_CMP_EQ_Q.
26703         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
26704         FP_CMP_Q.
26705         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
26706         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
26707         FP_CMP_EQ_Q.
26708         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
26709         FP_CMP_Q.
26710         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
26711         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
26712         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
26713         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
26714         FP_CMP_EQ_Q.
26715
26716         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
26717         a subnormal result, set the underflow exception if trapping on
26718         underflow is enabled.
26719         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
26720         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
26721         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
26722         redefine to 0.
26723         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
26724         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26725         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26726         * soft-fp/extendxftf2.c (__extendxftf2): Use
26727         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
26728
26729         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
26730         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
26731         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26732         FP_HANDLE_EXCEPTIONS.
26733         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
26734         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26735         FP_HANDLE_EXCEPTIONS.
26736         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
26737         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26738         FP_HANDLE_EXCEPTIONS.
26739         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
26740         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26741         FP_HANDLE_EXCEPTIONS.
26742
26743 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
26744
26745         [BZ #14132]
26746         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
26747         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
26748         use INTUSE.
26749         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
26750         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
26751         Remove alias.
26752         (__adjtimex): Define using libc_hidden_ver.
26753         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
26754         Remove declaration.
26755         (ntp_gettime): Call __adjtimex directly.
26756         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
26757         Remove declaration.
26758         (ntp_gettimex): Call __adjtimex directly.
26759         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
26760         __adjtimex_internal alias.
26761
26762 2014-10-08  Roland McGrath  <roland@hack.frob.com>
26763
26764         [BZ #17460]
26765         * nscd/nscd.c (more_help): Rewrite list of tables collection
26766         using xstrdup and asprintf.
26767
26768         * nscd/nscd_conf.c: Remove local xstrdup declaration.
26769
26770 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26771             Roland McGrath  <roland@hack.frob.com>
26772
26773         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
26774         (do_lookup_unique): ... local function 'enter' here; update callers.
26775
26776 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
26777
26778         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
26779         compat_symbol calls on [SHARED].
26780         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
26781         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
26782         Remove.
26783         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26784         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
26785         (oldsetrlimit): Remove.
26786         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26788         (lchown): New syscall entry.
26789         (oldsetrlimit): Remove.
26790         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26791         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
26792         (oldsetrlimit): Remove.
26793         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26794
26795         [BZ #14138]
26796         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
26797         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
26798         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
26799         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
26800         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
26801         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
26802         (fchown): Likewise.
26803         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
26804         (fchown): Likewise.
26805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
26806         Likewise.
26807
26808 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26809
26810         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
26811         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
26812         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
26813         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
26814         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
26815         Likewise.
26816         (__old_sem_post): Likewise.
26817
26818 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
26819
26820         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
26821         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
26822         HAVE_CLOCK_GETTIME_VSYSCALL macros.
26823         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
26824         Use INLINE_VSYSCALL macro.
26825         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
26826         __vdso_clock_gettime.
26827         * sysdeps/unix/sysv/linux/tile/init-first.c
26828         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
26829         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
26830         __vdso_clock_gettime.
26831
26832         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
26833         to set up frame more cleanly.
26834
26835         * sysdeps/tile/memcmp.c: New file.
26836
26837         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
26838
26839         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
26840         * sysdeps/tile/tilegx/strcasestr.c: New file.
26841         * sysdeps/tile/tilegx/strnlen.c: New file.
26842         * sysdeps/tile/tilegx/strstr.c: New file.
26843
26844         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
26845
26846 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
26847
26848         * nptl/tst-setuid3.c: Write errors to stdout.
26849
26850 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26851
26852         * elf/dl-deps.c
26853         (preload): New functions broken out of _dl_map_object_deps.
26854         (_dl_map_object_deps):  Remove a nested function. Update call sites.
26855
26856 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
26857
26858         [BZ #14138]
26859         * sysdeps/unix/sysv/linux/execve.c: Remove file.
26860         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
26861
26862 2014-10-01  Steve Ellcey  <sellcey@mips.com>
26863
26864         * sysdeps/mips/strcmp.S: New.
26865
26866 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
26867
26868         [BZ #14138]
26869         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
26870         (linkat): Likewise.
26871         (mkdirat): Likewise.
26872         (readlinkat): Likewise.
26873         (renameat): Likewise.
26874         (symlinkat): Likewise.
26875         (unlinkat): Likewise.
26876         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
26877         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
26878         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
26879         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
26880         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
26881         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
26882         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
26883
26884 2014-09-30  Will Newton  <will.newton@linaro.org>
26885
26886         * math/math.h: Define long double math functions if
26887         _LIBC_TEST is defined.
26888         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
26889
26890         * localedata/Makefile: Move assignment to tests-special
26891         into an ifdef testing run-built-tests.
26892         * timezone/Makefile: Likewise.
26893
26894 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
26895
26896         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
26897         with $(BASH) not $(SHELL).
26898
26899 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
26900             Matthew LeGendre  <legendre1@llnl.gov>
26901
26902         [BZ #17411]
26903         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
26904         l_reloc_result.
26905
26906 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26907
26908         * stdio-common/printf_fp.c
26909         (hack_digit): New function, broken out of ...
26910         (__printf_fp): ... local function here.  Update call sites.
26911         hack_digit now takes an additional parameter that is a pointer
26912         to a struct of the referenced locals.  Those locals moved inside
26913         the struct and references updated.
26914
26915 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
26916
26917         * aclocal.m4: Require autoconf 2.69.
26918         * configure: Regenerated.
26919         * sysdeps/aarch64/configure: Likewise.
26920         * sysdeps/alpha/configure: Likewise.
26921         * sysdeps/arm/armv7/configure: Likewise.
26922         * sysdeps/arm/configure: Likewise.
26923         * sysdeps/ia64/configure: Likewise.
26924         * sysdeps/mach/configure: Likewise.
26925         * sysdeps/mips/configure: Likewise.
26926         * sysdeps/s390/configure: Likewise.
26927         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
26928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
26929
26930         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
26931         file.
26932         * sysdeps/ia64/configure.ac: Likewise.
26933
26934 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
26935
26936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
26937         specify symbol version for ld.so.  Do not include entry for
26938         libpthread.
26939         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26940         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26941         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26942
26943         [BZ #14171]
26944         * Makeconfig [$(build-shared) = yes]
26945         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
26946         makefiles.
26947         [$(build-shared) = yes && $(soversions.mk-done) = t]
26948         ($(common-objpfx)gnu/lib-names.h): Remove rule.
26949         [$(build-shared) = yes && $(soversions.mk-done) = t]
26950         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
26951         to Makerules.
26952         [$(build-shared) = yes && $(soversions.mk-done) = t]
26953         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
26954         here.
26955         [$(build-shared) = yes && $(soversions.mk-done) = t]
26956         (common-generated): Don't append gnu/lib-names.h and
26957         gnu/lib-names.stmp here.
26958         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
26959         (lib-names-h-abi): New variable.
26960         [$(build-shared) = yes && $(soversions.mk-done) = t]
26961         (lib-names-stmp-abi): Likewise.
26962         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26963         abi-variants] (before-compile): Append
26964         $(common-objpfx)$(lib-names-h-abi).
26965         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26966         abi-variants] (common-generated): Append gnu/lib-names.h.
26967         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26968         abi-variants] (install-others-nosubdir): Depend on
26969         $(inst_includedir)/$(lib-names-h-abi).
26970         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26971         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
26972         [$(build-shared) = yes && $(soversions.mk-done) = t]
26973         ($(common-objpfx)$(lib-names-h-abi)): New rule.
26974         [$(build-shared) = yes && $(soversions.mk-done) = t]
26975         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
26976         [$(build-shared) = yes && $(soversions.mk-done) = t]
26977         (common-generated): Append $(lib-names-h-abi) and
26978         $(lib-names-stmp-abi).
26979         * scripts/lib-names.awk: Do not handle multi being set.
26980         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
26981         Remove variable.
26982         (abi-lp64_be-ld-soname): Likewise.
26983         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
26984         Likewise.
26985         (abi-hard-ld-soname): Likewise.
26986         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
26987         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
26988         Remove variable.
26989         (abi-o32_hard-ld-soname): Likewise.
26990         (abi-o32_soft_2008-ld-soname): Likewise.
26991         (abi-o32_hard_2008-ld-soname): Likewise.
26992         (abi-n32_soft-ld-soname): Likewise.
26993         (abi-n32_hard-ld-soname): Likewise.
26994         (abi-n32_soft_2008-ld-soname): Likewise.
26995         (abi-n32_hard_2008-ld-soname): Likewise.
26996         (abi-n64_soft-ld-soname): Likewise.
26997         (abi-n64_hard-ld-soname): Likewise.
26998         (abi-n64_soft_2008-ld-soname): Likewise.
26999         (abi-n64_hard_2008-ld-soname): Likewise.
27000         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
27001         Likewise.
27002         (abi-64-v2-ld-soname): Likewise.
27003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
27004         ld.so entries.
27005         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
27006         variable.
27007         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
27008         entry.
27009         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
27010         variable.
27011         (abi-64-ld-soname): Likewise.
27012         (abi-x32-ld-soname): Likewise.
27013         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
27014         entry.
27015         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27016
27017 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
27018
27019         [BZ #14138]
27020         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
27021         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
27022         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
27023         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
27024         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
27025         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
27026         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
27027         syscall entry for GLIBC_2.2 symbol version.
27028         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
27029         Likewise.
27030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
27031         (setrlimit): Likewise.
27032         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
27033         Likewise.
27034
27035 2014-09-23  Will Newton  <will.newton@linaro.org>
27036
27037         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
27038         _LINUX_ARM_SYSDEP_H include guard too.
27039         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
27040         define.
27041
27042 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
27043
27044         * sysdeps/unix/sysv/linux/eventfd.c:
27045         Make first argument unsigned.
27046         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
27047         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
27048
27049 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
27050
27051         [BZ #16852]
27052         * socket/recvmmsg.c (recvmmsg): Drop const argument.
27053         * socket/sys/socket.h: Likewise.
27054         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
27055
27056 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27057
27058         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
27059
27060 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
27061
27062         * time/tst-ftime.c: New test.
27063         * time/Makefile (tests): Add tst-ftime.
27064
27065 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
27066
27067         * soft-fp/extended.h: Fix comment formatting.
27068         * soft-fp/op-1.h: Likewise.
27069         * soft-fp/op-2.h: Likewise.
27070         * soft-fp/op-4.h: Likewise.
27071         * soft-fp/op-8.h: Likewise.
27072         * soft-fp/op-common.h: Likewise.
27073         * soft-fp/soft-fp.h: Likewise.
27074
27075         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
27076
27077 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
27078
27079         [BZ #6652]
27080         * Makeconfig (soversions-default-setname): Remove variable.
27081         ($(common-objpfx)soversions.i): Don't pass default_setname to
27082         soversions.awk.
27083         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
27084         oldest_abi to abi-versions.awk.
27085         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
27086         * config.make.in (oldest-abi): Remove variable.
27087         * configure.ac (--enable-oldest-abi): Remove configure option.
27088         * configure: Regenerated.
27089         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
27090         text.
27091         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
27092         * scripts/soversions.awk: Do not handle default_setname variable.
27093         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
27094         variable.
27095         * sysdeps/mach/hurd/configure: Regenerated.
27096         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
27097         variable.
27098         * sysdeps/unix/sysv/linux/configure: Regenerated.
27099
27100 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
27101
27102         * elf/Makefile (CFLAGS-interp.c): Remove.
27103         ($(elf-objpfx)runtime-linker.h): Generate header with linker
27104         path string.
27105         * elf/interp.c: Include generated runtime-linker.h
27106
27107         * Makerules (lib%.so): Don't include $(+interp) in
27108         prerequisites.
27109         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
27110         * dlfcn/eval.c: Remove file.
27111
27112         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
27113         macros.
27114
27115         [BZ #17266]
27116         * misc/sys/cdefs.h: Define __extern_always_inline for clang
27117         4.2 and newer.
27118
27119         [BZ #17370]
27120         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
27121
27122 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
27123             Jakub Jelinek  <jakub@redhat.com>
27124
27125         [BZ #17266]
27126         * libio/stdio.h: Check definition of __fortify_function
27127         instead of __extern_always_inline to include bits/stdio2.h.
27128         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
27129         check if __extern_always_inline is defined.
27130         [__USE_MISC || __USE_XOPEN]: Likewise.
27131         [__USE_ISOC99] Likewise.
27132         * misc/sys/cdefs.h (__fortify_function): Define only if
27133         __extern_always_inline is defined.
27134         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
27135         __extern_always_inline and __extern_inline only for g++-4.3
27136         and newer or a compatible gcc.
27137
27138 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
27139
27140         [BZ #17371]
27141         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
27142         last change to handle zero prefix length.
27143
27144 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
27145
27146         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
27147         _SC_REGEX_VERSION.
27148
27149         * posix/getconf.c (vars): Add _POSIX_IPV6 and
27150         _POSIX_RAW_SOCKETS.
27151
27152 2014-09-13  Allan McRae  <allan@archlinux.org>
27153
27154         * po/ru.po: Update Russian translation from translation project.
27155
27156 2014-09-12  Roland McGrath  <roland@hack.frob.com>
27157
27158         * locale/programs/locale.c (show_locale_vars): Inline local function
27159         into its sole call site.  Clean up some style nits.
27160         (print_item): New function, broken out of ...
27161         (show_info): ... local function here.  Clean up style nits.
27162
27163         * locale/programs/ld-ctype.c (set_one_default): New function, broken
27164         out of ...
27165         (set_class_defaults): ... local function set_default here.
27166         Define set_default as a macro locally to pass constant parameters.
27167         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
27168         rather than a shared local.
27169
27170         * stdlib/rpmatch.c (try): New function, broken out of ...
27171         (rpmatch): ... local function here.  Also, prototypify definition.
27172
27173 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
27174
27175         * scripts/soversions.awk: Do not handle configuration names.
27176         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
27177         vendor and os variables to soversions.awk.
27178         * configure.ac: Do not modify gnu-* host_os.
27179         * configure: Regenerated
27180         * shlib-versions: Remove first column with configuration names.
27181         * nptl/shlib-versions: Likewise.
27182         * nptl_db/shlib-versions: Likewise.
27183         * sysdeps/hppa/shlib-versions: Likewise.
27184         * sysdeps/m68k/shlib-versions: Likewise.
27185         * sysdeps/mach/hurd/shlib-versions: Likewise.
27186         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
27187         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
27188         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
27189         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
27190         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
27191         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
27192         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
27193         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
27194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
27195         Likewise.
27196         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27197         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
27198         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
27199         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
27200         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
27201         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
27202         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
27203         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27204
27205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
27206         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
27207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27208         Regenerated.
27209         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
27210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
27211         Condition symbol version definitions on [HAVE_ELFV2_ABI].
27212
27213         * shlib-versions: Remove OS-specific entries.  Moved to files in
27214         sysdeps.
27215         * sysdeps/mach/hurd/shlib-versions: New file.
27216         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
27217
27218         * nptl/shlib-versions: Remove architecture-specific entries.
27219         Moved to files in sysdeps.
27220         * shlib-versions: Likewise.
27221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
27222         file.
27223         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27224         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
27225         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
27226         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
27227
27228         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
27229         (UDP_NO_CHECK6_RX): Likewise.
27230
27231 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
27232
27233         * sysdeps/posix/sysconf.c (__sysconf): Spell
27234         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
27235
27236 2014-08-12  Florian Weimer  <fweimer@redhat.com>
27237
27238         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
27239         loading.
27240         * iconv/Versions (__gconv_transliterate): Export for use from
27241         gconv modules.
27242         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
27243         (struct __gconv_trans_data, __gconv_trans_fct,
27244         __gconv_trans_context_fct, __gconv_trans_query_fct,
27245         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
27246         definitions.
27247         (struct __gconv_step_data): Remove __trans member.
27248         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
27249         longer hidden.  Remove unused trans_data argument.
27250         * iconv/gconv_int.h (struct trans_struct): Remove definition.
27251         (__gconv_translit_find): Remove declaration.
27252         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
27253         prototype.
27254         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
27255         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
27256         trans_data argument.  Add hidden definition.
27257         (__gconv_translit_find): Remove.
27258         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
27259         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
27260         * iconv/skeleton.c: Remove transliteration initialization.
27261         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
27262         __gconv_step_data initialization.
27263         * libio/iofwide.c (__libio_translit_): Remove.
27264         (_IO_fwide): Adjust struct __gconv_step_data initialization.
27265         * wcsmbs/btowc.c (__btowc): Likewise.
27266         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
27267         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
27268         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
27269         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
27270         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
27271         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
27272         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
27273         * wcsmbs/wctob.c (wctob): Likewise.
27274
27275 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
27276
27277         [BZ #16194]
27278         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
27279         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
27280         register usage.
27281         * sysdeps/x86/Makefile: Adjust.
27282
27283 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
27284             Roland McGrath  <roland@hack.frob.com>
27285
27286         * locale/weight.h: Add include guard.
27287         (findidx): Make static rather than auto; take new parameters
27288         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
27289         * locale/weightwc.h: Likewise.
27290         * posix/fnmatch_loop.c
27291         (FCT): Change type of EXTRA from int32_t to wint_t.
27292         Don't include either header inside the function.
27293         Call FINDIDX rather than findidx, and pass new arguments.
27294         #undef FINDIDX at the end of the file.
27295         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
27296         FINDIDX before including fnmatch_loop.c for the non-wide version.
27297         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
27298         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
27299         for the wide version.
27300         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
27301         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
27302         Pass new arguments to findidx.
27303         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
27304         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
27305         Don't #include it inside the function.  Pass new arguments to findidx.
27306         * posix/regex_internal.h
27307         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
27308         (re_string_elem_size_at): Don't #include it inside the function.
27309         Pass new arguments to findidx.
27310         * string/strcoll_l.c: #include WEIGHT_H at top level.
27311         (get_next_seq): Don't #include it inside the function.
27312         Pass new arguments to findidx.
27313         (get_next_seq_nocache): Likewise.
27314         * string/strxfrm_l.c: #include WEIGHT_H at top level.
27315         (STRXFRM): Don't #include it inside the function.
27316         Pass new arguments to findidx.
27317
27318 2014-09-11  Florian Weimer  <fweimer@redhat.com>
27319
27320         [BZ #17344]
27321         * malloc/malloc.c (unlink): Turn asserts into a call to
27322         malloc_printerr.
27323
27324 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
27325
27326         [BZ #17370]
27327         * libio/wfileops (do_ftell_wide): Free OUT.
27328
27329 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
27330
27331         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
27332
27333 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27334
27335         [BZ #17363]
27336         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
27337         group if the current group is empty.
27338
27339 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27340
27341         * benchtests/bench-memset.c (test_main): Add more test from size
27342         from 32 to 512 bytes.
27343         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27344         Add POWER8 memset object.
27345         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27346         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
27347         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
27348         implementation.
27349         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
27350         Likewise.
27351         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
27352         multiarch POWER8 memset optimization.
27353         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
27354         POWER8 memset optimization.
27355
27356         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27357         Remove bzero multiarch objects.
27358         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
27359         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
27360         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
27361         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
27362         Remove define.
27363         [__bzero]: Redefine to specific name.
27364         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
27365         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
27366         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
27367         define.
27368         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
27369         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
27370
27371 2014-09-10  Florian Weimer  <fweimer@redhat.com>
27372
27373         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
27374         warnings into errors.
27375
27376         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
27377         __cxa_thread_atexit_impl prototype.
27378
27379 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27380
27381         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
27382         Fix capitalization of error message.
27383
27384 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27385
27386         * sysdeps/mips/preconfigure: Modify ABI tests.
27387
27388 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
27389
27390         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
27391
27392 2014-09-07  Roland McGrath  <roland@hack.frob.com>
27393             Carlos O'Donell  <carlos@systemhalted.org>
27394
27395         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
27396         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
27397         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
27398         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
27399         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
27400         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
27401         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
27402         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
27403         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
27404         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
27405         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
27406         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
27407         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
27408         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
27409         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
27410         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
27411         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
27412         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
27413         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
27414         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
27415         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
27416         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
27417         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
27418         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
27419         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
27420         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
27421         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
27422         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
27423         Deconditionalize the code that was previously under [RESET_PID].
27424         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
27425         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
27426         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
27427         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
27428         include sysdep.h.
27429
27430 2014-09-08  Allan McRae  <allan@archlinux.org>
27431
27432         * version.h (RELEASE): Set to "development".
27433         (VERSION): Set to "2.20.90"
27434
27435 2014-09-07  Allan McRae  <allan@archlinux.org
27436
27437         * version.h (RELEASE): Set to "stable".
27438         (VERSION): Set to "2.20"
27439         * include/features.h (__GLIBC_MINOR__): Set to 20.
27440
27441         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
27442         Liebler.
27443
27444         * po/ko.po: Update Korean translation from translation project.
27445
27446 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
27447
27448         [BZ #17354]
27449         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
27450         macro for handling signed relocations.
27451
27452 2014-09-03  Florian Weimer  <fweimer@redhat.com>
27453
27454         [BZ #17325]
27455         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
27456         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
27457         assert.
27458         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
27459         * iconvdata/ibm935.c (BODY): Likewise.
27460         * iconvdata/ibm937.c (BODY): Likewise.
27461         * iconvdata/ibm939.c (BODY): Likewise.
27462         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
27463         assert.
27464         * iconvdata/Makefile (iconv-test.out): Pass module list to test
27465         script.
27466         * iconvdata/run-iconv-test.sh: New test loop for checking for
27467         decoder crashers.
27468
27469 2014-09-02  Khem Raj  <raj.khem@gmail.com>
27470
27471         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
27472         libm_hidden_ver.
27473
27474 2014-09-01  Allan McRae  <allan@archlinux.org>
27475
27476         * po/eo.po: Update Esperanto translation from translation project.
27477
27478         * po/ca.po: Update Catalan translation from translation project.
27479
27480 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27481
27482         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
27483         __proc_dostop call.
27484
27485 2014-08-27  Mark Wielaard  <mjw@redhat.com>
27486
27487         [BZ #17319]
27488         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
27489         to call set_thread_area instead of hand written asm.
27490         (__NR_set_thread_area): Removed define.
27491         (TLS_FLAG_WRITABLE): Likewise.
27492         (__ASSUME_SET_THREAD_AREA): Remove check.
27493         (TLS_EBX_ARG): Remove define.
27494         (TLS_LOAD_EBX): Likewise.
27495
27496 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27497
27498         Simplify atomicity of socket creation in bind.
27499
27500         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
27501         looking up the name after linking the file.
27502
27503 2014-08-27  Allan McRae  <allan@archlinux.org>
27504
27505         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27506
27507 2014-08-26  Florian Weimer  <fweimer@redhat.com>
27508
27509         [BZ #17187]
27510         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
27511         trans_compare, open_translit, __gconv_translit_find):
27512         Remove module loading code.
27513
27514 2014-08-26  Allan McRae  <allan@archlinux.org>
27515
27516         * po/vi.po: Update Vietnamese translation from translation project.
27517
27518         * po/uk.po: Update Ukrainian translation from translation project.
27519
27520         * po/fr.po: Update French translation from translation project.
27521
27522         * po/ru.po: Update Russian translation from translation project.
27523
27524         * po/pl.po: Update Polish translation from translation project.
27525
27526         * po/cs.po: Update Czech translation from translation project.
27527
27528         * po/de.po: Update German translation from translation project.
27529
27530         * po/bg.po: Update Bulgarian translation from translation project.
27531
27532         * po/sv.po: Update Sweedish translation from translation project.
27533
27534         * po/nl.po: Update Dutch translation from translation project.
27535
27536         * po/es.po: Update Spanish translation from translation project.
27537
27538 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
27539
27540         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
27541
27542         * catgets/Makefile (CPPFLAGS-gencat): Remove.
27543         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
27544         (CPPFLAGS-iconvconfig): Likewise.
27545         * timezone/Makefile (CPPFLAGS-zic): Likewise.
27546
27547         * include/libc-symbols.h: Remove unnecessary check for
27548         NOT_IN_libc.
27549         * nptl/pthreadP.h: Likewise.
27550         * sysdeps/aarch64/setjmp.S: Likewise.
27551         * sysdeps/alpha/setjmp.S: Likewise.
27552         * sysdeps/arm/sysdep.h: Likewise.
27553         * sysdeps/i386/setjmp.S: Likewise.
27554         * sysdeps/m68k/setjmp.c: Likewise.
27555         * sysdeps/posix/getcwd.c: Likewise.
27556         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
27557         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
27558         * sysdeps/s390/s390-32/setjmp.S: Likewise.
27559         * sysdeps/s390/s390-64/setjmp.S: Likewise.
27560         * sysdeps/sh/sh3/setjmp.S: Likewise.
27561         * sysdeps/sh/sh4/setjmp.S: Likewise.
27562         * sysdeps/unix/alpha/sysdep.h: Likewise.
27563         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
27564         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27565         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
27566         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27569         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27570         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27571         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27572         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27573         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27574         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27575         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27576         * sysdeps/x86_64/setjmp.S: Likewise.
27577
27578 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
27579
27580         [BZ #17263]
27581         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
27582         <stdint.h>.
27583         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
27584         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
27585
27586 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
27587
27588         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
27589
27590         [BZ #17262]
27591         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
27592         and __x86_64__ when disabling x87 inline functions.
27593
27594 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
27595
27596         [BZ #17259]
27597         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
27598         asm statement with __cpuid_count.
27599
27600 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
27601
27602         * configure.ac: Change __ehdr_start code to dereference the struct.
27603         Run readelf on the output to look for relocations.
27604         * configure: Regenerated.
27605
27606 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
27607
27608         [BZ #17261]
27609         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
27610         value to 0.
27611         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
27612
27613 2014-08-12  Roland McGrath  <roland@hack.frob.com>
27614
27615         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
27616
27617 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
27618
27619         [BZ #16892]
27620         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
27621         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
27622
27623 2014-08-12  Sean Anderson  <seanga2@gmail.com>
27624
27625         * malloc/malloc.c: Fix typo in comment.
27626
27627 2014-08-09  Allan McRae  <allan@archlinux.org>
27628
27629         * Regenerate libc.po.
27630
27631 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
27632
27633         * intl/tst-gettext2.sh: Check every lang file for creation.
27634
27635 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27636
27637         * sysdeps/aarch64/fpu/math_private.h
27638         (libc_feholdsetround_noex_aarch64_ctx): New function.
27639
27640 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27641
27642         * sysdeps/arm/armv6/strcpy.S (strcpy):
27643         Fix performance issue in misaligned cases.
27644
27645 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27646
27647         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
27648         Move definition from termios.h.
27649         (struct termio): Likewise.
27650         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27651         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27652         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27653         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27654         Likewise.
27655         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
27656         Move definition to ioctl-types.h
27657         (struct termio): Likewise.
27658         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27659         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27660         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27661         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27662         Likewise.
27663
27664 2014-08-05  Richard Henderson  <rth@redhat.com>
27665
27666         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
27667         exceptions.
27668         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
27669         Add fraiseexcpt.
27670         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
27671         Use __feraiseexcept.
27672         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
27673         Protect libm symbols with IS_IN_libm.
27674
27675         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
27676
27677 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
27678
27679         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
27680
27681 2014-08-04  Will Newton  <will.newton@linaro.org>
27682
27683         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
27684         file.
27685
27686 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
27687
27688         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
27689         variants for each function.
27690
27691 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27692
27693         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
27694         appended ...
27695         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
27696         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
27697         appended ...
27698         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
27699         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
27700         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
27701         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
27702         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
27703         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
27704         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
27705         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
27706         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
27707         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
27708         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
27709         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
27710         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
27711         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
27712         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
27713         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
27714         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
27715         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
27716         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
27717         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
27718         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
27719         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
27720         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
27721         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
27722         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
27723         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
27724         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
27725         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
27726         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
27727         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
27728         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
27729         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
27730         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
27731         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
27732         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
27733         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
27734         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
27735         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
27736         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
27737         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
27738         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
27739         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
27740         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
27741         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
27742         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
27743         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
27744         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
27745         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
27746         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
27747         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
27748         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
27749         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
27750         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
27751         Update #include.
27752         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
27753         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
27754
27755 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27756
27757         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
27758         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
27759         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
27760         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
27761         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
27762         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
27763
27764 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27765
27766         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
27767         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
27768         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
27769         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
27770
27771 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27772
27773         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
27774         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
27775         (__libc_vfork): Define function under this name.
27776         (__vfork): Define as an alias.
27777         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
27778         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
27779
27780 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27781
27782         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
27783         that was previously under [RESET_PID].
27784         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
27785
27786 2014-08-04  Andreas Schwab  <schwab@suse.de>
27787
27788         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
27789
27790 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
27791
27792         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
27793         (main): Likewise.
27794
27795 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27796
27797         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
27798
27799 2014-08-01  Richard Henderon  <rth@redhat.com>
27800
27801         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
27802         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
27803         typo in exact zero test.
27804         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27805         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27806         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27807
27808 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27809
27810         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
27811         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
27812         * sysdeps/arm/sysdep.h: ... here.
27813         [!__ASSEMBLER__]: Include <stdint.h>.
27814
27815 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27816
27817         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
27818         (HAVE_WCTYPE_H): Likewise.
27819         (HAVE_ISWCTYPE): Likewise.
27820         (ENABLE_NLS): Likewise.
27821         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
27822         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
27823
27824         * posix/regex_internal.c: Check if DEBUG is defined and is
27825         set.
27826
27827         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
27828         (HAVE_MBSRTOWCS): Likewise.
27829         * posix/fnmatch.c: Include string.h unconditionally.
27830
27831 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
27832
27833         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
27834         reversal.
27835
27836 2014-07-31  Roland McGrath  <roland@hack.frob.com>
27837
27838         * sysdeps/generic/safe-fatal.h: New file.
27839         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
27840         * nptl/forward.c: Include it.
27841         (__pthread_unwind): Use __safe_fatal as default action, rather
27842         than a bogus use of INTERNAL_SYSCALL that could never work.
27843
27844         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
27845         * configure.ac (libc_cv_builtin_trap): New test.
27846         * configure: Regenerated.
27847         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
27848         (ABORT_INSTRUCTION): Define using __builtin_trap.
27849
27850         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
27851         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
27852         * sysdeps/nptl/nptl-signals.h: New file.
27853         * nptl/pthreadP.h: Include <nptl-signals.h>.
27854
27855 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27856
27857         * sysdeps/s390/s390-64/utf16-utf32-z9.c
27858         (ONE_DIRECTION): Define.
27859         * sysdeps/s390/s390-64/utf8-utf16-z9.c
27860         (ONE_DIRECTION): Define.
27861         * sysdeps/s390/s390-64/utf8-utf32-z9.c
27862         (ONE_DIRECTION): Define.
27863
27864 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27865
27866         * sysdeps/s390/Makefile: Delete file.
27867         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
27868         * sysdeps/s390/__longjmp.c: Delete file.
27869         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
27870         Remove fields __flags and __reserved.
27871         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
27872         and add versioning.
27873         * sysdeps/s390/rtld-__longjmp.c: Delete file.
27874         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
27875         * sysdeps/s390/rtld-setjmp.S: Likewise.
27876         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
27877         * sysdeps/s390/s390-32/__longjmp.c: ... here.
27878         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
27879         * sysdeps/s390/s390-32/setjmp.S: ... here.
27880         Add versioning.
27881         (__sigsetjmp): Remove setting __flags field.
27882         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
27883         * sysdeps/s390/s390-64/__longjmp.c: ... here.
27884         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
27885         * sysdeps/s390/s390-64/setjmp.S: ... here.
27886         Add versioning.
27887         (__sigsetjmp): Remove setting __flags field.
27888         * sysdeps/s390/setjmp.S: Delete file.
27889         * sysdeps/s390/sigjmp.c: Likewise.
27890         * sysdeps/s390/v1-longjmp.c: Likewise.
27891         * sysdeps/s390/v1-setjmp.h: Likewise.
27892         * sysdeps/s390/v1-sigjmp.c: Likewise.
27893         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
27894         Remove v1-longjmp_chk.
27895         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
27896         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
27897         Include debug/longjmp_chk.c and add versioning.
27898         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
27899         Include nptl/pt-longjmp.c and add versioning.
27900         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
27901         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
27902         Include __longjmp.c.
27903         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
27904         Move to ...
27905         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
27906         (__getcontext): Remove setting __flags field.
27907         Add versioning.
27908         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
27909         Don't restore upper high grps.
27910         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
27911         Likewise.
27912         (__swapcontext): Remove setting uc_flags field.
27913         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
27914         Delete file.
27915         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
27916         Include __longjmp.c.
27917         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
27918         Move to ...
27919         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
27920         (__getcontext): Remove setting __flags field.
27921         Add versioning.
27922         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
27923         (__swapcontext): Remove setting uc_flags field.
27924         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
27925         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
27926         Remove fields uc_high_gprs and __reserved.
27927         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
27928         New file with reverted content.
27929         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
27930         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
27931         Regenerated.
27932         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
27933         Regenerated.
27934
27935 2014-07-31  Andreas Schwab  <schwab@suse.de>
27936
27937         * config.h.in (HAVE_IFUNC): Define to 0.
27938         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
27939         definedness.
27940
27941 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
27942
27943         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27944         memmove-avx-unaligned, memcpy-avx-unaligned and
27945         mempcpy-avx-unaligned.
27946         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27947         Add tests for AVX memcpy functions.
27948         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
27949         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
27950         memcpy_chk.
27951         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
27952         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
27953         memmove_chk.
27954         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
27955         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
27956         mempcpy_chk.
27957         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
27958         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
27959         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
27960
27961 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27962
27963         [BZ #17213]
27964         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
27965         powerpc64le.
27966
27967 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
27968
27969         [BZ #16839]
27970         * manual/llio.texi: Add section about open file description locks.
27971         * manual/examples/ofdlocks.c: Example of open file description
27972         lock usage.
27973         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
27974         F_OFD_SETLK, and F_OFD_SETLKW.
27975
27976 2014-07-23  Allan McRae  <allan@archlinux.org>
27977
27978         * po/es.po: Update Spanish translation from translation project.
27979
27980 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
27981
27982         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
27983
27984 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
27985
27986         [BZ #17078]
27987         * sysdeps/arm/dl-machine.h (elf_machine_rela)
27988         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
27989         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
27990
27991 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
27992
27993         [BZ #17088]
27994         * math/fesetenv.c (__fesetenv)
27995         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
27996         * math/feupdateenv.c (__feupdateenv)
27997         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
27998
27999         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
28000         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
28001         (__ASSUME_SOCKETCALL): Do not define.
28002
28003         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
28004         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
28005         (__ASSUME_SOCKETCALL): Do not define.
28006         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
28007         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
28008         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28009         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
28010         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28011         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
28012         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28013         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28014
28015         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
28016         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
28017         (__ASSUME_SOCKETCALL): Do not define.
28018         (__ASSUME_IPC64): Define unconditionally.
28019         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
28020         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28021         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
28022         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28023         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
28024         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28025         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
28026         Likewise.
28027
28028         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
28029         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
28030         (__ASSUME_SOCKETCALL): Do not define.
28031         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
28032         (__ASSUME_FUTEX_LOCK_PI): Likewise.
28033         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28034         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
28035         (__ASSUME_REQUEUE_PI): Define unconditionally.
28036         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
28037         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
28038         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28039         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
28040         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28041         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28042
28043         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
28044         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
28045         (__ASSUME_SOCKETCALL): Do not define.
28046         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
28047         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28048         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28049         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
28050         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28051         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28052
28053         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
28054         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
28055         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28056         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
28057         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28058         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
28059         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28060         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
28061         (__ASSUME_GETCPU_SYSCALL): Likewise.
28062
28063         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
28064         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
28065         cases for individual architectures.
28066         * sysdeps/gnu/configure: Regenerated.
28067         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
28068         LIBC_SLIBDIR_RTLDDIR.
28069         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
28070         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
28071         LIBC_SLIBDIR_RTLDDIR.
28072         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
28073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
28074         LIBC_SLIBDIR_RTLDDIR.
28075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
28076         Regenerated.
28077         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
28078         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
28079         file.
28080         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
28081         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
28082         file.
28083         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
28084         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
28085         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
28086         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
28087
28088         * sysdeps/aarch64/shlib-versions: Move to ...
28089         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
28090         * sysdeps/alpha/shlib-versions: Move to ...
28091         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
28092         * sysdeps/arm/shlib-versions: Move to ...
28093         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
28094         * sysdeps/hppa/shlib-versions: Move all contents except for
28095         libgcc_s entry to ...
28096         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
28097         entry from ...
28098         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
28099         * sysdeps/ia64/shlib-versions: Move to ...
28100         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
28101         entry from ...
28102         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
28103         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
28104         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
28105         * sysdeps/microblaze/shlib-versions: Move to ...
28106         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
28107         * sysdeps/mips/shlib-versions: Move to ...
28108         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
28109         entry from ...
28110         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
28111         * sysdeps/tile/shlib-versions: Move to ...
28112         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
28113         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
28114         from ...
28115         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
28116         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
28117         entry from ...
28118         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
28119
28120 2014-07-17  Will Newton  <will.newton@linaro.org>
28121
28122         * sysdeps/arm/bits/atomic.h
28123         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
28124         (__arch_compare_and_exchange_bool_16_int): Likewise.
28125         (__arch_compare_and_exchange_bool_64_int): Likewise.
28126
28127         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
28128         into an #else block.
28129
28130 2014-07-16  Roland McGrath  <roland@hack.frob.com>
28131
28132         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
28133         just Linux configurations.  Test empirically that the compiler sets
28134         __ARM_EABI__, rather than using the tuple to decide.
28135         * sysdeps/arm/preconfigure: Regenerated.
28136         * sysdeps/unix/sysv/linux/arm/configure: File removed.
28137         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
28138         contents appended ...
28139         * sysdeps/arm/configure.ac: ... here.
28140         * sysdeps/arm/configure: Regenerated.
28141
28142 2014-07-15  Roland McGrath  <roland@hack.frob.com>
28143
28144         * nptl/pthread_kill.c: New file.
28145         * nptl/pthread_sigmask.c: New file.
28146         * nptl/pthread_sigqueue.c: New file.
28147
28148         * sysdeps/nptl/lowlevellock.h: New file.
28149         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
28150         * sysdeps/nptl/lowlevellock-futex.h: New file.
28151
28152         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
28153         Remove dead declarations.
28154
28155 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
28156
28157         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
28158         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
28159         config-cflags-avx2.
28160         * sysdeps/x86_64/configure.ac: Likewise.
28161         * sysdeps/i386/configure: Regenerated.
28162         * sysdeps/x86_64/configure: Likewise.
28163         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28164         memset-avx2 only if config-cflags-avx2 is yes.
28165         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
28166         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
28167         defined.
28168         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
28169         only if HAVE_AVX2_SUPPORT is defined.
28170         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
28171
28172 2014-07-14  Alan Modra  <amodra@gmail.com>
28173
28174         [BZ #17153]
28175         * elf/elf.h (DT_PPC64_NUM): Correct value.
28176         * NEWS: Add to fixed bug list.
28177
28178 2014-07-13  Jim Meyering  <meyering@fb.com>
28179
28180         [BZ 17150]
28181         regex: don't deref NULL upon heap allocation failure
28182         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
28183         failure in one more place.
28184         To trigger the segfault, configure grep -with-included-regex,
28185         build it, and run these commands:
28186         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
28187
28188 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
28189
28190         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
28191
28192 2014-07-11  Richard Henderson  <rth@redhat.com>
28193
28194         * sysdeps/aarch64/libm-test-ulps: Update.
28195
28196 2014-07-10  Florian Weimer  <fweimer@redhat.com>
28197
28198         [BZ #17135]
28199         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
28200         * nptl/allocatestack.c (__nptl_setxid_error): New function.
28201         (__nptl_setxid): Initialize error member.  Call
28202         __nptl_setxid_error.
28203         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
28204         * nptl/descr.h (struct xid_command): Add error member.
28205         * nptl/tst-setuid3.c: New file.
28206         * nptl/Makefile (tests): Add it.
28207
28208 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28209
28210         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
28211         New define.
28212         (__lll_trylock): Use __lll_base_trylock.
28213         (__lll_cond_trylock): Likewise.
28214
28215 2014-07-10  Roland McGrath  <roland@hack.frob.com>
28216
28217         * nptl/pthread_create.c (start_thread): Use atomic_or and
28218         lll_futex_wake directly rather than lll_robust_dead.
28219         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
28220         (lll_robust_dead): Macro removed.
28221         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
28222         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
28223         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
28224         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
28225         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
28226         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
28227         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
28228         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
28229         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
28230         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
28231         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
28232         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28233         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
28234         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
28235         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
28236
28237         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
28238         Use atomic_compare_and_exchange_val_acq directly rather than
28239         lll_robust_trylock.
28240         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
28241         (__lll_robust_trylock, lll_robust_trylock): Removed.
28242         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
28243         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
28244         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
28245         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
28246         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
28247         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
28248         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
28249         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
28250         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
28251         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
28252         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28253         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
28254         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
28255         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
28256
28257 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28258
28259         * manual/locale.texi (Locale Names): New section documenting
28260         locale name syntax.  Adjust menu and node chaining accordingly.
28261         (Choosing Locale): Reference Locale Names, Locale Categories.
28262         Mention setting LC_ALL=C.  Reflect that name syntax is now
28263         documented.
28264         (Locale Categories): New section title.  Reference Locale Names.
28265         LC_ALL is an environment variable, but not a category.
28266         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
28267         description, now in Locale Name.  Reference that section.  Locale
28268         name syntax is now documented.
28269
28270 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28271
28272         [BZ #17137]
28273         * locale/findlocale.c (name_present, valid_locale_name): New
28274         functions.
28275         (_nl_find_locale): Use the loc_name variable to store name
28276         candidates.  Call name_present and valid_locale_name to check and
28277         validate locale names.  Return an error if the locale is invalid.
28278
28279 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28280
28281         * locale/setlocale.c (setlocale): Use strdup for allocating
28282         composite name copy.
28283
28284 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28285
28286         Sync up with gnulib.
28287         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
28288         [!_LIBC && ENABLE_NLS]: Include gettext.h.
28289         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
28290         and _GL_ARG_NONNULL.
28291         [USE_UNLOCKED_IO]: Include unlocked-io.h.
28292         [!_LIBC]: Include code for Windows and Cygwin.
28293         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
28294         Include prototype for int strerror_r.
28295         [!_LIBC] (is_open): New function.
28296         (flush_stdout): New function.
28297         (print_errno_message): Use it.
28298         (error): Likewise.
28299         (error_at_line): Likewise.
28300         (error_tail) Add function attribute macros.  Use
28301         __builtin_expect.
28302
28303         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
28304
28305         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
28306
28307         * io/ftw.c: Include sys/param.h unconditionally.
28308
28309         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
28310
28311         [BZ #17125]
28312         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
28313         libc_freeres_ptr.
28314         (freecache): New function to free CACHE on exit.
28315
28316         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
28317         initialization.
28318
28319 2014-07-09  David S. Miller  <davem@davemloft.net>
28320
28321         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28322
28323         * sysdeps/sparc/nptl/internaltypes.h: Delete.
28324         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
28325         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
28326         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
28327         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
28328         * sysdeps/sparc/nptl/sem_init.c: Likewise.
28329         * sysdeps/sparc/nptl/sem_post.c: Likewise.
28330         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
28331         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
28332         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
28333         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
28334         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
28335         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
28336
28337 2014-07-09  Andreas Schwab  <schwab@suse.de>
28338
28339         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
28340         output.
28341         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
28342         (do_test): Likewise.
28343
28344         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
28345
28346 2014-07-09  Will Newton  <will.newton@linaro.org>
28347
28348         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
28349         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
28350         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28351         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28352         * sysdeps/hppa/start.S (_start): Likewise.
28353
28354 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
28355
28356         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
28357
28358         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
28359         defined.
28360
28361 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28362
28363         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
28364         after checking that it is non-NULL.
28365
28366         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
28367
28368 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28369
28370         * sysdeps/powerpc/memmove.c: Remove file.
28371         * sysdeps/powerpc/powerpc32/power4/memcopy.h
28372         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
28373         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
28374         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
28375         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
28376         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
28377         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
28378         string memmove instead of removed powerpc one.
28379
28380         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
28381         [weak_alias]: Fix compiler warning due trailing data.
28382         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
28383         [weak_alias]: Likewise.
28384         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
28385         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
28386
28387         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
28388         (__libc_ifunc_impl_list): Add memmove functions.
28389
28390 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28391
28392         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
28393         Remove code.
28394         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
28395         Likewise.
28396         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
28397         Likewise.
28398         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
28399         Likewise.
28400         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
28401         Likewise.
28402         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
28403         Likewise.
28404         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
28405         Likewise.
28406         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
28407         Likewise.
28408         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
28409         Likewise.
28410         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
28411         Likewise.
28412         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
28413         Likewise.
28414         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
28415         Likewise.
28416         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
28417         Likewise.
28418         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
28419         Likewise.
28420         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
28421         Likewise.
28422         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
28423         Likewise.
28424         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
28425         Likewise.
28426
28427 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28428
28429         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
28430         to avoid alignment traps in non-cacheable memory.
28431         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
28432
28433         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
28434         multiarch objects.
28435         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
28436         file: multiarch power7 memmove.
28437         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
28438         multiarch default memmove.
28439         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
28440         multiarch memove for powerpc32/power4.
28441
28442         * string/bcopy.c: Use full path to include memmove.c.
28443         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
28444         multiarch objects.
28445         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
28446         bcopy for powerpc64.
28447         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
28448         bcopy for powerpc64.
28449         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
28450         and memmove implementations.
28451         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
28452         optimized multiarch memmove for POWER7/powerpc64.
28453         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
28454         default multiarch memmove for powerpc64.
28455         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
28456         multiarch for powerpc64.
28457         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
28458         for POWER7/powerpc64.
28459         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
28460         memmove for POWER7/powerpc64.
28461
28462         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
28463         glibc default one.
28464
28465         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
28466         __ELF_NATIVE_CLASS equal to 64.
28467
28468 2014-07-07  Roland McGrath  <roland@hack.frob.com>
28469
28470         * sysdeps/nptl/lowlevellock.h: File removed.
28471
28472         * NEWS: NPTL is no longer an add-on!
28473         * nptl/internaltypes.h: Moved ...
28474         * sysdeps/nptl/internaltypes.h: ... here.
28475         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
28476         * sysdeps/nptl/fork.c: Likewise.
28477         * sysdeps/nptl/gai_misc.h: Likewise.
28478         * sysdeps/nptl/librt-cancellation.c: Likewise.
28479         * sysdeps/nptl/jmp-unwind.c: Likewise.
28480         * sysdeps/nptl/setxid.h: Likewise.
28481         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
28482         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
28483         * sysdeps/unix/sysv/linux/arm/Implies: New file.
28484         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
28485         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
28486         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
28487         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
28488         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
28489         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
28490         * sysdeps/unix/sysv/linux/mips/Implies: New file.
28491         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
28492         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
28493         * sysdeps/unix/sysv/linux/sh/Implies: New file.
28494         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
28495         * sysdeps/unix/sysv/linux/tile/Implies: New file.
28496         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
28497         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
28498         * nptl/Makeconfig: Moved ...
28499         * sysdeps/nptl/Makeconfig: ... here.
28500         * nptl/configure: File removed.
28501         * nptl/ANNOUNCE: File removed.
28502         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
28503         * sysdeps/unix/sysv/linux/configure: Regenerated.
28504
28505         * nptl/Makefile (routines): Add libc_pthread_init,
28506         libc_multiple_threads, register-atfork and unregister-atfork.
28507         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
28508         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
28509         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
28510         pthread-pi-defines.sym, structsem.sym.
28511         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
28512         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
28513         [$(subdir) = nptl] (tests): Add tst-setgetname.
28514         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
28515         * sysdeps/unix/sysv/linux/sigaction.c: Just include
28516         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
28517         [!LIBC_SIGACTION]: Remove aliases.
28518         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
28519         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
28520         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
28521         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
28522         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
28523         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
28524         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
28525         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
28526         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
28527         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
28528         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
28529         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
28530         __libc_allocate_rtsig_private.
28531         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
28532         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
28533         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
28534         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
28535         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
28536         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
28537         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
28538         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
28539         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
28540         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
28541         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
28542         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
28543         * nptl/internaltypes.h: ... here.
28544         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
28545         * sysdeps/nptl/jmp-unwind.c: ... here.
28546         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
28547         * nptl/libc-lowlevellock.c: ... here.
28548         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
28549         * nptl/libc_multiple_threads.c: ... here.
28550         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
28551         * nptl/libc_pthread_init.c: ... here.
28552         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
28553         * nptl/lowlevelbarrier.sym: ... here.
28554         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
28555         * nptl/lowlevelcond.sym: ... here.
28556         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
28557         * nptl/lowlevellock.c: ... here.
28558         * nptl/lowlevellock.h: Moved ...
28559         * sysdeps/nptl/lowlevellock.h: ... here.
28560         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
28561         * nptl/lowlevelrobustlock.c: ... here.
28562         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
28563         * nptl/lowlevelrobustlock.sym: ... here.
28564         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
28565         * nptl/lowlevelrwlock.sym: ... here.
28566         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
28567         * nptl/pt-fork.c: ... here.
28568         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
28569         * nptl/pthread-pi-defines.sym: ... here.
28570         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
28571         * nptl/pthread_attr_getaffinity.c: ... here.
28572         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
28573         * nptl/pthread_attr_setaffinity.c: ... here.
28574         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
28575         * nptl/pthread_mutex_cond_lock.c: ... here.
28576         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
28577         Update #include.
28578         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
28579         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
28580         * nptl/pthread_once.c: ... here, replacing old file.
28581         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
28582         * nptl/pthread_yield.c: ... here.
28583         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
28584         * nptl/register-atfork.c: ... here.
28585         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
28586         * nptl/sem_post.c: ... here.
28587         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
28588         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
28589         * nptl/sem_timedwait.c: ... here.
28590         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
28591         * nptl/sem_trywait.c: ... here.
28592         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
28593         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
28594         * nptl/sem_wait.c: ... here.
28595         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
28596         * nptl/structsem.sym: ... here.
28597         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
28598         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
28599         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
28600         * nptl/unregister-atfork.c: ... here.
28601         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
28602         * nptl/unwindbuf.sym: ... here.
28603         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
28604         * sysdeps/nptl/fork.c: ... here.
28605         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
28606         * sysdeps/nptl/fork.h: ... here.
28607         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
28608         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
28609         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
28610         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
28611         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
28612         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
28613         * sysdeps/unix/sysv/linux/getpid.c: ... here.
28614         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
28615         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
28616         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
28617         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
28618         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
28619         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
28620         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
28621         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
28622         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
28623         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
28624         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
28625         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
28626         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
28627         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
28628         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
28629         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
28630         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
28631         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
28632         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
28633         * sysdeps/unix/sysv/linux/raise.c: ... here.
28634         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
28635         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
28636         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
28637         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
28638         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
28639         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
28640         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
28641         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
28642         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
28643         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
28644         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
28645         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
28646         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
28647         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
28648         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
28649
28650 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
28651
28652         * sysdeps/generic/memcopy.h: Add comment for
28653         MEMCPY_OK_FOR_FWD_MEMMOVE.
28654
28655 2014-07-04  Will Newton  <will.newton@linaro.org>
28656
28657         * string/memchr.c: Merge from gnulib.
28658         [_LIBC]: Remove conditionals.
28659         (__ptr_t): Remove define.
28660         (LONG_MAX_32_BITS): Likewise.
28661         (LONG_MAX): Likewise.
28662         (MEMCHR): Use ANSI prototype and optimize algorithm.
28663
28664         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
28665
28666 2014-07-03  Roland McGrath  <roland@hack.frob.com>
28667
28668         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
28669         (lll_futex_timed_wait_bitset): Fix syscall argument count.
28670
28671         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
28672         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
28673         in a bare environment with no <stdlib.h> installed.
28674         * sysdeps/nptl/configure: Regenerated.
28675
28676         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
28677
28678         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
28679         AC_EGREP_CPP for kernel header checks, so they only succeed if
28680         including <linux/version.h> actually works right.
28681         * sysdeps/unix/sysv/linux/configure: Regenerated.
28682
28683         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
28684         value so it's not diagnosed as unused.
28685
28686         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
28687         thing) with "ifeq ($(subdir),rt)".
28688
28689 2014-07-03  Richard Henderson  <rth@redhat.com>
28690
28691         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
28692         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
28693         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
28694
28695         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
28696         (math_force_eval): New.
28697
28698         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
28699         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
28700
28701         * sysdeps/alpha/fpu/s_round.c: Remove file.
28702         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
28703
28704         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
28705         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
28706         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
28707         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
28708         (_dl_start, print_statistics): Likewise.
28709         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
28710         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
28711
28712         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28713         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28714         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28715         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28716         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28717         (HP_SMALL_TIMING_AVAIL): Define.
28718         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28719         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28720         (HP_SMALL_TIMING_AVAIL): Define.
28721         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28722         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28723
28724         * sysdeps/aarch64/hp-timing.h: New file.
28725
28726         * sysdeps/generic/hp-timing.h: Remove dead comment.
28727         * sysdeps/generic/hp-timing-common.h: New file.
28728         * sysdeps/alpha/hp-timing.h: Include it.
28729         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
28730         * sysdeps/i386/i686/hp-timing.h: Likewise.
28731         * sysdeps/ia64/hp-timing.h: Likewise.
28732         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28733         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28734         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28735         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28736         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
28737         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
28738         (hp_timing_t): New.
28739
28740         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
28741         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
28742         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
28743         * elf/rtld.c (_dl_start_final): Likewise.
28744         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
28745         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28746         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28747         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28748         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28749         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28750         (HP_TIMING_DIFF_INIT): Remove.
28751         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28752         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28753         (HP_TIMING_DIFF_INIT): Remove.
28754         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28755         * sysdeps/i386/i686/hp-timing.c: Remove file.
28756         * sysdeps/x86_64/hp-timing.c: Remove file.
28757         * sysdeps/ia64/hp-timing.c: Remove file.
28758         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
28759         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
28760         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
28761         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
28762
28763         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
28764         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
28765         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
28766         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28767         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28768         (HP_TIMING_ACCUM): Remove.
28769         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28770         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
28771         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28772
28773         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
28774         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
28775         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
28776         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
28777         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
28778         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28779         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
28780         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28781
28782         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
28783
28784 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
28785
28786         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
28787
28788 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28789
28790         Sync up with gettext.
28791         * intl/loadmsgcat.c: Define O_BINARY if not defined.
28792         [_MSC_VER]: Include malloc.h
28793         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
28794         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
28795         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
28796         TEMP_FAILURE_RETRY.  Cast return of alloca.
28797         [!_LIBC] Call gl_rwlock_init.
28798         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
28799
28800 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28801
28802         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
28803         before checking its value.
28804
28805 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28806
28807         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
28808
28809         * debug/memcpy_chk.c: Don't include pagecopy.h.
28810         * debug/mempcpy_chk.c: Likewise.
28811         * string/memcpy.c: Likewise.
28812         * string/memmove.c: Likewise.
28813         * sysdeps/powerpc/memmove.c: Likewise.
28814         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
28815         definition of PAGE_COPY_FWD_MAYBE here...
28816         * sysdeps/generic/pagecopy.h: ... from here.
28817         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
28818
28819 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
28820             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28821
28822         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
28823         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
28824         optimizations.
28825         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
28826         (__libc_ifunc_impl_list): Likewise.
28827         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
28828         multiarch strcat for PPC64.
28829         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
28830         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
28831
28832 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28833
28834         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
28835
28836 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28837
28838         * intl/loadmsgcat.c: Remove declaration of
28839         get_sysdep_segment_value.
28840         (get_sysdep_segment_value): Use ISO C style.
28841         (_nl_load_domain): Use ISO C style.  Get rid of redundant
28842         semicolon.  Fix typo and formatting in comment.
28843         (_nl_unload_domain): Use ISO C style.
28844
28845         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
28846
28847 2014-07-02  Will Newton  <will.newton@linaro.org>
28848
28849         * malloc/obstack.c: Merge from gnulib master.
28850         [HAVE_CONFIG_H]: Remove conditional code.
28851         [!_LIBC]: Include config.h.
28852         [!ELIDE_CODE]: Don't include inttypes.h, include
28853         stdint.h unconditionally.
28854         (print_and_abort): Mark as _Noreturn.
28855         (_obstack_allocated_p): Mark as __attribute_pure__.
28856         (obstack_free): Rename to __obstack_free.
28857         [!__attribute__]: Remove conditional code.
28858         * malloc/obstack.h: Merge from gnulib master.
28859         [__cplusplus]: Move conditional down.
28860         [!__attribute_pure__]: Define __attribute_pure__ here
28861         if it is not already defined.
28862         (_obstack_memory_used): Mark as __attribute_pure__.
28863         [!__obstack_free]: Define as obstack_free.
28864         [__GNUC__]: Remove check for ancient NeXT gcc.
28865
28866 2014-07-02  Will Newton  <will.newton@linaro.org>
28867             Paul Eggert  <eggert@cs.ucla.edu>
28868
28869         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
28870
28871 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28872
28873         * resolv/gethnamaddr.c: Add comment warning that the file is
28874         not maintained.
28875
28876 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
28877
28878         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
28879         entries.
28880
28881         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
28882         entry for aio_cancel and aio_cancel64.
28883         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
28884         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
28885         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
28886         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
28887         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
28888         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
28889         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
28890         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
28891         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
28892         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
28893         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
28894         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
28895         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
28896
28897 2014-07-01  Roland McGrath  <roland@hack.frob.com>
28898
28899         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
28900         * nptl/pthread_mutex_lock.c: Likewise.
28901         * nptl/pthread_mutex_timedlock.c: Likewise.
28902         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
28903
28904 2014-07-01  Richard henderson  <rth@redhat.com>
28905
28906         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
28907         (__isnan, __isnanl): Remove.
28908         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
28909
28910         * sysdeps/alpha/fpu/libm-test-ulps: Update.
28911
28912 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
28913
28914         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
28915
28916 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28917
28918         * resolv/nss_dns/dns-host.c (getanswer_r)
28919         [MULTI_PTRS_ARE_ALIASES]: Remove code.
28920
28921 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
28922
28923         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28924         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
28925         undefine.
28926         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
28927         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
28928
28929 2014-07-01  Roland McGrath <roland@hack.frob.com>
28930
28931         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
28932         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
28933
28934         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
28935         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
28936
28937         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
28938         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
28939         ... here.
28940         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
28941         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
28942
28943         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
28944         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
28945         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
28946         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
28947
28948         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
28949         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
28950         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
28951         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
28952         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
28953         Moved ...
28954         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
28955         ... here.
28956         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
28957         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
28958         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
28959         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
28960         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
28961         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
28962         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
28963         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
28964         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
28965         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
28966         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
28967         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
28968         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
28969         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
28970         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
28971         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
28972         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
28973         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
28974         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
28975         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
28976         ... here.
28977         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
28978         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
28979         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
28980         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
28981         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
28982         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
28983         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
28984         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
28985
28986 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
28987
28988         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
28989         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
28990         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
28991         Add sysdep.
28992
28993 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28994
28995         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28996
28997 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28998
28999         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
29000         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29001
29002         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
29003
29004         * sysdeps/arm/libm-test-ulps: Regenerated.
29005
29006 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
29007             Roland McGrath <roland@hack.frob.com>
29008
29009         * test-skeleton.c (signal_handler): Kill the whole process group
29010         before killing the child individually.
29011         (main): Report any failure on `setpgid'.
29012
29013 2014-06-30  Roland McGrath  <roland@hack.frob.com>
29014
29015         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
29016         from _TLS_H to _ARM_NPTL_TLS_H.
29017         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
29018         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
29019
29020 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
29021
29022         [BZ #16539]
29023         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
29024         (__expm1l): Return argument unchanged when small but not
29025         subnormal.
29026
29027         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
29028         include macro name.
29029         (_FP_UNPACK_RAW_1_P): Likewise.
29030         (_FP_PACK_RAW_1): Likewise.
29031         (_FP_PACK_RAW_1_P): Likewise.
29032         (_FP_MUL_MEAT_1_wide): Likewise.
29033         (_FP_MUL_MEAT_DW_1_hard): Likewise.
29034         (_FP_MUL_MEAT_1_hard): Likewise.
29035         (_FP_DIV_MEAT_1_imm): Likewise.
29036         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
29037         (_FP_DIV_MEAT_1_udiv): Likewise.
29038         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
29039         (_FP_UNPACK_RAW_2): Likewise.
29040         (_FP_UNPACK_RAW_2_P): Likewise.
29041         (_FP_PACK_RAW_2): Likewise.
29042         (_FP_PACK_RAW_2_P): Likewise.
29043         (_FP_MUL_MEAT_DW_2_wide): Likewise.
29044         (_FP_MUL_MEAT_2_wide): Likewise.
29045         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
29046         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
29047         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
29048         (_FP_MUL_MEAT_2_gmp): Likewise.
29049         (_FP_DIV_MEAT_2_udiv): Likewise.
29050         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
29051         (_FP_FRAC_SRL_4): Likewise.
29052         (_FP_FRAC_SRST_4): Likewise.
29053         (_FP_FRAC_SRS_4): Likewise.
29054         (_FP_UNPACK_RAW_4): Likewise.
29055         (_FP_UNPACK_RAW_4_P): Likewise.
29056         (_FP_PACK_RAW_4): Likewise.
29057         (_FP_PACK_RAW_4_P): Likewise.
29058         (_FP_MUL_MEAT_DW_4_wide): Likewise.
29059         (_FP_MUL_MEAT_4_wide): Likewise.
29060         (_FP_MUL_MEAT_4_gmp): Likewise.
29061         (umul_ppppmnnn): Likewise.
29062         (_FP_DIV_MEAT_4_udiv): Likewise.
29063         (__FP_FRAC_ADD_4): Likewise.
29064         (__FP_FRAC_SUB_3): Likewise.
29065         (__FP_FRAC_SUB_4): Likewise.
29066         (__FP_FRAC_DEC_3): Likewise.
29067         (__FP_FRAC_DEC_4): Likewise.
29068         (__FP_FRAC_ADDI_4): Likewise.
29069         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
29070         (_FP_FRAC_SRL_8): Likewise.
29071         (_FP_FRAC_SRS_8): Likewise.
29072
29073         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
29074         include macro name.
29075         (FP_UNPACK_RAW_EP): Likewise.
29076         (FP_PACK_RAW_E): Likewise.
29077         (FP_PACK_RAW_EP): Likewise.
29078         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
29079         (_FP_ISSIGNAN): Likewise.
29080         (_FP_ADD_INTERNAL): Likewise.
29081         (_FP_FMA): Likewise.
29082         (_FP_CMP): Likewise.
29083         (_FP_SQRT): Likewise.
29084         (_FP_TO_INT): Likewise.
29085         (_FP_FROM_INT): Likewise.
29086         (FP_EXTEND): Likewise.
29087         (_FP_DIV_MEAT_N_loop): Likewise.
29088
29089 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
29090
29091         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
29092         throughout.
29093
29094 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
29095
29096         [BZ #17097]
29097         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
29098         result with correct sign in case of exponents that produce
29099         overflow except for X very close to 1.
29100
29101 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
29102
29103         mktime: merge #if/#ifdef usage from glibc
29104         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
29105         as that works with both Glibc's and Gnulib's style.
29106         See thread starting at Siddhesh Poyarekar's bug report at:
29107         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
29108
29109 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
29110
29111         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
29112         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
29113         * sysdeps/tile/tilegx/memmove.c: Remove file.
29114
29115 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
29116
29117         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
29118         abi-name definition.
29119         * scripts/soversions.awk: Do not handle or generate ABI lines.
29120         * shlib-versions: Remove ABI entries.
29121         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
29122         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
29123
29124 2014-06-27  Roland McGrath  <roland@hack.frob.com>
29125
29126         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
29127         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
29128         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
29129         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
29130         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
29131         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
29132         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
29133         Moved ...
29134         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
29135         ... here.
29136         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
29137         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
29138         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
29139         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
29140         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
29141         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
29142         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
29143         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
29144         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
29145         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
29146         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
29147         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
29148         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
29149         Moved ...
29150         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
29151         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
29152         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
29153         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
29154         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
29155         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
29156         Moved ...
29157         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
29158         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
29159         Moved ...
29160         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
29161         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
29162         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
29163         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
29164         Moved ...
29165         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
29166         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
29167         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
29168         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
29169         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
29170         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
29171         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
29172         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
29173         Moved ...
29174         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
29175         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
29176         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
29177         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
29178         Moved ...
29179         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
29180         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
29181         Moved ...
29182         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
29183         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
29184         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
29185         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
29186         Moved ...
29187         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
29188         ... here.
29189         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
29190         Identical file removed.
29191         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
29192         Moved ...
29193         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
29194         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
29195         Identical file removed.
29196         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
29197         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
29198         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
29199         Moved ...
29200         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
29201         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
29202         Identical file removed.
29203         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
29204         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
29205         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
29206         Identical file removed.
29207         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
29208         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
29209         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
29210         Identical file removed.
29211         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
29212         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
29213         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
29214         Identical file removed.
29215         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
29216         Moved ...
29217         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
29218         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
29219         Identical file removed.
29220         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
29221         Moved ...
29222         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
29223         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
29224         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
29225         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
29226         Identical file removed.
29227         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
29228         Moved ...
29229         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
29230         ... here.
29231         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
29232         Identical file removed.
29233         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
29234         Moved ...
29235         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
29236         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
29237         Identical file removed.
29238         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
29239         Moved ...
29240         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
29241         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
29242         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
29243         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
29244         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
29245         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
29246         Moved ...
29247         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
29248         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
29249         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
29250
29251         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
29252         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
29253         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
29254         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
29255         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
29256
29257 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
29258
29259         [BZ #17092]
29260         * nscd/nscd.c (monitor_child): Return exit status of child
29261         instead of return value from wait syscall.
29262
29263 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
29264
29265         * configure.ac (libc_commonpagesize): Remove variable.
29266         (libc_relro_required): Likewise.
29267         (libc_cv_z_relro): Remove configure test.
29268         * configure: Regenerated.
29269         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
29270         variable.
29271         (libc_relro_required): Likewise.
29272         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
29273         (libc_relro_required): Likewise.
29274         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
29275         (libc_relro_required): Likewise.
29276         * sysdeps/arm/preconfigure: Regenerated.
29277         * sysdeps/ia64/preconfigure: Remove file.
29278         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
29279         variable.
29280         (libc_relro_required): Likewise.
29281
29282         [BZ #16561]
29283         [BZ #16562]
29284         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
29285         (__ieee754_yn): Set FE_TONEAREST mode internally and then
29286         recompute overflowing results in original rounding mode.
29287         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
29288         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
29289         recompute overflowing results in original rounding mode.
29290         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
29291         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29292         recompute overflowing results in original rounding mode.
29293         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
29294         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29295         recompute overflowing results in original rounding mode.
29296         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
29297         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29298         recompute overflowing results in original rounding mode.
29299         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
29300         (libc_feholdsetround_ctx): New macro.
29301         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
29302         * sysdeps/i386/fpu/libm-test-ulps: Update.
29303         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
29304
29305 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29306
29307         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
29308         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
29309         corresponding .cpsetup call.
29310
29311 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29312
29313         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
29314         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
29315         * sysdeps/arm/Makefile [$(subdir) = csu]
29316         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
29317         (static-only-routines): Add aeabi_read_tp here.
29318         (shared-only-routines): Add libc-aeabi_read_tp here.
29319         (CFLAGS-libc-start.c): Add -fexceptions here.
29320         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
29321         (sysdep_routines, static-only-routines, shared-only-routines):
29322         Don't add to these here.
29323         (CFLAGS-libc-start.c): Likewise.
29324
29325         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
29326         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
29327         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
29328         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
29329         * sysdeps/arm/Makefile [$(subdir) = rt]
29330         (librt-sysdep_routines, librt-shared-only-routines):
29331         Append rt-aeabi_unwind_cpp_pr1 here.
29332         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
29333         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
29334         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
29335         (libpthread-sysdep_routines, libpthread-shared-only-routines):
29336         Append nptl-aeabi_unwind_cpp_pr1 here.
29337         (tests): Filter out tst-cleanupx4 here.
29338         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
29339         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
29340         Don't do those here.
29341
29342 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29343
29344         * scripts/list-sources.sh: Do not handle ports specially.
29345
29346 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29347
29348         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
29349         * sysdeps/arm/feupdateenv.c: Likewise.
29350
29351         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
29352
29353 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29354
29355         * manual/texinfo.tex: Update to version 2014-05-05.10 with
29356         trailing whitespace removed.
29357         * scripts/config.guess: Update to version 2014-03-23.
29358         * scripts/config.sub: Update to version 2014-05-01
29359         * scripts/install-sh: Update to version 2013-12-25.23.
29360         * scripts/move-if-change: Update from gnulib.
29361
29362 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29363
29364         * debug/memmove_chk.c: Remove pagecopy.h include.
29365
29366 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
29367
29368         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
29369         identical to gnulib mktime.
29370
29371 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29372
29373         * configure.ac: Do not test for machine being rs6000.  Do not test
29374         for powerpc*-*soft.
29375         * configure: Regenerated.
29376
29377         [BZ #11505]
29378         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
29379         test.
29380         * configure: Regenerated.
29381         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
29382         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
29383         Remove configure test.
29384         * sysdeps/arm/configure: Regenerated.
29385         * sysdeps/nptl/configure.ac: Do not check
29386         libc_cv_asm_cfi_directives.
29387         * sysdeps/nptl/configure: Regenerated.
29388         * sysdeps/x86_64/nptl/configure.ac: Remove file.
29389         * sysdeps/x86_64/nptl/configure: Remove generated file.
29390         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
29391         unconditional.
29392         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
29393
29394 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29395
29396         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
29397         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
29398         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
29399         it is defined.
29400
29401         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
29402         instead of whether it is defined.
29403         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
29404         * sysdeps/hppa/dl-machine.h: Likewise.
29405         * sysdeps/ia64/dl-machine.h: Likewise.
29406         * sysdeps/m68k/dl-machine.h: Likewise.
29407         * sysdeps/microblaze/dl-machine.h: Likewise.
29408         * sysdeps/mips/dl-machine.: Likewise.
29409         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
29410         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
29411         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
29412         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
29413         * sysdeps/sh/dl-machine.h: Likewise.
29414         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29415         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29416         * sysdeps/tile/dl-machine.h: Likewise.
29417         * sysdeps/x86_64/dl-machine.h: Likewise.
29418
29419         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
29420         code.
29421         (verify_persistent_db): Likewise.
29422
29423 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29424
29425         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
29426         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
29427         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
29428         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
29429         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
29430         Moved ...
29431         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
29432         ... here.
29433         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
29434         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
29435         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
29436         Identical file removed.
29437         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
29438         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
29439         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
29440         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
29441         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
29442         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
29443         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
29444         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
29445         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
29446         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
29447         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
29448         Moved ...
29449         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
29450         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
29451         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
29452         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
29453         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
29454         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
29455         Moved ...
29456         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
29457         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
29458         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
29459         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
29460         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
29461         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
29462         Identical file removed.
29463         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
29464         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
29465         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
29466         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
29467         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
29468         Moved ...
29469         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
29470         ... here.
29471         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
29472         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
29473         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
29474         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
29475         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
29476         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
29477         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
29478         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
29479         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
29480         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
29481         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
29482         Moved ...
29483         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
29484         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
29485         Moved ...
29486         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
29487         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
29488         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
29489         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
29490         Moved ...
29491         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
29492         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
29493         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
29494
29495         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
29496         folded into ...
29497         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
29498         * sysdeps/unix/sysv/linux/s390/Versions
29499         (libpthread: GLIBC_2.19): New version set.
29500         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
29501         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
29502         (librt: GLIBC_2.3.3): New version set.
29503         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
29504         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
29505         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
29506         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
29507         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
29508         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
29509         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
29510         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
29511         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
29512         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
29513         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
29514         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
29515         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
29516         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
29517         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
29518         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
29519         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
29520         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
29521         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
29522         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
29523         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
29524         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
29525         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
29526         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
29527         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
29528         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
29529         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
29530         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
29531         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
29532         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
29533         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
29534         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
29535         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
29536         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
29537         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
29538         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
29539         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
29540         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
29541         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
29542         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
29543         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
29544         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
29545         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
29546         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
29547         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
29548
29549         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
29550         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
29551         (__libc_vfork): Define the function under this name.
29552         [!NOT_IN_libc] (__vfork): Make this an alias.
29553         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29554         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
29555         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
29556         (__libc_vfork): Define the function under this name.
29557         [!NOT_IN_libc] (__vfork): Make this an alias.
29558         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29559         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
29560         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
29561         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
29562         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
29563         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
29564
29565         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
29566         code that was previously under [RESET_PID].
29567         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
29568         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
29569         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
29570
29571         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
29572         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
29573         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
29574         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
29575         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
29576         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
29577         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
29578         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
29579         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
29580         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
29581         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
29582         Moved ...
29583         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
29584         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
29585         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
29586         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
29587         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
29588         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
29589         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
29590         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
29591         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
29592         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
29593         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
29594         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
29595         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
29596         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
29597         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
29598         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
29599         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
29600         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
29601         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
29602         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
29603         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
29604         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
29605         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
29606         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
29607         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
29608         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
29609         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
29610         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
29611         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
29612
29613 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29614
29615         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
29616         that was previously under [RESET_PID].
29617         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
29618
29619 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29620
29621         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
29622         not undefine and redefine.
29623         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
29624         [O_CLOEXEC]: Make code unconditional.
29625         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
29626         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
29627         <kernel-features.h>.
29628         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
29629         conditional variable definition.
29630         (shm_open) [O_CLOEXEC]: Make code unconditional.
29631         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
29632         code.
29633
29634         * configure.ac (USE_REGPARMS): Don't define here.
29635         * configure: Regenerated.
29636         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
29637         * sysdeps/i386/configure: Regenerated.
29638
29639         * nptl/createthread.c: Don't include kernel-features.h.
29640         * nptl/pthread_cancel.c: Likewise.
29641         * nptl/pthread_condattr_setclock.c: Likewise.
29642         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
29643         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
29644         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
29645         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
29646         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
29647         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
29648         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
29649         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
29650         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
29651         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
29652         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
29653         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
29654         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
29655         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
29656         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
29657         * nscd/gai.c: Likewise.
29658         * nss/nss_db/db-open.c: Likewise.
29659         * sysdeps/generic/ldsodefs.h: Likewise.
29660         * sysdeps/sh/nptl/tls.h: Likewise.
29661         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
29662         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
29663         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
29664         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
29665         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
29666         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
29667         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
29668         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
29669         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
29670         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
29671         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
29672         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
29673         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
29674         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
29675         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
29676         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
29677         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
29678         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
29679         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
29680         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
29681         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
29682         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
29683         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
29684         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
29685         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
29686         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
29687         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
29688         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
29689         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
29690         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
29691         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
29692         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
29693         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
29694         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29695         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29696         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
29697         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29698         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
29699         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
29700         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
29701         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
29702         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
29703         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
29704         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
29705         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
29706         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
29707         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
29708         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
29709         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
29710         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
29711         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
29712         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
29713         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
29714         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
29715         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
29716         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
29717         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
29718         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
29719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
29720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
29721         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
29722         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
29723         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
29724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
29725         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
29726         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
29727         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
29728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
29729         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
29730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
29731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
29732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
29733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
29734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
29735         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
29736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
29737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
29738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
29739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
29740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
29741         * sysdeps/unix/sysv/linux/pread.c: Likewise.
29742         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
29743         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
29744         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
29745         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
29746         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
29747         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
29748         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
29749         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
29750         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
29751         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
29752         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
29753         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
29754         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
29755         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
29756         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
29757         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
29758         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
29759         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
29760         * sysdeps/unix/sysv/linux/system.c: Likewise.
29761         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
29762         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
29763         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
29764         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
29765         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
29766         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
29767         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
29768
29769         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
29770         * configure: Regenerated.
29771         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
29772
29773         * configure.ac (base_machine): Do not set specially for particular
29774         machines here.
29775         * configure: Regenerated.
29776         * sysdeps/powerpc/preconfigure: Move machine and base_machine
29777         settings from configure.ac.
29778         * sysdeps/i386/preconfigure: New file.
29779         * sysdeps/s390/preconfigure: Likewise.
29780         * sysdeps/sh/preconfigure: Likewise.
29781         * sysdeps/sparc/preconfigure: Likewise.
29782
29783 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29784
29785         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
29786         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
29787         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
29788         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
29789         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
29790         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
29791         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
29792         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
29793         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
29794         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
29795         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
29796         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
29797         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
29798         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
29799         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
29800         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
29801         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
29802         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
29803         * sysdeps/sparc/sparc64/Makefile: ... appended here.
29804
29805         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
29806         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
29807         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
29808         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
29809         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
29810         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
29811         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
29812         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
29813         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
29814         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
29815         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
29816         * sysdeps/sparc/sparc32/sem_post.c: ... here.
29817         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
29818         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
29819         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
29820         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
29821         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
29822         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
29823         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
29824         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
29825         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
29826         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
29827         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
29828         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
29829         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
29830         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
29831         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
29832         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
29833         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
29834         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
29835         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
29836         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
29837         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
29838         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
29839         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
29840         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
29841         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
29842         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
29843
29844         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
29845         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
29846         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
29847         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
29848         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
29849         Moved ...
29850         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
29851         ... here.
29852         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
29853         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
29854         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
29855         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
29856         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
29857         Moved ...
29858         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
29859         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
29860         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
29861         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
29862         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
29863         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
29864         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
29865         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
29866         Moved ...
29867         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
29868         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
29869         Moved ...
29870         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
29871         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
29872         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
29873         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
29874         Moved ...
29875         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
29876         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
29877         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
29878         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
29879         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
29880         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
29881         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
29882         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
29883         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
29884         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
29885         Moved ...
29886         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
29887         ... here.
29888         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
29889         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
29890         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
29891         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
29892         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
29893         Moved ...
29894         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
29895         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
29896         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
29897         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
29898         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
29899         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
29900         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
29901         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
29902         Moved ...
29903         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
29904         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
29905         Moved ...
29906         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
29907         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
29908         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
29909         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
29910         Moved ...
29911         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
29912         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
29913         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
29914         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
29915         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
29916
29917 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29918
29919         * timezone/checktab.awk: Update from tzcode 2014e.
29920         * timezone/private.h: Likewise.
29921         * timezone/tzfile.h: Likewise.
29922         * timezone/zdump.c: Likewise.
29923         * timezone/zic.c: Likewise.
29924
29925         * sysdeps/unix/sysv/linux/kernel-features.h
29926         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
29927         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
29928         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
29929         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
29930         Remove conditional code.
29931
29932 2014-06-25  Will Newton  <will.newton@linaro.org>
29933
29934         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
29935         (_dl_arm_cap_flags): Add HWCAP2 values.
29936         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
29937         (_DL_HWCAP_COUNT): Increase to 37.
29938         (_DL_HWCAP_LAST): New define.
29939         (_DL_HWCAP2_LAST): New define.
29940         (_dl_procinfo): Add support for printing
29941         AT_HWCAP2 entries.
29942         (_dl_string_hwcap): Use _dl_hwcap_string.
29943
29944 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29945
29946         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29947
29948 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29949
29950         * README: Do not mention ports directory.
29951
29952         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
29953         Remove macro.
29954         * sysdeps/unix/sysv/linux/futimes.c: Do not include
29955         <kernel-features.h>.
29956         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
29957         conditional variable definition.
29958         (__futimes): Update comment.
29959         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
29960         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
29961
29962         [BZ #16560]
29963         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
29964         arguments close to 0.
29965         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
29966         Likewise.
29967         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
29968         Likewise.
29969         * math/auto-libm-test-in: Add more tests of exp10.
29970         * math/auto-libm-test-out: Regenerated.
29971         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29972
29973         * sysdeps/unix/sysv/linux/kernel-features.h
29974         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
29975         * sysdeps/unix/sysv/linux/readv.c: Do not include
29976         <kernel-features.h>.
29977         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29978         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29979         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29980         unconditional.
29981         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29982         conditional code.
29983         * sysdeps/unix/sysv/linux/writev.c: Do not include
29984         <kernel-features.h>.
29985         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29986         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29987         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29988         unconditional.
29989         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29990         conditional code.
29991
29992 2014-06-25  Will Newton  <will.newton@linaro.org>
29993
29994         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
29995         comment changes throughout the file.  Remove checks
29996         for HAVE_*_H definitions that are not required.
29997         (__gen_tempname): Call abort if an unknown kind value is
29998         passed.
29999
30000 2014-06-25  Andreas Schwab  <schwab@suse.de>
30001
30002         [BZ #17086]
30003         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
30004         scalbln, scalblnf, scalblnl in libc.
30005
30006 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
30007
30008         [BZ #17086]
30009         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
30010         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30011         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30012
30013 2014-06-24  Roland McGrath  <roland@hack.frob.com>
30014
30015         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
30016         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
30017         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
30018         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
30019         Update #include.
30020         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
30021         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
30022         Update #include.
30023         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
30024         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
30025         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
30026         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
30027         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
30028         * sysdeps/x86/bits/pthreadtypes.h: ... here.
30029         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
30030         * sysdeps/x86/bits/semaphore.h: ... here.
30031         * sysdeps/x86/nptl/elide.h: Moved ...
30032         * sysdeps/x86/elide.h: ... here.
30033         * sysdeps/x86_64/nptl/Implies: File removed.
30034         * sysdeps/i386/nptl/Implies: File removed.
30035
30036 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
30037
30038         [BZ #16539]
30039         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
30040         return the argument for normal arguments with exponent below -64.
30041         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
30042         Likewise.
30043         * math/auto-libm-test-in: Add another test of expm1.
30044         * math/auto-libm-test-out: Regenerated.
30045
30046         [BZ #16287]
30047         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
30048         calling __erfcl for arguments at least 16.
30049         * math/auto-libm-test-in: Add more tests of erf.
30050         * math/auto-libm-test-out: Regenerated.
30051
30052         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
30053         individual architectures.
30054         * sysdeps/unix/sysv/linux/configure: Regenerated.
30055         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
30056         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
30057         * sysdeps/unix/sysv/linux/powerpc/configure.ac
30058         (ldd_rewrite_script): Define variable.
30059         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
30060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
30061         file.
30062         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
30063         generated file.
30064         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
30065         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
30066         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
30067         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
30068         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
30069         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
30070         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
30071         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
30072
30073 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30074
30075         [BZ #17084]
30076         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
30077         Rename member __data.d to __data.__elision_data.
30078
30079 2014-06-24  Wilco  <wdijkstr@arm.com>
30080
30081         * NEWS: Add 16918 to fixed bug list.
30082
30083 2014-06-24  Wilco  <wdijkstr@arm.com>
30084
30085         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
30086
30087 2014-06-24  Wilco  <wdijkstr@arm.com>
30088
30089         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
30090         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
30091         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
30092         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
30093         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
30094         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
30095         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
30096         Use _FPU_MASK_RM.
30097
30098 2014-06-24  Wilco  <wdijkstr@arm.com>
30099
30100         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
30101
30102 2014-06-24  Wilco  <wdijkstr@arm.com>
30103
30104         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
30105         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
30106         * sysdeps/arm/fesetround.c (fesetround): Remove space.
30107         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
30108
30109 2014-06-24  Wilco  <wdijkstr@arm.com>
30110
30111         [BZ #16918]
30112         * sysdeps/arm/feupdateenv.c (feupdateenv):
30113         Rewrite to reduce FPSCR accesses and fix return value.
30114
30115 2014-06-24  Wilco  <wdijkstr@arm.com>
30116
30117         * sysdeps/arm/fclrexcpt.c (feclearexcept):
30118         Optimize to avoid unnecessary FPSCR writes.
30119         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
30120         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
30121         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
30122         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
30123
30124 2014-06-24  Wilco  <wdijkstr@arm.com>
30125
30126         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
30127         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
30128         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
30129         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
30130         Call libc_fetestexcept_vfp.
30131         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
30132         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
30133         __SOFTFP__ ifdef so that they can be built for softfp.
30134
30135 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30136
30137         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
30138         argument type signed char.
30139
30140         * Makerules (check-abi): Dump diff of symlist if the test
30141         fails.
30142
30143 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30144
30145         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
30146         using abort.
30147
30148         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
30149         Remove unused variable ST.
30150
30151 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30152
30153         [BZ #16354]
30154         [BZ #17061]
30155         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
30156         small arguments before calling __expm1.
30157         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
30158         small arguments before calling __expm1f.
30159         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
30160         small arguments before calling __expm1l.
30161         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
30162         Likewise.
30163         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
30164         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
30165         spurious underflow for some cosh tests.
30166         * math/auto-libm-test-out: Regenerated.
30167         * sysdeps/i386/fpu/libm-test-ulps: Update.
30168
30169         [BZ #17050]
30170         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
30171         (__ieee754_y1): Set errno if return value overflows.
30172         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
30173         (__ieee754_y1f): Set errno if return value overflows.
30174         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
30175         (__ieee754_y1l): Set errno if return value overflows.
30176         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
30177         (__ieee754_y1l): Set errno if return value overflows.
30178         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
30179         * math/auto-libm-test-out: Regenerated.
30180
30181         * math/gen-auto-libm-tests.c: Document use of
30182         ignore-zero-inf-sign.
30183         (input_flag_type): Add value flag_ignore_zero_inf_sign.
30184         (input_flags): Add ignore-zero-inf-sign.
30185         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
30186         * math/gen-libm-test.pl (generate_testfile): Handle
30187         ignore-zero-inf-sign.
30188         * math/auto-libm-test-in: Mark some cpow tests with
30189         ignore-zero-inf-sign and some with xfail-rounding.
30190         * math/auto-libm-test-out: Regenerated.
30191         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
30192         * sysdeps/i386/fpu/libm-test-ulps: Update.
30193         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30194
30195         [BZ #16315]
30196         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
30197         overflowing or underflowing operations take place with sign of
30198         result.
30199         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
30200         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
30201         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
30202         (__ieee754_pow): Recompute overflowing and underflowing results in
30203         original rounding mode.
30204         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
30205         (__powl_helper): Allow negative argument X and scale negated value
30206         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
30207         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
30208         overflowing or underflowing operations take place with sign of
30209         result.
30210         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
30211         Include <math.h>.
30212         * math/auto-libm-test-in: Add more tests of pow.
30213         * math/auto-libm-test-out: Regenerated.
30214         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
30215         (pow_tonearest_test_data): Remove.
30216         (pow_test_tonearest): Likewise.
30217         (pow_towardzero_test_data): Likewise.
30218         (pow_test_towardzero): Likewise.
30219         (pow_downward_test_data): Likewise.
30220         (pow_test_downward): Likewise.
30221         (pow_upward_test_data): Likewise.
30222         (pow_test_upward): Likewise.
30223         (main): Don't call removed functions.
30224         * sysdeps/i386/fpu/libm-test-ulps: Update.
30225         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30226
30227 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30228
30229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
30230         Moved ...
30231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
30232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
30233         Moved ...
30234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
30235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
30236         Moved ...
30237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
30238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
30239         Moved ...
30240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
30241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
30242         File removed.
30243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
30244         File removed.
30245         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
30246         File removed.
30247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
30248         File removed.
30249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
30250         File removed.
30251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
30252         File removed.
30253         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
30254         File removed.
30255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
30256         File removed.
30257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
30258         File removed.
30259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
30260         File removed.
30261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
30262         File removed.
30263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
30264         File removed.
30265         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
30266         Moved ...
30267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
30268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
30269         Moved ...
30270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
30271         ... here.
30272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
30273         Moved ...
30274         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
30275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
30276         Moved ...
30277         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
30278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
30279         Moved ...
30280         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
30281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
30282         Moved ...
30283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
30284         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
30285         Moved ...
30286         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
30287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
30288         Moved ...
30289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
30290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
30291         Moved ...
30292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
30293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
30294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
30295         ... here.
30296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
30297         Moved ...
30298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
30299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
30300         Moved ...
30301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
30302         ... here.
30303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
30304         Moved ...
30305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
30306         ... here.
30307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
30308         Moved ...
30309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
30310         ... here.
30311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
30312         Moved ...
30313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
30314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
30315         Moved ...
30316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
30317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
30318         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
30319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
30320         Moved ...
30321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
30322         ... here.
30323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
30324         Moved ...
30325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
30326         ... here.
30327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
30328         Moved ...
30329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
30330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
30331         Moved ...
30332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
30333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
30334         Moved ...
30335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
30336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
30337         Moved ...
30338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
30339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
30340         Moved ...
30341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
30342         ... here.
30343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
30344         Moved ...
30345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
30346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
30347         Moved ...
30348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
30349         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
30350         Moved ...
30351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
30352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
30353         Moved ...
30354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
30355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
30356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
30357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
30358         Moved ...
30359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
30360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
30361         Moved ...
30362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
30363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
30364         Moved ...
30365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
30366         ... here.
30367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
30368         Moved ...
30369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
30370         ... here.
30371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
30372         Moved ...
30373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
30374         ... here.
30375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
30376         Moved ...
30377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
30378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
30379         Moved ...
30380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
30381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
30382         Moved ...
30383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
30384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
30385         Moved ...
30386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
30387         ... here.
30388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
30389         Moved ...
30390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
30391         ... here.
30392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
30393         Moved ...
30394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
30395         ... here.
30396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
30397         Moved ...
30398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
30399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30400         Moved ...
30401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
30402
30403 2014-06-23  Will Newton  <will.newton@linaro.org>
30404             Wilco  <wdijkstr@arm.com>
30405
30406         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
30407         implementation.  Include get-rounding-mode.h.
30408         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
30409         [!libc_feholdsetround_noex_ctx]: Define
30410         libc_feholdsetround_noex_ctx.
30411         [!libc_feholdsetround_noexf_ctx]: Define
30412         libc_feholdsetround_noexf_ctx.
30413         [!libc_feholdsetround_noexl_ctx]: Define
30414         libc_feholdsetround_noexl_ctx.
30415         (libc_feholdsetround_ctx): New function.
30416         (libc_feresetround_ctx): New function.
30417         (libc_feholdsetround_noex_ctx): New function.
30418         (libc_feresetround_noex_ctx): New function.
30419
30420 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30421
30422         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
30423         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
30424         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
30425         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
30426         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
30427         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
30428
30429         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
30430         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
30431         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
30432         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
30433         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
30434         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
30435         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
30436         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
30437         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
30438         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
30439         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
30440         Moved ...
30441         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
30442         ... here.
30443         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
30444         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
30445         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
30446         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
30447         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
30448         Moved ...
30449         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
30450         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
30451         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
30452         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
30453         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
30454         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
30455         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
30456         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
30457         Moved ...
30458         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
30459         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
30460         Moved ...
30461         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
30462         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
30463         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
30464         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
30465         Moved ...
30466         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
30467         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
30468         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
30469         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
30470         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
30471         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
30472         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
30473         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
30474         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
30475         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
30476         Moved ...
30477         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
30478         ... here.
30479         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
30480         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
30481         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
30482         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
30483         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
30484         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
30485         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
30486         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
30487         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
30488         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
30489         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
30490         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
30491         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
30492         Moved ...
30493         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
30494         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
30495         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
30496         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
30497         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
30498         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
30499         Moved ...
30500         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
30501         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
30502         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
30503         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
30504         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
30505
30506         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
30507         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
30508         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
30509         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
30510         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
30511         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
30512         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
30513         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
30514         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
30515         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
30516         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
30517         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
30518         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
30519         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
30520         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
30521         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
30522         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
30523         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
30524         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
30525         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
30526         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
30527         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
30528         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
30529         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
30530         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
30531         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
30532         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
30533         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
30534
30535 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30536
30537         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30538         (FALLOC_FL_COLLAPSE_RANGE): New macro.
30539         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
30540         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
30541         (IPV6_PMTUDISC_INTERFACE): Likewise.
30542         (IPV6_PMTUDISC_OMIT): Likewise.
30543
30544 2014-06-23  Andreas Schwab  <schwab@suse.de>
30545
30546         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
30547         Remove unused errout label.
30548
30549 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30550
30551         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
30552         macro: hardware supports Vector Crypto instructions.
30553
30554 2014-06-23  Will Newton  <will.newton@linaro.org>
30555
30556         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
30557         rather than __builtin_expect.
30558
30559         * elf/dl-lookup.c (undefined_msg): Remove variable.
30560         (_dl_lookup_symbol_x): Replace undefined_msg with string
30561         literal.
30562
30563         * elf/dl-lookup.c (do_lookup_unique): New function.
30564         (do_lookup_x): Move STB_GNU_UNIQUE handling code
30565         to a separate function.
30566
30567 2014-06-23  Andreas Schwab  <schwab@suse.de>
30568
30569         [BZ #17079]
30570         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
30571         before reading the next line.
30572
30573 2014-06-23  Will Newton  <will.newton@linaro.org>
30574
30575         * test-skeleton.c (signal_handler): Use printf and %m
30576         rather than perror.  Use printf rather than fprintf to
30577         stderr.  Use puts rather than fputs to stderr.
30578         (main): Likewise.
30579
30580 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
30581
30582         * nscd/nscd.c (thread_info_t): Remove typedef.
30583         (thread_info): Remove variable.
30584
30585 2014-06-21  Allan McRae  <allan@archlinux.org>
30586
30587         * NEWS: Mention CVE-2014-4043.
30588
30589 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30590
30591         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
30592         * nptl/smp.h: ... here.
30593
30594         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
30595
30596         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
30597         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
30598         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
30599         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
30600
30601         * nptl/allocatestack.c: Include <stack-aliasing.h>.
30602         * nptl/stack-aliasing.h: New file.
30603         * sysdeps/i386/i686/stack-aliasing.h: New file.
30604         * sysdeps/i386/i686/nptl/Makefile: File removed.
30605         * sysdeps/x86_64/stack-aliasing.h: New file.
30606         * sysdeps/x86_64/nptl/Makefile
30607         (CFLAGS-pthread_create.c): Variable removed.
30608
30609         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
30610         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
30611         old file.
30612         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
30613         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
30614         old file.
30615
30616 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
30617
30618         * sysdeps/unix/sysv/linux/arm/kernel-features.h
30619         (__ASSUME_SIGFRAME_V2): Remove macro.
30620         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
30621         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
30622         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
30623         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
30624         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
30625         Declare as function.  Remove conditional macro definitions.
30626         (__default_rt_sa_restorer): Likewise.
30627         (__default_sa_restorer_v1): Remove declaration.
30628         (__default_sa_restorer_v2): Likewise.
30629         (__default_rt_sa_restorer_v1): Likewise.
30630         (__default_rt_sa_restorer_v2): Likewise.
30631         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
30632         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
30633         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
30634
30635 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30636
30637         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
30638         (libpthread-routines): Add sysdep.
30639         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
30640         * sysdeps/unix/sysv/linux/sparc/Versions
30641         (libpthread: GLIBC_2.3.3): New version set.
30642         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
30643         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
30644         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
30645         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
30646         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
30647         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
30648         Moved ...
30649         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
30650         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
30651         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
30652         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
30653         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
30654         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
30655         * sysdeps/sparc/nptl/sem_init.c: ... here.
30656         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
30657         * sysdeps/sparc/nptl/sem_post.c: ... here.
30658         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
30659         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
30660         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
30661         * sysdeps/sparc/nptl/sem_wait.c: ... here.
30662         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
30663         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
30664         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
30665         (libpthread-routines): Add cpu_relax.
30666         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
30667         File removed.
30668         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
30669         (librt: GLIBC_2.3.3): New version set.
30670         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
30671         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
30672         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
30673         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
30674         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
30675         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
30676         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
30677         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
30678         Moved ...
30679         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
30680         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
30681         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
30682         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
30683         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
30684         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
30685         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
30686         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
30687         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
30688         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
30689         Moved ...
30690         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
30691         Update #include.
30692         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
30693         Moved ...
30694         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
30695         Update #include.
30696         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
30697         Moved ...
30698         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
30699         Update #include.
30700         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
30701         Moved ...
30702         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
30703         Update #include.
30704         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
30705         Moved ...
30706         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
30707         Update #include.
30708         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
30709         Moved ...
30710         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
30711         Update #include.
30712         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
30713         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
30714         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
30715         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
30716         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
30717         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
30718         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
30719         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
30720         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
30721         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
30722         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
30723         Moved ...
30724         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
30725         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
30726         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
30727         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
30728         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
30729
30730 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30731
30732         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
30733         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
30734         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
30735         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
30736         * nscd/nscd.c: Likewise.
30737         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
30738         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
30739         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
30740         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
30741
30742         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
30743         <kernel-features.h>.
30744         (init_mq_netlink): Remove conditional have_sock_cloexec
30745         definitions.  Remove code conditional on have_sock_cloexec < 0.
30746         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
30747         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
30748         * sysdeps/unix/sysv/linux/opensock.c: Do not include
30749         <kernel-features.h>.
30750         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
30751         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
30752
30753 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30754
30755         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
30756         Add tests for memset_chk and memset.
30757
30758         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
30759         with AVX2_Usable.
30760
30761 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30762
30763         [BZ #16046]
30764         * elf/tst-dl-iter-static.c: New file.
30765         * elf/Makefile (tests-static): Add tst-dl-iter-static.
30766
30767         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
30768         error.
30769
30770 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30771
30772         * sysdeps/unix/sysv/linux/kernel-features.h
30773         (__ASSUME_F_GETOWN_EX): Remove macro.
30774         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
30775         <kernel-features.h>.
30776         (miss_F_GETOWN_EX): Remove variable or macro.
30777         (do_fcntl): Do not check miss_F_GETOWN_EX.
30778         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
30779
30780         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
30781         Remove macro.
30782         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
30783         [!__ASSUME_AT_RANDOM]: Remove conditional code.
30784         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
30785
30786         * sysdeps/unix/sysv/linux/kernel-features.h
30787         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
30788         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
30789         [ADJ_OFFSET_SS_READ]: Make code unconditional.
30790         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
30791
30792 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30793
30794         [BZ #17075]
30795         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
30796         Fix calculation of the symbol's value.
30797         * sysdeps/arm/tst-armtlsdescloc.c: New file.
30798         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
30799         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
30800         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
30801         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
30802         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
30803         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
30804         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
30805         (modules-names): Add `tst-armtlsdescmod',
30806         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
30807         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
30808         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30809         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
30810         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
30811         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30812         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30813         ($(objpfx)tst-armtlsdescloc): New dependency.
30814         ($(objpfx)tst-armtlsdescextnow): Likewise.
30815         ($(objpfx)tst-armtlsdescextlazy): Likewise.
30816         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
30817         TLS scheme support.
30818         * sysdeps/arm/configure: Regenerate.
30819
30820 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30821
30822         * include/fcntl.h (__atfct_seterrno): Remove prototype.
30823         (__atfct_seterrno_2): Likewise.
30824         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
30825         <kernel-features.h>.
30826         (__ASSUME_ATFCTS): Do not undefine and redefine.
30827         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
30828         (__have_atfcts): Remove conditional definition.
30829         (__fxstatat([__NR_fstatat64]: Make code unconditional.
30830         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
30831         unreachable if [__ASSUME_ATFCTS].
30832         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
30833         not undefine and redefine.
30834         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
30835         <kernel-features.h>.
30836         (faccessat) [__NR_faccessat]: Make code unconditional.
30837         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
30838         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
30839         <kernel-features.h>.
30840         (fchmodat) [__NR_fchmodat]: Make code unconditional.
30841         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30842         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
30843         <kernel-features.h>.
30844         (fchownat) [__NR_fchownat]: Make code unconditional.
30845         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
30846         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
30847         <kernel-features.h>.
30848         (futimesat) [__NR_futimesat]: Make code unconditional.
30849         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
30850         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
30851         <kernel-features.h>.
30852         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30853         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30854         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
30855         <kernel-features.h>.
30856         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
30857         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30858         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
30859         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
30860         <kernel-features.h>.
30861         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
30862         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30863         * sysdeps/unix/sysv/linux/linkat.c: Do not include
30864         <kernel-features.h>.
30865         (linkat) [__NR_linkat]: Make code unconditional.
30866         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30867         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
30868         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
30869         <kernel-features.h>.
30870         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
30871         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30872         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
30873         <kernel-features.h>.
30874         (mkdirat) [__NR_mkdirat]: Make code unconditional.
30875         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
30876         * sysdeps/unix/sysv/linux/openat.c: Do not include
30877         <kernel-features.h>.
30878         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
30879         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
30880         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
30881         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
30882         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
30883         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
30884         <kernel-features.h>.
30885         (readlinkat) [__NR_readlinkat]: Make code unconditional.
30886         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
30887         result of INLINE_SYSCALL directly, not via int variable.
30888         * sysdeps/unix/sysv/linux/renameat.c: Do not include
30889         <kernel-features.h>.
30890         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
30891         (renameat) [__NR_renameat]: Make code unconditional.
30892         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
30893         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
30894         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
30895         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
30896         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
30897         (__ASSUME_ATFCTS): Do not undefine and redefine.
30898         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
30899         <kernel-features.h>.
30900         (symlinkat) [__NR_symlinkat]: Make code unconditional.
30901         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30902         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
30903         <kernel-features.h>.
30904         (unlinkat) [__NR_unlinkat]: Make code unconditional.
30905         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30906         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
30907         (__ASSUME_ATFCTS): Do not undefine and redefine.
30908         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
30909         <kernel-features.h>.
30910         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30911         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30912         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
30913         <kernel-features.h>.
30914         (__xmknodat) [__NR_mknodat]: Make code unconditional.
30915         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30916
30917 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30918
30919         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
30920
30921 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
30922
30923         [BZ #17069]
30924         * posix/regcomp.c (parse_reg_exp): Deallocate partially
30925         constructed tree before returning error.
30926         * posix/bug-regexp36.c: Expand test case.
30927
30928 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
30929
30930         [BZ #6803]
30931         * math/libm-test.inc (scalbln_test_date):
30932         Add errno expectations.
30933         * math/w_scalblnf.c: New File.
30934         Add wrapper which checks for setting errno to ERANGE.
30935         Add weak_alias for corresponding scalbln function.
30936         * math/w_scalbln.c: Likewise.
30937         * math/w_scalblnl.c: Likewise.
30938         * math/Makefile (libm-calls): Add w_scalbln.
30939         * sysdeps/ieee754/flt-32/s_scalblnf.c:
30940         Remove weak_alias for corresponding scalbln function.
30941         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
30942         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
30943         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
30944         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
30945         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
30946         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30947         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
30948         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30949         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
30950         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
30951         Remove long_double_symbol for scalblnl function in libm, libc.
30952         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
30953         Add wrapper which checks for setting errno to ERANGE.
30954         Add long_double_symbol for scalblnl function in libm, libc.
30955         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
30956         Remove long_double_symbol for scalblnl in libm.
30957         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
30958         Add wrapper which checks for setting errno to ERANGE.
30959         Add long_double_symbol for scalblnl function in libm.
30960         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
30961         Do not use wrapper because of own implementation.
30962
30963 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
30964
30965         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
30966         3 bytes for __pad1 for x32.
30967         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
30968
30969 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
30970             H.J. Lu  <hongjiu.lu@intel.com>
30971
30972         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
30973         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
30974         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30975         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30976         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
30977
30978 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
30979
30980         [BZ #17069]
30981         * posix/regcomp.c (parse_expression): Deallocate partially
30982         constructed tree before returning error.
30983         * posix/Makefile.c (tests): Add bug-regex36.
30984         (generated): Add bug-regex36.mtrace.
30985         (tests-special): Add $(objpfx)bug-regex36-mem.out
30986         (bug-regex36-ENV): New variable.
30987         ($(objpfx)bug-regex36-mem.out): New rule.
30988         * posix/bug-regex36.c: New file.
30989
30990 2014-06-19  Will Newton  <will.newton@linaro.org>
30991
30992         * malloc/malloc.c (systrim): If extra is zero then return
30993         early.
30994
30995 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30996
30997         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
30998
30999 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
31000
31001         * sysdeps/aarch64/strchr.S: New file.
31002
31003 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
31004
31005         [BZ #17022]
31006         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
31007         from arguments -2 or below.
31008         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
31009         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
31010
31011 2014-06-18  Andreas Schwab  <schwab@suse.de>
31012
31013         [BZ #17062]
31014         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
31015         of a bracket expr not to run off the end of the string.
31016         * posix/Makefile (tests): Add tst-fnmatch3.
31017         * posix/tst-fnmatch3.c: New file.
31018
31019 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
31020
31021         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
31022         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31023         [$(cross-compiling) = no]: Likewise.
31024         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31025         [$(cross-compiling) = no]: Likewise.
31026
31027 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31028
31029         [BZ #17031]
31030         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
31031         double, adjusted for any remainder from the high double.
31032         * math/libm-test.inc (nearbyint): Add tests.
31033         (rint): Likewise.
31034
31035 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31036
31037         * nptl/sysdeps/powerpc/Makefile: Moved ...
31038         * sysdeps/powerpc/nptl/Makefile: ... here.
31039         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
31040         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
31041         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
31042         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
31043         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
31044         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
31045         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
31046         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
31047         * nptl/sysdeps/powerpc/tls.h: Moved ...
31048         * sysdeps/powerpc/nptl/tls.h: ... here.
31049
31050 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
31051
31052         [BZ #16681]
31053         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
31054         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
31055         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
31056         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
31057         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
31058         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
31059         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
31060         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
31061         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
31062
31063 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
31064
31065         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
31066
31067 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
31068
31069         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
31070         defined operator.
31071
31072         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
31073         $TIMEOUTFACTOR.
31074
31075 2014-06-16  Florian Weimer  <fweimer@redhat.com>
31076
31077         [BZ #17058]
31078         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
31079         non-executed part of the test.
31080
31081 2014-06-16  Andreas Schwab  <schwab@suse.de>
31082
31083         * string/bits/string2.h (strdup, strndup): Update feature guard.
31084
31085 2014-06-14  David S. Miller  <davem@davemloft.net>
31086
31087         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31088
31089 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
31090
31091         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
31092         that was previously under [RESET_PID].
31093         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
31094
31095         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
31096         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
31097         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
31098         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
31099         (__libc_vfork): New strong alias.
31100         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
31101
31102 2014-06-14 Andi Kleen  <ak@linux.intel.com>
31103
31104         * sysdeps/generic/elide.h: New file.
31105
31106 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31107
31108         * Makefile (installed-headers): Adjust path of pthread.h header.
31109
31110 2014-06-13  Roland McGrath  <roland@hack.frob.com>
31111
31112         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
31113         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
31114         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
31115         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
31116
31117         * nptl/sysdeps/s390/Makefile: Moved ...
31118         * sysdeps/s390/nptl/Makefile: ... here.
31119         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
31120         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
31121         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
31122         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
31123         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
31124         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
31125         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
31126         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
31127         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
31128         * sysdeps/s390/nptl/pthreaddef.h: ... here.
31129         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
31130         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
31131         * nptl/sysdeps/s390/tls.h: Moved ...
31132         * sysdeps/s390/nptl/tls.h: ... here.
31133
31134         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
31135         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
31136
31137 2014-06-13  David S. Miller  <davem@davemloft.net>
31138
31139         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
31140         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
31141         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
31142         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
31143         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
31144         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
31145         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
31146         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
31147         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
31148         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
31149         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
31150         Remove RESET_PID cpp guards.
31151         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
31152         Remove RESET_PID cpp guards.
31153         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
31154
31155 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
31156
31157         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
31158         __sp to uintptr_t.
31159
31160 2014-06-13  Andi Kleen  <ak@linux.intel.com>
31161
31162         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
31163         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
31164         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
31165         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
31166         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
31167         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
31168         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
31169         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
31170         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
31171         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
31172         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
31173         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
31174         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
31175         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
31176         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
31177         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
31178         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
31179         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
31180         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
31181         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
31182
31183         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
31184         (pthread_rwlock_rdlock): Add elision.
31185         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
31186         (pthread_rwlock_wrlock): Add elision.
31187         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
31188         (pthread_rwlock_trywrlock): Add elision.
31189         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
31190         (pthread_rwlock_tryrdlock): Add elision.
31191         * nptl/pthread_rwlock_unlock.c: Include elide.h.
31192         (pthread_rwlock_tryrdlock): Add elision unlock.
31193         * nptl/sysdeps/pthread/pthread.h:
31194         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
31195         (PTHREAD_RWLOCK_INITIALIZER,
31196         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
31197         Handle new elision field.
31198         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
31199         * sysdeps/arm/nptl/bits/pthreadtypes.h
31200         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31201         * sysdeps/sh/nptl/bits/pthreadtypes.h
31202         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31203         * sysdeps/tile/nptl/bits/pthreadtypes.h
31204         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31205         * sysdeps/a/nptl/bits/pthreadtypes.h
31206         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31207         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
31208         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31209         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
31210         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31211         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
31212         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31213         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
31214         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31215         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
31216         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31217         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
31218         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31219         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
31220         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31221         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
31222         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31223         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
31224         (elision_init): Set try_xbegin to zero when no RTM.
31225         * sysdeps/x86/nptl/bits/pthreadtypes.h
31226         (pthread_rwlock_t): Change __pad1 to __rwelision.
31227         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31228
31229 2014-06-13  Andi Kleen  <ak@linux.intel.com>
31230
31231         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
31232         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
31233         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
31234         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
31235
31236 2014-06-13  Meador Inge  <meadori@codesourcery.com>
31237
31238         [BZ #16996]
31239         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
31240         that the cached result has been set before returning it.
31241
31242 2014-06-12  Roland McGrath  <roland@hack.frob.com>
31243
31244         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
31245         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
31246         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
31247         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
31248         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
31249         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
31250
31251         * nptl/sysdeps/sparc/Makefile: Moved ...
31252         * sysdeps/sparc/nptl/Makefile: ... here.
31253         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
31254         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
31255         * nptl/sysdeps/sparc/tls.h: Moved ...
31256         * sysdeps/sparc/nptl/tls.h: ... here.
31257         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
31258         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
31259         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
31260         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
31261         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
31262         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
31263         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
31264         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
31265         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
31266         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
31267         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
31268         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
31269         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
31270         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
31271         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
31272         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
31273         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
31274         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
31275         Update #include.
31276         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
31277         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
31278         Update #include.
31279         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
31280         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
31281         Update #include.
31282         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
31283         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
31284         Update #include.
31285
31286         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31287
31288         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
31289         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
31290
31291         * sysdeps/pthread/posix-timer.h: Include <list.h>.
31292         (struct list_links): Type removed.
31293         (struct thread_node, struct timer_node): Replace struct list_links
31294         with struct list_head.
31295         (list_unlink_ip): Likewise.
31296         * sysdeps/pthread/timer_routines.c
31297         (timer_free_list, thread_free_list, thread_active_list): Likewise.
31298         (list_append, list_insbefore): Likewise.
31299         (list_init): Function removed.
31300         (thread_init, init_module): Use INIT_LIST_HEAD instead.
31301         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
31302         * sysdeps/pthread/Makefile: ... here, new file.
31303
31304         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
31305         * sysdeps/nptl/Implies: ... here.
31306         * sysdeps/unix/sysv/linux/Implies: Add nptl.
31307         * nptl/sysdeps/pthread/list.h: Moved ...
31308         * include/list.h: ... here.
31309         * nptl/sysdeps/pthread/createthread.c: Moved ...
31310         * nptl/createthread.c: ... here.
31311         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
31312         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
31313         * nptl/pt-longjmp.c: ... here.
31314         * nptl/sysdeps/pthread/Makefile: Moved ...
31315         * sysdeps/nptl/Makefile: ... here.
31316         * nptl/sysdeps/pthread/Subdirs: Moved ...
31317         * sysdeps/nptl/Subdirs: ... here.
31318         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
31319         * sysdeps/nptl/aio_misc.h: ... here.
31320         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
31321         * sysdeps/nptl/bits/libc-lock.h: ... here.
31322         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
31323         * sysdeps/nptl/bits/libc-lockP.h: ... here.
31324         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
31325         * sysdeps/nptl/bits/stdio-lock.h: ... here.
31326         * nptl/sysdeps/pthread/configure: Moved ...
31327         * sysdeps/nptl/configure: ... here.
31328         * nptl/sysdeps/pthread/configure.ac: Moved ...
31329         * sysdeps/nptl/configure.ac: ... here.
31330         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
31331         * sysdeps/nptl/gai_misc.h: ... here.
31332         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
31333         * sysdeps/nptl/librt-cancellation.c: ... here.
31334         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
31335         * sysdeps/nptl/malloc-machine.h: ... here.
31336         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
31337         * sysdeps/nptl/pthread-functions.h: ... here.
31338         * nptl/sysdeps/pthread/pthread.h: Moved ...
31339         * sysdeps/nptl/pthread.h: ... here.
31340         * nptl/sysdeps/pthread/setxid.h: Moved ...
31341         * sysdeps/nptl/setxid.h: ... here.
31342         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
31343         * sysdeps/nptl/sigfillset.c: ... here.
31344         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
31345         * sysdeps/nptl/tcb-offsets.h: ... here.
31346         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
31347         * sysdeps/nptl/tst-mqueue8x.c: ... here.
31348         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
31349         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
31350         * nptl/sysdeps/pthread/allocalim.h: Moved ...
31351         * sysdeps/pthread/allocalim.h: ... here.
31352         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
31353         * sysdeps/pthread/bits/sigthread.h: ... here.
31354         * nptl/sysdeps/pthread/flockfile.c: Moved ...
31355         * sysdeps/pthread/flockfile.c: ... here.
31356         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
31357         * sysdeps/pthread/ftrylockfile.c: ... here.
31358         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
31359         * sysdeps/pthread/funlockfile.c: ... here.
31360         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
31361         * sysdeps/pthread/posix-timer.h: ... here.
31362         * nptl/sysdeps/pthread/timer_create.c: Moved ...
31363         * sysdeps/pthread/timer_create.c: ... here.
31364         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
31365         * sysdeps/pthread/timer_delete.c: ... here.
31366         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
31367         * sysdeps/pthread/timer_getoverr.c: ... here.
31368         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
31369         * sysdeps/pthread/timer_gettime.c: ... here.
31370         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
31371         * sysdeps/pthread/timer_routines.c: ... here.
31372         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
31373         * sysdeps/pthread/timer_settime.c: ... here.
31374         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
31375         * sysdeps/pthread/tst-timer.c: ... here.
31376         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
31377         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
31378
31379         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
31380         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
31381
31382         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
31383         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
31384         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
31385         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
31386         Update #include target.
31387         * nptl/sysdeps/i386/i686/Makefile: Moved ...
31388         * sysdeps/i386/i686/nptl/Makefile: ... here.
31389         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
31390         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
31391         Update #include target.
31392         * nptl/sysdeps/i386/i686/tls.h: Moved ...
31393         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
31394         * nptl/sysdeps/i386/Makefile: Moved ...
31395         * sysdeps/i386/nptl/Makefile: ... here.
31396         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
31397         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
31398         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
31399         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
31400         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
31401         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
31402         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
31403         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
31404         * sysdeps/i386/nptl/pthreaddef.h: ... here.
31405         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
31406         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
31407         * nptl/sysdeps/i386/tls.h: Moved ...
31408         * sysdeps/i386/nptl/tls.h: ... here.
31409
31410         * sysdeps/sh/Makefile [$(subdir) = csu]
31411         (gen-as-const-headers): Add tcb-offsets.sym.
31412         * nptl/sysdeps/sh/Makefile: File removed.
31413         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
31414         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
31415         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
31416         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
31417         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
31418         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
31419         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
31420         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
31421         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
31422         * sysdeps/sh/nptl/pthreaddef.h: ... here.
31423         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
31424         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
31425         * nptl/sysdeps/sh/tls.h: Moved ...
31426         * sysdeps/sh/nptl/tls.h: ... here.
31427         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
31428         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
31429         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
31430         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
31431         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
31432         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
31433         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
31434         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
31435         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
31436         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
31437         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
31438         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
31439         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
31440         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
31441         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
31442         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
31443         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
31444         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
31445         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
31446         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
31447         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
31448         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
31449         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
31450         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
31451         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
31452         Moved ...
31453         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
31454         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
31455         Moved ...
31456         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
31457         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
31458         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
31459         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
31460         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
31461         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
31462         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
31463         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
31464         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
31465         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
31466         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
31467         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
31468         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
31469         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
31470         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
31471         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
31472         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
31473         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
31474         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
31475
31476 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
31477
31478         * posix/spawn_faction_addopen.c: Include string.h.
31479
31480 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31481
31482         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
31483         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
31484         * nptl/sysdeps/x86_64/Makefile: Moved ...
31485         * sysdeps/x86_64/nptl/Makefile: ... here.
31486         * nptl/sysdeps/x86_64/configure: Moved ...
31487         * sysdeps/x86_64/nptl/configure: ... here.
31488         * nptl/sysdeps/x86_64/configure.ac: Moved ...
31489         * sysdeps/x86_64/nptl/configure.ac: ... here.
31490         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
31491         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
31492         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
31493         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
31494         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
31495         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
31496         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
31497         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
31498         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
31499         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
31500         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
31501         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
31502         * nptl/sysdeps/x86_64/tls.h: Moved ...
31503         * sysdeps/x86_64/nptl/tls.h: ... here.
31504         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
31505         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
31506         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
31507         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
31508
31509         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
31510
31511 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31512
31513         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31514
31515 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
31516
31517         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
31518         type.
31519         [POSIX] (off_t): Likewise.
31520         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
31521         [POSIX] (S_ISBLK): Require macro.
31522         [POSIX] (S_ISCHR): Likewise.
31523         [POSIX] (S_ISDIR): Likewise.
31524         [POSIX] (S_ISFIFO): Likewise.
31525         [POSIX] (S_ISREG): Likewise.
31526         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
31527         optional-macro.
31528         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
31529         type.
31530         [POSIX] (time_t): Likewise.
31531         [POSIX] (timer_t): Likewise.
31532
31533 2014-06-11  Florian Weimer  <fweimer@redhat.com>
31534
31535         [BZ #17048]
31536         * posix/spawn_int.h (struct __spawn_action): Make the path string
31537         non-const to support deallocation.
31538         * posix/spawn_faction_addopen.c
31539         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
31540         * posix/spawn_faction_destroy.c
31541         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
31542         path in all spawn_do_open actions.
31543         * posix/tst-spawn.c (do_test): Exercise the copy operation in
31544         posix_spawn_file_actions_addopen.
31545
31546 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
31547
31548         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
31549         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
31550         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
31551         conditional code always true.
31552         (__libc_vfork): New alias.
31553
31554 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31555
31556         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31557         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
31558
31559         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
31560
31561         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31562         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
31563
31564         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31565         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
31566
31567         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31568         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
31569
31570 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
31571
31572         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
31573         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
31574         multiarch strcmp for PPC64.
31575         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
31576         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
31577         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
31578         multiarch optimizations.
31579         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
31580         (__libc_ifunc_impl_list): Likewise.
31581
31582 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
31583
31584         * benchtests/scripts/validate_benchout.py: New script.
31585         * benchtests/Makefile (bench-func): Call it.
31586         * benchtests/scripts/benchout.schema.json: New file.
31587
31588 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
31589
31590         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
31591         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
31592         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
31593         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
31594         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
31595         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
31596         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
31597         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
31598         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
31599         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
31600         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
31601         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
31602         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
31603         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
31604         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
31605         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
31606         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
31607         Moved ...
31608         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
31609         ... here.
31610         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
31611         Moved ...
31612         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
31613         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
31614         Moved ...
31615         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
31616         ... here.
31617         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
31618         Moved ...
31619         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
31620         ... here.
31621         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
31622         Moved ...
31623         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
31624         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
31625         Moved ...
31626         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
31627         ... here.
31628         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
31629         Moved ...
31630         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
31631         ... here.
31632         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
31633         Moved ...
31634         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
31635         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
31636         Moved ...
31637         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
31638         ... here.
31639         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
31640         Moved ...
31641         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
31642         ... here.
31643         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
31644         Moved ...
31645         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
31646         ... here.
31647         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
31648         Moved ...
31649         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
31650         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
31651         Moved ...
31652         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
31653         ... here.
31654         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
31655         Moved ...
31656         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
31657         ... here.
31658         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
31659         Moved ...
31660         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
31661         ... here.
31662         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
31663         Moved ...
31664         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
31665         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
31666         Moved ...
31667         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
31668         ... here.
31669         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
31670         Moved ...
31671         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
31672         ... here.
31673         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
31674         Moved ...
31675         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
31676         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
31677         Moved ...
31678         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
31679         ... here.
31680         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
31681         Moved ...
31682         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
31683         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
31684         Moved ...
31685         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
31686         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
31687         Moved ...
31688         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
31689         ... here.
31690         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
31691         Moved ...
31692         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
31693         ... here.
31694         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
31695         Moved ...
31696         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
31697         ... here.
31698         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
31699         Moved ...
31700         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
31701         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
31702         Moved ...
31703         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
31704         ... here.
31705         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
31706         Moved ...
31707         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
31708         ... here.
31709         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
31710         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
31711         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
31712         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
31713         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
31714         Moved ...
31715         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
31716         ... here.
31717         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
31718         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
31719         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
31720         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
31721         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
31722         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
31723         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
31724         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
31725         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
31726         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
31727         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
31728         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
31729         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
31730         Moved ...
31731         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
31732         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
31733         Moved ...
31734         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
31735         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
31736         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
31737         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
31738         Moved ...
31739         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
31740         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
31741         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
31742         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
31743         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
31744         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
31745         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
31746
31747 2014-06-10  Wilco  <wdijkstr@arm.com>
31748
31749         * math/test-fenv-return.c: New file.
31750         * math/Makefile: Add new test test-fenv-return.
31751
31752 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
31753
31754         [BZ #17042]
31755         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
31756         when x - 1 is zero.
31757         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
31758         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
31759         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
31760         0.0L for an argument of 1.0L.
31761         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
31762         Likewise.
31763         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
31764         value when x - 1 is zero.
31765         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
31766         * sysdeps/i386/fpu/libm-test-ulps: Update.
31767         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31768
31769 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
31770
31771         [BZ #15119]
31772         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
31773
31774 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31775
31776         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
31777         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
31778
31779 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31780
31781         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31782         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
31783
31784         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31785         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
31786
31787         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31788         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
31789
31790         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31791         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
31792
31793         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
31794         if not already defined.
31795         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
31796         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
31797         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
31798         (TLS_INIT_TP): Use it.
31799         (TLS_DEFINE_INIT_TP): New macro.
31800         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
31801
31802 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
31803
31804         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
31805         constant.
31806         [POSIX] (IXANY): Likewise.
31807         [POSIX] (OLCUC): Likewise.
31808         [POSIX || POSIX2008] (CBAUD): Do not allow.
31809         [POSIX || POSIX2008] (DEFECHO): Likewise.
31810         [POSIX || POSIX2008] (ECHOCTL): Likewise.
31811         [POSIX || POSIX2008] (ECHOKE): Likewise.
31812         [POSIX || POSIX2008] (ECHOPRT): Likewise.
31813         [POSIX || POSIX2008] (EXTA): Likewise.
31814         [POSIX || POSIX2008] (EXTB): Likewise.
31815         [POSIX || POSIX2008] (FLUSHO): Likewise.
31816         [POSIX || POSIX2008] (LOBLK): Likewise.
31817         [POSIX || POSIX2008] (PENDIN): Likewise.
31818         [POSIX || POSIX2008] (SWTCH): Likewise.
31819         [POSIX || POSIX2008] (VDISCARD): Likewise.
31820         [POSIX || POSIX2008] (VDSUSP): Likewise.
31821         [POSIX || POSIX2008] (VLNEXT): Likewise.
31822         [POSIX || POSIX2008] (VREPRINT): Likewise.
31823         [POSIX || POSIX2008] (VSTATUS): Likewise.
31824         [POSIX || POSIX2008] (VWERASE): Likewise.
31825         (B*): Change to B[0123456789]*.
31826         * conform/data/time.h-data [POSIX || UNIX98]
31827         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
31828         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31829         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
31830         [POSIX] (tm_*): Do not allow.
31831
31832 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
31833
31834         * Makefile (install): Don't set LANGUAGE.
31835         * Makefile.in (install): Likewise.
31836         * assert/Makefile (test-assert-ENV): Remove variable.
31837         (test-assert-perr-ENV): Likewise.
31838         * elf/Makefile (neededtest4-ENV): Likewise.
31839         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31840         [$(cross-compiling) = no]: Don't set LANGUAGE.
31841         * io/ftwtest-sh (LANG): Remove variable.
31842         * libio/Makefile (tst-widetext-ENV): Likewise.
31843         * manual/install.texi (Running make install): Don't refer to
31844         environment settings for make install.
31845         * INSTALL: Regenerated.
31846         * nptl/tst-tls6.sh: Don't set LANG.
31847         * posix/globtest.sh (LANG): Remove variable.
31848         * string/Makefile (tester-ENV): Likewise.
31849         (inl-tester-ENV): Likewise.
31850         (noinl-tester-ENV): Likewise.
31851         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31852         [$(cross-compiling) = no]: Don't set LANGUAGE.
31853         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
31854         without explicit environment settings.
31855
31856 2014-06-06  Roland McGrath  <roland@hack.frob.com>
31857
31858         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
31859         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
31860         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
31861         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
31862
31863 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
31864
31865         * crypt/crypt-private.h [DOS]: Add some includes taken from the
31866         other files in the crypt directory.
31867         * crypt/crypt.c: Remove duplicate includes.
31868         * crypt/crypt-entry.c: Likewise.
31869         * crypt/crypt_util.c: Likewise.
31870
31871 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
31872
31873         * Makeconfig (run-program-env): New variable.
31874         (run-program-prefix-before-env): Likewise.
31875         (run-program-prefix-after-env): Likewise.
31876         (run-program-prefix): Define in terms of new variables.
31877         (built-program-cmd-before-env): New variable.
31878         (built-program-cmd-after-env): Likewise.
31879         (built-program-cmd): Define in terms of new variables.
31880         (test-program-prefix-before-env): New variable.
31881         (test-program-prefix-after-env): Likewise.
31882         (test-program-prefix): Define in terms of new variables.
31883         (test-program-cmd-before-env): New variable.
31884         (test-program-cmd-after-env): Likewise.
31885         (test-program-cmd): Define in terms of new variables.
31886         * Rules (make-test-out): Use $(run-program-env).
31887         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
31888         (help): Do not mention environment variables.  Mention
31889         --timeoutfactor option.
31890         (timeoutfactor): New variable.
31891         (blacklist_exports): Remove function.
31892         (exports): Remove variable.
31893         (command): Do not include ${exports}.
31894         * manual/install.texi (Configuring and compiling): Do not mention
31895         test wrappers preserving environment variables.  Mention that last
31896         assignment to a variable must take precedence.
31897         * INSTALL: Regenerated.
31898         * benchtests/Makefile (run-bench): Use $(run-program-env).
31899         * catgets/Makefile ($(objpfx)test1.cat): Use
31900         $(built-program-cmd-before-env), $(run-program-env) and
31901         $(built-program-cmd-after-env).
31902         ($(objpfx)test2.cat): Do not specify environment variables
31903         explicitly.
31904         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
31905         $(run-program-env) and $(built-program-cmd-after-env).
31906         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
31907         $(run-program-env) and $(test-program-cmd-after-env).
31908         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
31909         explicitly.
31910         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
31911         run_program_env and test_program_cmd_after_env arguments.
31912         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
31913         * elf/tst-pathopt.sh: Use run_program_env argument.
31914         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
31915         $(test-wrapper-env) and $(run-program-env).
31916         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
31917         run_program_env arguments.
31918         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
31919         * intl/Makefile ($(objpfx)tst-gettext.out): Use
31920         $(test-program-prefix-before-env), $(run-program-env) and
31921         $(test-program-prefix-after-env).
31922         ($(objpfx)tst-gettext2.out): Likewise.
31923         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
31924         run_program_env and test_program_prefix_after_env arguments.
31925         * intl/tst-gettext2.sh: Likewise.
31926         * intl/tst-gettext4.sh: Do not set environment variables
31927         explicitly.
31928         * intl/tst-gettext6.sh: Likewise.
31929         * intl/tst-translit.sh: Likewise.
31930         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
31931         $(test-program-prefix-before-env), $(run-program-env) and
31932         $(test-program-prefix-after-env).
31933         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
31934         run_program_env and test_program_prefix_after_env arguments.
31935         * math/Makefile (run-regen-ulps): Use $(run-program-env).
31936         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
31937         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
31938         explicitly with each use of ${test_wrapper_env}.
31939         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
31940         $(test-program-prefix-before-env), $(run-program-env) and
31941         $(test-program-prefix-after-env).
31942         * posix/tst-getconf.sh: Do not set environment variables
31943         explicitly.
31944         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
31945         run_program_env and test_program_prefix_after_env arguments.
31946         * stdio-common/tst-printf.sh: Do not set environment variables
31947         explicitly.
31948         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
31949         $(test-program-prefix-before-env), $(run-program-env) and
31950         $(test-program-prefix-after-env).
31951         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
31952         run_program_env and test_program_prefix_after_env arguments.
31953         Split $test calls into $test_pre and $test.
31954         * timezone/Makefile (build-testdata): Use
31955         $(built-program-cmd-before-env), $(run-program-env) and
31956         $(built-program-cmd-after-env).
31957
31958 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31959
31960         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
31961         strlen for non SHARED builds.
31962
31963 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
31964
31965         * nptl/allocatestack.c (check_list): Inlined function...
31966         (__reclaim_stacks): ... here.
31967
31968 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31969
31970         [BZ #15698]
31971         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
31972         memory overrun.
31973
31974 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
31975
31976         * Rules (make-test-out): Include
31977         LOCPATH=$(common-objpfx)localedata in default environment.
31978         * debug/Makefile (tst-chk1-ENV): Remove variable.
31979         (tst-chk2-ENV): Likewise.
31980         (tst-chk3-ENV): Likewise.
31981         (tst-chk4-ENV): Likewise.
31982         (tst-chk5-ENV): Likewise.
31983         (tst-chk6-ENV): Likewise.
31984         (tst-lfschk1-ENV): Likewise.
31985         (tst-lfschk2-ENV): Likewise.
31986         (tst-lfschk3-ENV): Likewise.
31987         (tst-lfschk4-ENV): Likewise.
31988         (tst-lfschk5-ENV): Likewise.
31989         (tst-lfschk6-ENV): Likewise.
31990         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
31991         (tst-iconv7-ENV): Likewise.
31992         * intl/Makefile (LOCPATH-ENV): Likewise.
31993         (tst-codeset-ENV): Likewise.
31994         (tst-gettext3-ENV): Likewise.
31995         (tst-gettext5-ENV): Likewise.
31996         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
31997         (tst-fopenloc-ENV): Likewise.
31998         (tst-fgetws-ENV): Remove variable.
31999         (tst-ungetwc1-ENV): Likewise.
32000         (tst-ungetwc2-ENV): Likewise.
32001         (bug-ungetwc2-ENV): Likewise.
32002         (tst-swscanf-ENV): Likewise.
32003         (bug-ftell-ENV): Likewise.
32004         (tst-fgetwc-ENV): Likewise.
32005         (tst-fseek-ENV): Likewise.
32006         (tst-ftell-partial-wide-ENV): Likewise.
32007         (tst-ftell-active-handler-ENV): Likewise.
32008         (tst-ftell-append-ENV): Likewise.
32009         * posix/Makefile (tst-fnmatch-ENV): Likewise.
32010         (tst-regexloc-ENV): Likewise.
32011         (bug-regex1-ENV): Likewise.
32012         (tst-regex-ENV): Likewise.
32013         (tst-regex2-ENV): Likewise.
32014         (bug-regex5-ENV): Likewise.
32015         (bug-regex6-ENV): Likewise.
32016         (bug-regex17-ENV): Likewise.
32017         (bug-regex18-ENV): Likewise.
32018         (bug-regex19-ENV): Likewise.
32019         (bug-regex20-ENV): Likewise.
32020         (bug-regex22-ENV): Likewise.
32021         (bug-regex23-ENV): Likewise.
32022         (bug-regex25-ENV): Likewise.
32023         (bug-regex26-ENV): Likewise.
32024         (bug-regex30-ENV): Likewise.
32025         (bug-regex32-ENV): Likewise.
32026         (bug-regex33-ENV): Likewise.
32027         (bug-regex34-ENV): Likewise.
32028         (bug-regex35-ENV): Likewise.
32029         (tst-rxspencer-ENV): Likewise.
32030         (tst-rxspencer-no-utf8-ENV): Likewise.
32031         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
32032         (tst-sscanf-ENV): Likewise.
32033         (tst-swprintf-ENV): Likewise.
32034         (tst-swscanf-ENV): Likewise.
32035         (test-vfprintf-ENV): Likewise.
32036         (scanf13-ENV): Likewise.
32037         (bug14-ENV): Likewise.
32038         (tst-grouping-ENV): Likewise.
32039         * stdlib/Makefile (tst-strtod-ENV): Likewise.
32040         (tst-strtod3-ENV): Likewise.
32041         (tst-strtod4-ENV): Likewise.
32042         (tst-strtod5-ENV): Likewise.
32043         (testmb2-ENV): Likewise./
32044         * string/Makefile (tst-strxfrm-ENV): Likewise.
32045         (tst-strxfrm2-ENV): Likewise.
32046         (bug-strcoll1-ENV): Likewise.
32047         (test-strcasecmp-ENV): Likewise.
32048         (test-strncasecmp-ENV): Likewise.
32049         * time/Makefile (tst-strptime-ENV): Likewise.
32050         (tst-ftime_l-ENV): Likewise.
32051         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
32052         (tst-mbrtowc-ENV): Likewise.
32053         (tst-wcrtomb-ENV): Likewise.
32054         (tst-mbrtowc2-ENV): Likewise.
32055         (tst-c16c32-1-ENV): Likewise.
32056         (tst-mbsnrtowcs-ENV): Likewise.
32057
32058 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
32059
32060         * manual/resource.texi (How to get information about the memory
32061         subsystem?): Fix typo.
32062         Reported by Peon de la Parra Ivan <peon@keba.com>
32063
32064 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
32065
32066         [BZ #16882]
32067         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
32068         (pthread_spin_lock): Branch out of spin loop to proper location.
32069         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
32070         (pthread_spin_lock): Likewise.
32071
32072         * nptl/tst-spin4.c: New test.
32073         * nptl/Makefile (tests): Add tst-spin4.
32074
32075 2014-06-03  Andreas Schwab  <schwab@suse.de>
32076
32077         [BZ #15946]
32078         * resolv/res_send.c (send_dg): Reload file descriptor after
32079         calling reopen.
32080
32081 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
32082
32083         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
32084
32085 2014-06-03  Richard Henderson  <rth@redhat.com>
32086
32087         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
32088         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
32089         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
32090         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
32091         in the SAVE_PID block.
32092         (__libc_vfork): New alias.
32093         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
32094
32095         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
32096         child in registers, not on the stack.  Remove RESET_PID conditionals.
32097         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
32098
32099 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32100
32101         * sysdeps/aarch64/libm-test-ulps: Regenerate.
32102
32103 2014-06-03  Wilco  <wdijkstr@arm.com>
32104
32105         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
32106         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
32107         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
32108         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
32109         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
32110         Likewise.
32111
32112 2014-06-03  Wilco  <wdijkstr@arm.com>
32113
32114         * sysdeps/aarch64/fpu/math_private.h
32115         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
32116         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
32117         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
32118         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
32119         Fix declarations.
32120
32121 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32122
32123         * crypt/crypt-private.h: Include ufc-crypt.h.
32124         (__b64_from_24bit): Declare extern.
32125         * crypt/crypt_util.c(__b64_from_24bit): New function.
32126         (b64t): New static const variable.
32127         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
32128         (b64t): Remove variable.
32129         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
32130         * crypt/sha256-crypt.c: Include crypt-private.h.
32131         (b64t): Remove variable.
32132         (__sha256_crypt_r): Remove b64_from_24bit and replace
32133         with __b64_from_24bit.
32134         * crypt/sha512-crypt.c: Likewise.
32135
32136 2014-06-02  Roland McGrath  <roland@hack.frob.com>
32137
32138         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
32139         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
32140         Label the code __libc_vfork rather than __vfork.
32141         [!NOT_IN_libc] (vfork): Define as weak alias.
32142         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
32143         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
32144         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
32145
32146 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
32147
32148         * malloc/malloc.c (malloc_info): Fix format specifier for
32149         n_mmaps.
32150
32151 2014-06-02  Wilco  <wdijkstr@arm.com>
32152
32153         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
32154         FPCR write.
32155
32156 2014-06-02  Wilco  <wdijkstr@arm.com>
32157
32158         [BZ #17009]
32159         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
32160         Rewrite to reduce FPCR/FPSR accesses.
32161
32162 2014-06-01  David S. Miller  <davem@davemloft.net>
32163
32164         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32165
32166 2014-05-31  David S. Miller  <davem@davemloft.net>
32167
32168         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
32169         to occur in round to nearest mode when |x| >= 2.0
32170
32171 2014-05-30  Richard Henderson  <rth@twiddle.net>
32172
32173         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
32174         (PSEUDO_RET_NOERRNO): Remove.
32175         (ret): Don't redefine.
32176         (ret_NOERRNO): Define in terms of ret.
32177         (ret_ERRVAL): Likewise.
32178
32179         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
32180         use of PSEUDO_RET; perform the error check directly.
32181
32182 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
32183
32184         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
32185         with __int128_t.
32186
32187 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
32188
32189         * malloc/malloc (malloc_info): Fix formatting.
32190
32191 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
32192             Roland McGrath  <roland@hack.frob.com>
32193
32194         * malloc/malloc (malloc_info): Also print mmapped statistics.
32195
32196 2014-05-30  Roland McGrath  <roland@hack.frob.com>
32197
32198         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
32199         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
32200
32201 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
32202
32203         * malloc/malloc.c (malloc_info): Inline mi_arena.
32204
32205 2014-05-29  Richard Henderson  <rth@twiddle.net>
32206
32207         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
32208         Remove comma before expanding ASM_ARGS_##nr.
32209         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
32210         Make _x0 a strict output; make _x8 a strict input; adjust expansion
32211         of ASM_ARGS_##nr.
32212         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
32213         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
32214         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
32215         (ASM_ARGS_1): Add leading comma.
32216
32217         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
32218         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
32219         to __errno_location.
32220         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
32221         Remove the expected plt for __errno_location.
32222
32223         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32224         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
32225         call to __read_tp.
32226
32227         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32228         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
32229         it and break it down.
32230         (DOCARGS_0, DOCARGS_1): Do nothing.
32231         (DOCARGS_2): Update to store into the new stack frame.
32232         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
32233         (UNDOCARGS_1): Update to restore from the new stack frame.
32234         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
32235         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
32236
32237         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32238         (SINGLE_THREAD_P): New parameter for result regno.
32239         (PSEUDO): Update to match; use cbz instead of beq.
32240
32241         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32242         Use ENTRY to define the _nocancel entry point.  Share the syscall
32243         and syscall error check paths with the cancel path.
32244         (PSEUDO_END): New.
32245
32246         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
32247         whitespace; tabs before and after asm mnemonics.
32248
32249 2014-05-29  Eric Wong  <normalperson@yhbt.net>
32250
32251         [BZ #15132]
32252         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
32253         Call fstat64 or stat64 internally, depending on arguments passed.
32254         Replace stat buffer argument with file descriptor argument.
32255         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
32256         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
32257         Pass fd to __internal_statvfs instead of calling fstat64.
32258         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
32259         Pass fd to __internal_statvfs64 instead of calling fstat64.
32260         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
32261         Pass -1 to __internal_statvfs instead of calling stat64.
32262         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
32263         Pass -1 to __internal_statvfs64 instead of calling stat64.
32264
32265 2014-05-28  Roland McGrath  <roland@hack.frob.com>
32266
32267         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
32268         that was previously under [RESET_PID].
32269         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
32270
32271         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
32272         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
32273
32274 2014-05-27  Roland McGrath  <roland@hack.frob.com>
32275
32276         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
32277
32278         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
32279         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
32280
32281 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
32282
32283         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
32284
32285 2014-05-27  Andreas Schwab  <schwab@suse.de>
32286
32287         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
32288         TLS_INIT_TP macro.
32289         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
32290         * elf/rtld.c (init_tls, dl_main): Likewise.
32291         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
32292         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
32293         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
32294         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
32295         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
32296         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
32297         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
32298         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
32299         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
32300         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
32301         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
32302         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
32303         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
32304         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
32305         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
32306         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
32307         * sysdeps/generic/tls.h: Update description.
32308
32309 2014-05-27  Will Newton  <will.newton@linaro.org>
32310
32311         [BZ #16990]
32312         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
32313         and restore r2 rather than just restoring.
32314
32315 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
32316
32317         [BZ #16724]
32318         * libio/tst-ftell-append.c: New test case.
32319         * libio/Makefile (tests): Add test case.
32320         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
32321         append mode.
32322         * libio/wfileops.c (do_ftell_wide): Likewise.
32323
32324 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32325
32326         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32327
32328         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
32329         ...
32330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
32331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
32332         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
32333         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
32334         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
32335         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
32336         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
32337         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
32338         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
32339         Moved ...
32340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
32341         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
32342         Moved ...
32343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
32344         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
32345         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
32346         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
32347         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
32348         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
32349         ...
32350         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
32351         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
32352         Moved ...
32353         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
32354         here.
32355         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
32356         ...
32357         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
32358         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
32359         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
32360
32361         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
32362         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
32363         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
32364         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
32365
32366         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
32367         merge into ...
32368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
32369         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
32370         ...
32371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
32372         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
32373         ...
32374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
32375         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32376         Moved ...
32377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
32378         here.
32379         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32380         Moved ...
32381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
32382         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32383         Moved ...
32384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
32385
32386         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
32387         conditional [RESET_PID].
32388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
32389         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
32390         removed.
32391         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
32392         removed.
32393
32394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
32395         <tcb-offsets.h>.
32396         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32397         (__libc_vfork): New strong alias.
32398         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
32399         removed.
32400         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
32401         Removed.
32402
32403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
32404         <tcb-offsets.h>.
32405         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
32406         (__libc_vfork): New strong alias.
32407         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
32408         removed.
32409         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
32410         removed.
32411
32412 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
32413
32414         * malloc/malloc.c (mi_arena): New function.
32415         (malloc_info): Remove nested function mi_arena. Call non-nosted
32416         function mi_arena.
32417
32418 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32419
32420         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
32421         by insrwi.
32422         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32423         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32424         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
32425         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
32426         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
32427         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
32428         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
32429
32430 2014-05-26  Andreas Schwab  <schwab@suse.de>
32431
32432         [BZ #16984]
32433         * locale/programs/repertoire.c (repertoire_read): Add slash
32434         between I18NPATH element and file name.
32435         * locale/programs/locfile.c (locfile_read): Likewise.
32436
32437 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32438
32439         * nptl/pthread_mutexattr_settype.c
32440         (__pthread_mutexattr_settype):
32441         Disable lock elision for PTHREAD_MUTEX_NORMAL.
32442
32443 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32444
32445         * nptl/tst-mutex5 (do_test):
32446         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
32447
32448 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32449
32450         * benchtests/README: Document 'init' directive.
32451         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
32452         BENCH_INIT.
32453         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
32454         (parse_file): Recognize 'init' directive.
32455
32456 2014-05-26  Kyle McMartin  <kyle@redhat.com>
32457
32458         [BZ #16796]
32459         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
32460         alignment of struct pthread.
32461
32462 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32463
32464         [BZ #16878]
32465         * nscd/netgroupcache.c (addgetnetgrentX): Look for
32466         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32467         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
32468         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32469
32470 2014-05-25  Richard Henderson  <rth@twiddle.net>
32471
32472         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32473         (SINGLE_THREAD_P_PIC): Remove.
32474         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
32475         (SINGLE_THREAD_P_PIC): Remove.
32476
32477         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
32478         branch to syscall error ...
32479         (PSEUDO): ... here.
32480         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
32481         from __local_syscall_error to .Lsyscall_error.
32482         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
32483         (SYSCALL_ERROR): Update label name.
32484
32485         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32486         Do not use DOARGS/UNDOARGS.
32487         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
32488         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
32489         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
32490         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
32491         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
32492
32493         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
32494         block comment.
32495
32496         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
32497         define if !NOT_IN_libc.
32498         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
32499         define with non-default symbol versions.
32500
32501 2014-05-23  Richard Henderson  <rth@twiddle.net>
32502
32503         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
32504         (vfork, __vfork): Define via compat_symbol.
32505
32506         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
32507         [!HAVE_IFUNC] (vfork_compat): Remove.
32508         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
32509
32510 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32511
32512         [BZ #16978]
32513         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
32514         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
32515         variable.
32516
32517 2014-05-23  Richard Henderson  <rth@twiddle.net>
32518
32519         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
32520         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
32521         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
32522         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
32523
32524         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
32525         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
32526         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
32527         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
32528         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
32529         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
32530         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
32531         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
32532         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
32533         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
32534         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
32535         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
32536         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
32537         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
32538         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
32539         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
32540         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
32541         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
32542         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
32543         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
32544         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
32545         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
32546         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
32547         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
32548         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
32549         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
32550         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
32551         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
32552         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
32553         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
32554         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
32555         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
32556         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
32557         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
32558         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
32559         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
32560         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
32561         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
32562         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
32563         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
32564         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
32565         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
32566         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
32567         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
32568         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
32569         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
32570         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
32571         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
32572         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
32573         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
32574         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
32575         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
32576         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
32577         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
32578         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
32579         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
32580
32581         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
32582         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
32583         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
32584         before exiting on error.
32585         (__libc_vfork): New strong alias.
32586         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
32587         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
32588
32589         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
32590         that was previously under [RESET_PID].
32591         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
32592
32593         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
32594
32595 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32596
32597         [BZ #16977]
32598         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
32599         value when x - 1 is zero.
32600         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
32601         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
32602         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
32603         0.0L for an argument of 1.0L.
32604         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
32605         Likewise.
32606         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
32607         value when x - 1 is zero.
32608         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
32609         * sysdeps/i386/fpu/libm-test-ulps: Update.
32610         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32611
32612 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
32613
32614         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
32615         alphasort and versionsort.
32616
32617 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32618
32619         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
32620         macro.
32621         [copysignf]: Likewise.
32622
32623 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
32624
32625         * crypt/md5-crypt.c: Fix formatting.
32626
32627 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32628
32629         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
32630         (b64_from_24bit): New function.
32631
32632 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32633
32634         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
32635         libc_hidden_builtin_def to ifunc.
32636         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
32637         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
32638
32639 2014-05-21  Roland McGrath  <roland@hack.frob.com>
32640
32641         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
32642         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
32643
32644 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
32645
32646         * nscd/Depend (linuxthreads): Remove.
32647         (nptl): Add.
32648         * resolv/Depend (linuxthreads): Remove.
32649         * rt/Depend (linuxthreads): Remove.
32650
32651         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
32652         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
32653         $(common-objpfx)elf/.
32654         (link-libc-before-gnulib): Likewise.
32655         (elfobjdir): Remove variable.
32656         * Makefile (install): Use $(elf-objpfx) instead of
32657         $(common-objpfx)elf/.
32658         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
32659         $(elfobjdir)/.
32660         (link-libc-deps): Likewise.
32661         ($(common-objpfx)libc.so): Likewise.
32662         ($(common-objpfx)linkobj/libc.so): Likewise.
32663         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
32664         instead of $(common-objpfx)elf/.
32665         (symbolic-link-list): Likewise.
32666         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
32667         [$(cross-compiling) = no]: Likewise.
32668         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
32669         $(elfobjdir)/.
32670         (static-gnulib-arch): Likewise.
32671         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
32672         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
32673         $(common-objpfx)elf/.
32674
32675 2014-05-21  Richard Henderson  <rth@redhat.com>
32676
32677         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32678         (SINGLE_THREAD_P): Use the correct width load.  Fold
32679         into the ldr offset.
32680
32681         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
32682         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
32683
32684 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
32685
32686         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
32687         (libgcc_s_resume): Use __attribute_used__.
32688         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
32689         Likewise.
32690
32691 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32692
32693         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
32694         optimization when used with float constants.
32695
32696         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32697
32698 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
32699
32700         [BZ #16915]
32701         * locale/nl_langinfo_l.c: Make direct reference to every
32702         _nl_current_CATEGORY symbol.
32703         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
32704         (tests-static): Add tst-langinfo-static.
32705         (tests-special): Add tst-langinfo-static.out.
32706         ($(objpfx)tst-langinfo.out): Redirect output.
32707         ($(objpfx)tst-langinfo-static.out): New.
32708         * localedata/tst-langinfo.sh: Send output to stdout.
32709         * localedata/tst-langinfo-static.c: New file.
32710
32711         [BZ #16965]
32712         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
32713         when the shift amount is modulo the limb size.
32714
32715 2014-05-20  Richard Henderson  <rth@redhat.com>
32716
32717         [BZ #16967]
32718         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
32719         Change type of sa_flags from unsigned int to int.
32720
32721         [BZ #16966]
32722         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
32723
32724         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
32725
32726 2014-05-20  Will Newton  <will.newton@linaro.org>
32727
32728         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32729         Test the return value of the system call in the nocancel case.
32730
32731 2014-05-20  Will Newton  <will.newton@linaro.org>
32732             Yvan Roux  <yvan.roux@linaro.org>
32733
32734         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
32735         #include of asm/ptrace.h.
32736         (PTRACE_GET_THREAD_AREA): Remove #undef.
32737         (PTRACE_GETHBPREGS): Likewise.
32738         (PTRACE_SETHBPREGS): Likewise.
32739         (struct user_regs_struct): New structure.
32740         (struct user_fpsimd_struct): New structure.
32741         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
32742         #include of asm/ptrace.h and second #include of sys/user.h.
32743         (PTRACE_GET_THREAD_AREA): Remove #undef.
32744         (PTRACE_GETHBPREGS): Likewise.
32745         (PTRACE_SETHBPREGS): Likewise.
32746         (ELF_NGREG): Use new struct user_regs_struct.
32747         (elf_fpregset_t): Use new struct user_fpsimd_struct.
32748
32749 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32750
32751         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
32752         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
32753
32754 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
32755
32756         [BZ #16958]
32757         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
32758         membar to avoid block loads/stores to overlap previous stores.
32759
32760 2014-05-17  Richard Henderson  <rth@redhat.com>
32761
32762         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
32763         Create the __##syscall_name##_nocancel entry point.
32764         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
32765         Remove; let the sysdep-cancel.h code create it.
32766
32767 2014-05-17  David S. Miller  <davem@davemloft.net>
32768
32769         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
32770         Protect with __USE_GNU.
32771         (TIOCSET_TEMPT): Likewise.
32772         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
32773         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
32774         these are already provided in bits/ioctl-types.h
32775
32776 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32777
32778         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
32779         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
32780
32781         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
32782         Use wait4 regardless of [__NR_waitpid].
32783
32784 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
32785
32786         PR libgcc/60166
32787         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
32788         (_FP_NANSIGN_Q): Set the quiet bit.
32789
32790 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
32791
32792         * benchtests/Makefile
32793         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
32794         not $(common-objpfx)math/libm.so.
32795         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
32796         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
32797         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
32798         $(common-objpfx)dlfcn/libdl.so.
32799         ($(objpfx)tst-audit8): Depend on $(libm), not
32800         $(common-objpfx)math/libm.so.
32801         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
32802         not $(common-objpfx)dlfcn/libdl.so.
32803         * math/Makefile
32804         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
32805         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
32806         [$(build-shared) = yes].
32807         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
32808         $(common-objpfx)nptl/libpthread.so.
32809         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
32810         $(common-objpfx)math/libm.so$(libm.so-version) or
32811         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
32812         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
32813         $(common-objpfx)dlfcn/libdl.so.
32814         * setjmp/Makefile (link-libm): Remove variable.
32815         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
32816         * stdio-common/Makefile (link-libm): Remove variable.
32817         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
32818         * stdlib/Makefile (link-libm): Remove variable.
32819         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
32820         ($(objpfx)tst-strtod-round): Likewise.
32821         ($(objpfx)tst-tininess): Likewise.
32822         ($(objpfx)tst-strtod-underflow): Likewise.
32823         ($(objpfx)tst-strtod6): Likewise.
32824         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
32825         $(libdl), not $(common-objpfx)nptl/libpthread.so and
32826         $(common-objpfx)dlfcn/libdl.so.
32827
32828 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32829
32830         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
32831         BSD terminal modes definitions.
32832
32833 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32834
32835         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
32836         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
32837
32838         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
32839         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
32840         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
32841         Don't do #include_next.
32842         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
32843         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
32844         Don't do #include_next.
32845         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
32846         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
32847         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
32848         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
32849
32850 2014-05-16  Allan McRae  <allan@archlinux.org>
32851
32852         * po/sv.po: Update Swedish translation from translation project.
32853
32854         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
32855         in sed expression.
32856
32857 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
32858
32859         [BZ #16917]
32860         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
32861         errno if the TIOCGPTN ioctl fails with an error different than
32862         EINVAL.
32863         * login/tst-ptsname.c: New file.
32864         * login/Makefile (tests): Add tst-ptsname.
32865
32866         [BZ #16943]
32867         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
32868         and prlimit64.
32869
32870 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32871
32872         [BZ #16849]
32873         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
32874         herrno to return EAI_AGAIN.
32875
32876 2014-05-14  Roland McGrath  <roland@hack.frob.com>
32877
32878         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
32879         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
32880         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
32881         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
32882         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
32883         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
32884         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
32885         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
32886         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
32887         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
32888         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
32889         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
32890         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
32891         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
32892         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
32893         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
32894         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
32895         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
32896         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
32897         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
32898         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
32899         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
32900         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
32901         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
32902         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
32903         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
32904         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
32905         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
32906         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
32907         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
32908         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
32909         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
32910         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
32911         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
32912         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
32913         Moved ...
32914         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
32915         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
32916         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
32917         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
32918         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
32919         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
32920         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
32921         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
32922         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
32923         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
32924         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
32925         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
32926         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
32927         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
32928         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
32929         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
32930         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
32931         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
32932         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
32933         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
32934         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
32935         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
32936         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
32937         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
32938         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
32939         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
32940         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
32941         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
32942         Moved ...
32943         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
32944         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
32945         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
32946         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
32947         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
32948         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
32949         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
32950         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
32951         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
32952         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
32953         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
32954         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
32955         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
32956         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
32957         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
32958         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
32959         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
32960         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
32961         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
32962         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
32963         Moved ...
32964         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
32965         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
32966         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
32967
32968         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
32969         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
32970         (libpthread-sysdep_routines): Add elision-related stuff here instead.
32971         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
32972         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
32973         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
32974         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
32975         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
32976         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
32977         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
32978         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
32979         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
32980         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
32981         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
32982         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
32983         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
32984         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
32985         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
32986         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
32987         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
32988         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
32989         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
32990         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
32991         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
32992         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
32993         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
32994         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
32995         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
32996         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
32997         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
32998         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
32999
33000         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
33001         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
33002
33003         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
33004         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
33005         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
33006         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
33007         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
33008         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
33009         Moved ...
33010         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
33011         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
33012         Moved ...
33013         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
33014         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
33015         Moved ...
33016         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
33017         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
33018         Moved ...
33019         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
33020         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
33021         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
33022         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
33023         Moved ...
33024         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
33025         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
33026         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
33027         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
33028         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
33029         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
33030         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
33031         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
33032         Moved ...
33033         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
33034         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
33035         Moved ...
33036         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
33037         ... here.
33038         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
33039         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
33040         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
33041         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
33042         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
33043         Moved ...
33044         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
33045         ... here.
33046         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
33047         Moved ...
33048         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
33049         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
33050         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
33051         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
33052         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
33053         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
33054         Moved ...
33055         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
33056         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
33057         Moved ...
33058         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
33059         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
33060         Moved ...
33061         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
33062         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
33063         Moved ...
33064         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
33065         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
33066         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
33067         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
33068         Moved ...
33069         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
33070         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
33071         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
33072         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
33073         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
33074         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
33075         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
33076         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
33077         Moved ...
33078         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
33079         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
33080         Moved ...
33081         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
33082         ... here.
33083         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
33084         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
33085         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
33086         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
33087         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
33088         Moved ...
33089         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
33090         ... here.
33091         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
33092         Moved ...
33093         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
33094         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
33095         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
33096         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
33097         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
33098         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
33099         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
33100         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
33101         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
33102         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
33103         Moved ...
33104         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
33105         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
33106         Moved ...
33107         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
33108         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
33109         Moved ...
33110         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
33111         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
33112         Moved ...
33113         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
33114         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
33115         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
33116         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
33117         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
33118         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
33119         Moved ...
33120         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
33121         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
33122         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
33123         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
33124         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
33125         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
33126         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
33127         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
33128         Moved ...
33129         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
33130         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
33131         Moved ...
33132         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
33133         ... here.
33134         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
33135         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
33136         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
33137         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
33138         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
33139         Moved ...
33140         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
33141         ... here.
33142         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
33143         Moved ...
33144         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
33145         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
33146         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
33147         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
33148         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
33149         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
33150         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
33151         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
33152         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
33153         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
33154         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
33155
33156         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
33157         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
33158
33159         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
33160         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
33161
33162         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
33163         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
33164         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
33165         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
33166         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
33167         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
33168         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
33169         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
33170         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
33171         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
33172         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
33173         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
33174         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
33175         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
33176         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
33177         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
33178         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
33179         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
33180         Moved ...
33181         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
33182         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
33183         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
33184         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
33185         Moved ...
33186         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
33187         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
33188         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
33189         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
33190         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
33191         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
33192         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
33193         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
33194         Moved ...
33195         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
33196         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
33197         Moved ...
33198         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
33199         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
33200         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
33201         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
33202         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
33203         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
33204         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
33205         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
33206         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
33207         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
33208         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
33209         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
33210         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
33211         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
33212         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
33213         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
33214         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
33215
33216         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
33217         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
33218         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
33219         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
33220         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
33221
33222         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
33223         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
33224         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
33225         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
33226         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
33227         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
33228         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
33229         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
33230         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
33231         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
33232
33233         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
33234         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
33235
33236         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
33237         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
33238         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
33239         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
33240         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
33241         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
33242         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
33243         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
33244         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
33245         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
33246         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
33247         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
33248         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
33249         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
33250         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
33251         Update #include.
33252         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
33253         Likewise.
33254         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
33255         Likewise.
33256         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
33257         Likewise.
33258         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
33259         Likewise.
33260         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
33261         Likewise.
33262         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
33263         Likewise.
33264         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
33265         Likewise.
33266         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
33267         Likewise.
33268         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
33269         Likewise.
33270         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
33271         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
33272         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
33273         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
33274         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
33275         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
33276         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
33277         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
33278         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
33279         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
33280         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
33281         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
33282         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
33283         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
33284         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
33285
33286         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
33287         that was previously under [RESET_PID].
33288         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
33289         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
33290         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
33291
33292         * sysdeps/i386/nptl/Implies: New file.
33293         * sysdeps/x86_64/nptl/Implies: New file.
33294         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
33295         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
33296         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
33297         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
33298
33299         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
33300         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33301         (__libc_vfork): New strong alias.
33302         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
33303         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
33304
33305         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
33306         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33307         (__libc_vfork): New strong alias.
33308         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
33309         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
33310
33311         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
33312         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33313         (__libc_vfork): New strong alias.
33314         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
33315         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
33316         * nptl/pt-vfork.c: New file.
33317         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
33318         (libpthread: GLIBC_2.20): New version set (empty).
33319
33320 2014-05-14  Will Newton  <will.newton@linaro.org>
33321
33322         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
33323         rather than #if.
33324
33325 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33326
33327         [BZ #16564]
33328         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
33329         arguments with exponent 65 or above.
33330         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
33331         arguments 0x1p113L or above.
33332         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
33333         to arguments 0x1p107L or above.
33334         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
33335         positive arguments with exponent 65 or above.
33336         * math/auto-libm-test-in: Add more tests of log1p.
33337         * math/auto-libm-test-out: Regenerated.
33338
33339         [BZ #16928]
33340         * math/s_cacos.c (__cacos): Ensure zero real part of result from
33341         non-finite arguments is +0.
33342         * math/s_cacosf.c (__cacosf): Likewise.
33343         * math/s_cacosl.c (__cacosl): Likewise.
33344         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
33345         * sysdeps/i386/fpu/libm-test-ulps: Update.
33346         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33347
33348         [BZ #16927]
33349         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
33350         value.
33351         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
33352         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
33353         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
33354         for explicit high bit of mantissa when testing for argument equal
33355         to 1.
33356         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
33357         * sysdeps/i386/fpu/libm-test-ulps: Update.
33358         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33359
33360         [BZ #16516]
33361         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
33362         (__erf): Scale by 16 instead of 8 in potentially underflowing
33363         case.  Ensure exception if result actually underflows.
33364         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
33365         (__erff): Scale by 16 instead of 8 in potentially underflowing
33366         case.  Ensure exception if result actually underflows.
33367         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
33368         (efx8): Remove variable.
33369         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33370         case.  Ensure exception if result actually underflows.
33371         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
33372         (efx8): Remove variable.
33373         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33374         case.  Ensure exception if result actually underflows.
33375         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
33376         (efx8): Remove variable.
33377         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33378         case.  Ensure exception if result actually underflows.
33379         * math/auto-libm-test-in: Add more tests of erf.
33380         * math/auto-libm-test-out: Regenerated.
33381
33382 2014-05-14  Andreas Schwab  <schwab@suse.de>
33383
33384         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
33385         Remove code conditionalized on USE___THREAD.
33386
33387         * config.h.in (HAVE_PT_CHOWN): Define as 0.
33388         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
33389         not definedness.
33390
33391 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33392
33393         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
33394         Define unconditionally.
33395         (__ASSUME_O_CLOEXEC): Likewise.
33396         (__ASSUME_SOCK_CLOEXEC): Likewise.
33397         (__ASSUME_IN_NONBLOCK): Likewise.
33398         (__ASSUME_PIPE2): Likewise.
33399         (__ASSUME_EVENTFD2): Likewise.
33400         (__ASSUME_SIGNALFD4): Likewise.
33401         (__ASSUME_DUP3): Likewise.
33402         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
33403         (__ASSUME_DUP3): Do not define.
33404         (__ASSUME_EVENTFD2): Likewise.
33405         (__ASSUME_IN_NONBLOCK): Likewise.
33406         (__ASSUME_O_CLOEXEC): Likewise.
33407         (__ASSUME_PIPE2): Likewise.
33408         (__ASSUME_SIGNALFD4): Likewise.
33409         (__ASSUME_SOCK_CLOEXEC): Likewise.
33410         (__ASSUME_UTIMES): Undefine.
33411         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33412         (__ASSUME_UTIMES): Do not define.
33413         (__ASSUME_O_CLOEXEC): Likewise.
33414         (__ASSUME_SOCK_CLOEXEC): Likewise.
33415         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
33416         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
33417         0x020621].
33418         (__ASSUME_PIPE2): Likewise.
33419         (__ASSUME_EVENTFD2): Likewise.
33420         (__ASSUME_SIGNALFD4): Likewise.
33421         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
33422         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
33423         Do not define.
33424         (__ASSUME_EVENTFD2): Likewise.
33425         (__ASSUME_SIGNALFD4): Likewise.
33426         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33427         (__ASSUME_32BITUIDS): Likewise.
33428         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
33429         (__ASSUME_IPC64): Likewise.
33430         (__ASSUME_ST_INO_64_BIT): Likewise.
33431         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
33432         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
33433         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33434         (__ASSUME_UTIMES): Do not define.
33435         (__ASSUME_PSELECT): Likewise.
33436         (__ASSUME_PPOLL): Likewise.
33437         (__ASSUME_O_CLOEXEC): Likewise.
33438         (__ASSUME_SOCK_CLOEXEC): Likewise.
33439         (__ASSUME_IN_NONBLOCK): Likewise.
33440         (__ASSUME_PIPE2): Likewise.
33441         (__ASSUME_EVENTFD2): Likewise.
33442         (__ASSUME_SIGNALFD4): Likewise.
33443         (__ASSUME_DUP3): Likewise.
33444         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33445         (__ASSUME_UTIMES): Likewise.
33446         (__ASSUME_O_CLOEXEC): Likewise.
33447         (__ASSUME_SOCK_CLOEXEC): Likewise.
33448         (__ASSUME_IN_NONBLOCK): Likewise.
33449         (__ASSUME_PIPE2): Likewise.
33450         (__ASSUME_EVENTFD2): Likewise.
33451         (__ASSUME_SIGNALFD4): Likewise.
33452         (__ASSUME_DUP3): Likewise.
33453         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33454         (__ASSUME_UTIMES): Likewise.
33455         (__ASSUME_O_CLOEXEC): Likewise.
33456         (__ASSUME_SOCK_CLOEXEC): Likewise.
33457         (__ASSUME_IN_NONBLOCK): Likewise.
33458         (__ASSUME_PIPE2): Likewise.
33459         (__ASSUME_EVENTFD2): Likewise.
33460         (__ASSUME_SIGNALFD4): Likewise.
33461         (__ASSUME_DUP3): Likewise.
33462         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
33463         Likewise.
33464         (__ASSUME_UTIMES): Likewise.
33465         (__ASSUME_EVENTFD2): Likewise.
33466         (__ASSUME_SIGNALFD4): Likewise.
33467         * sysdeps/unix/sysv/linux/tile/kernel-features.h
33468         (__ASSUME_O_CLOEXEC): Likewise.
33469         (__ASSUME_SOCK_CLOEXEC): Likewise.
33470         (__ASSUME_IN_NONBLOCK): Likewise.
33471         (__ASSUME_PIPE2): Likewise.
33472         (__ASSUME_EVENTFD2): Likewise.
33473         (__ASSUME_SIGNALFD4): Likewise.
33474         (__ASSUME_DUP3): Likewise.
33475         (__ASSUME_UTIMES): Undefine.
33476
33477         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
33478         feclearexcept.  Remove symbol versioning code.
33479         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
33480         symbol versioning code.
33481         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
33482         symbol versioning code.
33483         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
33484         feupdateenv.  Remove symbol versioning code.
33485         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
33486         fegetexceptflag.  Remove symbol versioning code.
33487         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
33488         fesetexceptflag.  Remove symbol versioning code.
33489         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
33490         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
33491         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
33492         (__posix_fadvise64_l32): Remove prototype.
33493         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
33494         code.
33495
33496 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33497
33498         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
33499         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
33500         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
33501         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
33502
33503 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
33504
33505         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
33506         current working directory
33507
33508 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33509
33510         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
33511         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
33512         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
33513         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
33514         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
33515         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
33516         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
33517         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
33518         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
33519         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
33520         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
33521         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
33522         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
33523         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
33524         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
33525         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
33526         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
33527         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
33528         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
33529         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
33530         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
33531         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
33532         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
33533         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
33534         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
33535         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
33536         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
33537         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
33538         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
33539         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
33540         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
33541         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
33542         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
33543         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
33544         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
33545         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
33546         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
33547         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
33548         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
33549         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
33550         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
33551         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
33552
33553         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
33554         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
33555
33556         * sysdeps/unix/sysv/linux/arm/Makefile
33557         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
33558         Add rt-aeabi_unwind_cpp_pr1.
33559         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
33560         Add nptl-aeabi_unwind_cpp_pr1.
33561         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
33562         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
33563         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
33564         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
33565         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
33566         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
33567
33568         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
33569         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
33570         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
33571         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
33572
33573         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
33574         Deconditionalize the code that was previously under [RESET_PID].
33575         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
33576
33577         * sysdeps/generic/exit-thread.h: New file.
33578         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
33579         * include/unistd.h (__exit_thread): Remove declaration.
33580         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
33581         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
33582         * csu/libc-start.c: Include <exit-thread.h>.
33583         (LIBC_START_MAIN): Pass no argument to __exit_thread.
33584         * nptl/pthread_create.c: Include <exit-thread.h>.
33585         (start_thread): Call __exit_thread in place of __exit_thread_inline.
33586         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
33587         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
33588         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
33589         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
33590         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
33591         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
33592         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
33593         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
33594         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
33595         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
33596         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
33597         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
33598         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
33599         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
33600         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
33601         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
33602
33603 2014-05-13  Andreas Schwab  <schwab@suse.de>
33604
33605         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
33606
33607 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
33608
33609         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
33610         (__ASSUME_UTIMES): Do not condition on kernel version.
33611         (__ASSUME_PSELECT): Define unconditionally.
33612         (__ASSUME_PPOLL): Likewise.
33613         (__ASSUME_ATFCTS): Likewise.
33614         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
33615         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
33616         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
33617         (__ASSUME_UTIMENSAT): Define unconditionally.
33618         (__ASSUME_PRIVATE_FUTEX): Likewise.
33619         (__ASSUME_FALLOCATE): Likewise.
33620         (__ASSUME_O_CLOEXEC): Likewise.
33621         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
33622         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
33623         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
33624         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
33625         (__ASSUME_IN_NONBLOCK): Likewise.
33626         (__ASSUME_PIPE2): Likewise.
33627         (__ASSUME_EVENTFD2): Likewise.
33628         (__ASSUME_SIGNALFD4): Likewise.
33629         (__ASSUME_DUP3): Likewise.
33630         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33631         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
33632         (__ASSUME_AT_RANDOM): Likewise.
33633         (__ASSUME_PREADV): Likewise.
33634         (__ASSUME_PWRITEV): Likewise.
33635         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
33636         (__ASSUME_F_GETOWN_EX): Define unconditionally.
33637         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
33638         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
33639         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
33640         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33641         (__ASSUME_O_CLOEXEC): Define unconditionally.
33642         (__ASSUME_PSELECT): Do not undefine conditionally.
33643         (__ASSUME_PPOLL): Likewise.
33644         (__ASSUME_ATFCTS): Likewise.
33645         (__ASSUME_SET_ROBUST_LIST): Likewise.
33646         (__ASSUME_UTIMENSAT): Likewise.
33647         (__ASSUME_FDATASYNC): Define unconditionally.
33648         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33649         (__ASSUME_SIGFRAME_V2): Likewise.
33650         )__ASSUME_EVENTFD2): Likewise.
33651         (__ASSUME_SIGNALFD4): Likewise.
33652         (__ASSUME_PSELECT): Do not undefine conditionally.
33653         (__ASSUME_PPOLL): Likewise.
33654         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33655         (__ASSUME_PSELECT): Define unconditionally.
33656         (__ASSUME_PPOLL): Likewise.
33657         (__ASSUME_O_CLOEXEC): Likewise.
33658         (__ASSUME_SOCK_CLOEXEC): Likewise.
33659         (__ASSUME_IN_NONBLOCK): Likewise.
33660         (__ASSUME_PIPE2): Likewise.
33661         (__ASSUME_EVENTFD2): Likewise.
33662         (__ASSUME_SIGNALFD4): Likewise.
33663         (__ASSUME_DUP3): Likewise.
33664         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33665         (__ASSUME_O_CLOEXEC): Likewise.
33666         (__ASSUME_SOCK_CLOEXEC): Likewise.
33667         (__ASSUME_IN_NONBLOCK): Likewise.
33668         (__ASSUME_PIPE2): Likewise.
33669         (__ASSUME_EVENTFD2): Likewise.
33670         (__ASSUME_SIGNALFD4): Likewise.
33671         (__ASSUME_DUP3): Likewise.
33672         * sysdeps/unix/sysv/linux/mips/kernel-features.h
33673         (__ASSUME_EVENTFD2): Likewise.
33674         (__ASSUME_SIGNALFD4): Likewise.
33675         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33676
33677 2014-05-12  Andreas Schwab  <schwab@suse.de>
33678
33679         [BZ #16932]
33680         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
33681         (_nss_nis_gethostbyname4_r): Return error if item length is larger
33682         than maximum RPC packet size.
33683         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
33684         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
33685         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
33686         (_nss_nis_getservbyport_r): Likewise.
33687
33688 2014-05-12  Will Newton  <will.newton@linaro.org>
33689
33690         * malloc/Makefile (tests): Add tst-mallopt.
33691         * malloc/tst-mallopt.c: New file.
33692
33693 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33694
33695         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
33696         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
33697
33698 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33699
33700         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
33701         (tst-tlsmod6.so): Likewise.
33702
33703 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33704
33705         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
33706
33707 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
33708
33709         [BZ #16064]
33710         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
33711         and <dl-procinfo.h>.
33712         (__fegetenv): Save SSE state in envp->__eip if supported.
33713         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
33714         envp->__eip if supported.
33715         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
33716         and <dl-procinfo.h>.
33717         (__fesetenv): Always set __eip, __cs_selector, __opcode,
33718         __data_offset and __data_selector in environment to 0.  Set SSE
33719         state if supported.
33720         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
33721         test-fenv-sse.
33722         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
33723         -mfpmath=sse.
33724         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
33725
33726 2014-05-09  Will Newton  <will.newton@linaro.org>
33727
33728         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
33729         and libc_relro_required for ARM.
33730         * sysdeps/arm/preconfigure: Regenerate.
33731
33732 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33733             Stefan Liebler  <stli@linux.vnet.ibm.com>
33734
33735         * config.make.in (enable-lock-elision): New Makefile variable.
33736         * configure.ac: Likewise.
33737         * configure: Regenerate.
33738         * sysdeps/s390/configure.ac:
33739         Add check for gcc transactions support.
33740         * sysdeps/s390/configure: Regenerate.
33741         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
33742         Build elision files if enabled.
33743         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
33744         Add lock elision support for s390.
33745         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
33746         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
33747         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
33748         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
33749         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
33750         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
33751         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
33752         Likewise.
33753         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
33754         Likewise.
33755         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
33756         Likewise.
33757         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
33758         Likewise.
33759         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
33760         (__lll_timedlock_elision, __lll_lock_elision)
33761         (__lll_unlock_elision, __lll_trylock_elision)
33762         (lll_timedlock_elision, lll_lock_elision)
33763         (lll_unlock_elision, lll_trylock_elision): Add.
33764         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33765         (pthread_mutex_t): Add lock elision support for s390.
33766
33767 2014-05-14  Wilco  <wdijkstr@arm.com>
33768
33769         * sysdeps/arm/fclrexcpt.c: Cleanup.
33770         * sysdeps/arm/fedisblxcpt.c: Cleanup.
33771         * sysdeps/arm/feenablxcpt.c: Cleanup.
33772         * sysdeps/arm/fegetenv.c: Cleanup.
33773         * sysdeps/arm/fegetexcept.c: Cleanup.
33774         * sysdeps/arm/fegetround.c: Cleanup.
33775         * sysdeps/arm/feholdexcpt.c: Cleanup.
33776         * sysdeps/arm/fesetenv.c: Cleanup.
33777         * sysdeps/arm/fesetround.c: Cleanup.
33778         * sysdeps/arm/feupdateenv.c: Cleanup.
33779         * sysdeps/arm/fgetexcptflg.c: Cleanup.
33780         * sysdeps/arm/fraiseexcpt.c: Cleanup.
33781         * sysdeps/arm/fsetexcptflg.c: Cleanup.
33782         * sysdeps/arm/ftestexcept.c: Cleanup.
33783         * sysdeps/arm/get-rounding-mode.h: Cleanup.
33784         * sysdeps/arm/setfpucw.c: Cleanup.
33785
33786 2014-05-09  Will Newton  <will.newton@linaro.org>
33787
33788         * sysdeps/arm/armv7/strcmp.S: New file.
33789         * NEWS: Mention addition of ARMv7 optimized strcmp.
33790
33791 2014-05-08  Roland McGrath  <roland@hack.frob.com>
33792
33793         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
33794         look for %.ac rather than %.in.
33795
33796         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
33797         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
33798         * sysdeps/mach/hurd/configure: Regenerated.
33799         * sysdeps/unix/sysv/linux/configure: Regenerated.
33800
33801         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
33802
33803 2014-05-07  Steve Ellcey  <sellcey@mips.com>
33804
33805         [BZ# 16922]
33806         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
33807         (LONG_SUB): Ditto.
33808         (PTR_SUB): Ditto.
33809
33810 2014-05-07  Andreas Schwab  <schwab@suse.de>
33811
33812         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
33813         when skipping over non-matching result from nscd.
33814
33815 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
33816
33817         [BZ #16876]
33818         * nptl/sockperf.c (client): Check socket return value.
33819
33820         [BZ #16877]
33821         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
33822         nscd security class.
33823
33824 2014-05-06  Roland McGrath  <roland@hack.frob.com>
33825
33826         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
33827         * sysdeps/arm/unwind.h: ... here.
33828
33829 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
33830
33831         [BZ# 16916]
33832         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
33833         Define.
33834
33835 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
33836
33837         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
33838         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
33839         multiarch strncpy for PPC64.
33840         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
33841         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
33842         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
33843         multiarch optimizations.
33844         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
33845         (__libc_ifunc_impl_list): Likewise.
33846         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
33847         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
33848         multiarch stpncpy for PPC64.
33849         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
33850         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
33851
33852 2014-05-06  Andreas Schwab  <schwab@suse.de>
33853
33854         [BZ #16912]
33855         * gmon/mcount.c (_MCOUNT_DECL): Use
33856         atomic_compare_and_exchange_bool_acq instead of
33857         catomic_compare_and_exchange_bool_acq.
33858
33859 2014-05-05  Roland McGrath  <roland@hack.frob.com>
33860
33861         * elf/Makefile (others, install-bin): Remove pldd.
33862         (pldd-modules): Variable removed.
33863         ($(objpfx)pldd): Target removed.
33864         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
33865         (others, install-bin): Append pldd here.
33866         ($(objpfx)pldd): New target.
33867
33868         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
33869         to 0, so the first #if test emitted later doesn't see it undefined.
33870         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
33871         * sysdeps/gnu/errlist.c: Regenerated.
33872
33873 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33874
33875         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
33876         [libc_hidden_builtin_def]: Define to empty value.
33877         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
33878         [libc_hidden_builtin_def]: Likewise.
33879         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
33880         [libc_hidden_builtin_def]: Likewise.
33881         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
33882         [libc_hidden_builtin_def]: Likewise.
33883         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
33884         __redirect_memcpy and define ifunc as default hidden symbol.
33885         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
33886         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
33887
33888 2014-05-04  Adam Conrad  <adconrad@0c3.net>
33889
33890         * locale/iso-4217.def: Reintroduce XDR currency.
33891
33892 2014-05-04  Allan McRae  <allan@archlinux.org>
33893
33894         * po/eo.po: Update Esperanto translation from translation project.
33895
33896 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
33897
33898         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
33899         and FEATURE_INDEX_MAX to 1.
33900         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
33901
33902 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33903
33904         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
33905         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
33906         * iconvdata/big5.c (ONE_DIRECTION): Define.
33907         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
33908         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
33909         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
33910         * iconvdata/cp932.c (ONE_DIRECTION): Define.
33911         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
33912         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
33913         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
33914         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
33915         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
33916         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
33917         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
33918         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
33919         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
33920         * iconvdata/gbk.c (ONE_DIRECTION): Define.
33921         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
33922         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
33923         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
33924         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
33925         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
33926         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
33927         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
33928         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
33929         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
33930         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
33931         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
33932         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
33933         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
33934         * iconvdata/iso646.c (ONE_DIRECTION): Define.
33935         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
33936         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
33937         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
33938         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
33939         * iconvdata/johab.c (ONE_DIRECTION): Define.
33940         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
33941         * iconvdata/sjis.c (ONE_DIRECTION): Define.
33942         * iconvdata/t.61.c (ONE_DIRECTION): Define.
33943         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
33944         * iconvdata/tscii.c (ONE_DIRECTION): Define.
33945         * iconvdata/uhc.c (ONE_DIRECTION): Define.
33946         * iconvdata/unicode.c (ONE_DIRECTION): Define.
33947         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
33948         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
33949         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
33950
33951 2014-05-01  Roland McGrath  <roland@hack.frob.com>
33952
33953         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
33954         (_IO_JUMPS_OFFSET): Define to 0.
33955
33956         * nptl/sysdeps/pthread/bits/libc-lock.h
33957         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
33958         (__libc_lock_define_initialized_recursive): Always define using
33959         initializer.  Modern compilers treat uninitialized (implicit zero) and
33960         explicit zero initializers the same (i.e. put the datum in bss).
33961
33962 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33963
33964         * nscd/nscd-client.h: Include <string.h>.
33965
33966 2014-05-01  David S. Miller  <davem@davemloft.net>
33967
33968         [BZ #16885]
33969         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
33970         multiple zero bytes exist at the end of a string.
33971         Reported by Aurelien Jarno <aurelien@aurel32.net>
33972
33973         * string/test-strcmp.c (check): Add explicit test for situations where
33974         there are multiple zero bytes after the first.
33975
33976 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33977
33978         [BZ #16890]
33979         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
33980         when compiling wprintf.
33981         * stdio-common/tstdiomisc.c (t3): New function.
33982         (main): Call it.
33983
33984 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33985
33986         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
33987         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
33988         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
33989         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
33990
33991 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33992
33993         * stdlib/longlong.h: Updated from GCC.
33994
33995 2014-05-01  Will Newton  <will.newton@linaro.org>
33996             Bernard Ogden  <bernie.ogden@linaro.org>
33997
33998         * NEWS: Update fixed bug list.
33999
34000         [BZ #15119]
34001         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
34002
34003 2014-04-30  David S. Miller  <davem@davemloft.net>
34004
34005         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
34006         (libc_feholdexcept_setround_sparc_ctx): New function.
34007         (libc_fesetenv_sparc_ctx): Likewise.
34008         (libc_feupdateenv_sparc_ctx): Likewise.
34009         (libc_feholdsetround_sparc_ctx): Likewise.
34010         (libc_feholdexcept_setround_ctx): Define.
34011         (libc_feholdexcept_setroundf_ctx): Likewise.
34012         (libc_feholdexcept_setroundl_ctx): Likewise.
34013         (libc_fesetenv_ctx): Likewise.
34014         (libc_fesetenvf_ctx): Likewise.
34015         (libc_fesetenvl_ctx): Likewise.
34016         (libc_feupdateenv_ctx): Likewise.
34017         (libc_feupdateenvf_ctx): Likewise.
34018         (libc_feupdateenvl_ctx): Likewise.
34019         (libc_feresetround_ctx): Likewise.
34020         (libc_feresetroundf_ctx): Likewise.
34021         (libc_feresetroundl_ctx): Likewise.
34022         (libc_feholdsetround_ctx): Likewise.
34023         (libc_feholdsetroundf_ctx): Likewise.
34024         (libc_feholdsetroundl_ctx): Likewise.
34025
34026         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
34027         with __USE_GNU instead of XOPEN cpp guards.
34028
34029         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
34030         0.
34031
34032         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
34033         with XOPEN cpp guards.
34034
34035 2014-04-30  Julian Brown  <julian@codesourcery.com>
34036
34037         [BZ #16888]
34038         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
34039         handling.
34040
34041 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
34042
34043         [BZ #9894]
34044         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
34045         Change to 2.6.32.
34046         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
34047         * sysdeps/unix/sysv/linux/configure: Regenerated.
34048         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
34049         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
34050         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
34051         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
34052         * README: Update reference to required Linux kernel version.
34053         * manual/install.texi (Linux): Update reference to required Linux
34054         kernel headers version.
34055         * INSTALL: Regenerated.
34056
34057         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
34058         header inclusion.
34059         [POSIX] (limits.h): Likewise.
34060         [POSIX] (math.h): Likewise.
34061         [POSIX] (sys/wait.h): Likewise.
34062         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
34063         function.
34064         [POSIX] (stddef.h): Do not allow header inclusion.
34065
34066 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34067
34068         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
34069
34070 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
34071
34072         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
34073         Return immediately after lll_futex_wake.
34074
34075 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
34076
34077         [BZ #16791]
34078         * nscd/nscd-client.h (datahead_init_common): Initialize entire
34079         structure.
34080         (datahead_init_pos): Call datahead_init_common early.
34081         (datahead_init_neg): Likewise.
34082
34083         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
34084         datahead_init_neg): New functions.
34085         * nscd/aicache.c (addhstaiX): Use them.
34086         * nscd/grpcache.c (cache_addgr): Likewise.
34087         * nscd/hstcache.c (cache_addhst): Likewise.
34088         * nscd/initgrcache.c (addinitgroupsX): Likewise.
34089         * nscd/netgroupcache.c (do_notfound): Likewise.
34090         (addgetnetgrentX): Likewise.
34091         (addinnetgrX): Likewise.
34092         * nscd/pwdcache.c (cache_addpw): Likewise.
34093         * nscd/servicescache.c (cache_addserv): Likewise.
34094
34095 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
34096             Atsushi Onoe  <atsushi@onoe.org>
34097
34098         [BZ #14308]
34099         [BZ #12994]
34100         [BZ #13651]
34101         * resolv/res_query.c (__libc_res_nsearch): Return if at least
34102         one response is valid.
34103         * resolv/res_send.c (send_dg): Check for validity of other
34104         response if the current response is a referral.
34105
34106 2014-04-29  Steve Ellcey  <sellcey@mips.com>
34107
34108         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
34109
34110 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
34111
34112         [BZ #16823]
34113         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
34114         Always divide by positive zero when computing -Inf result.
34115         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
34116         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
34117
34118 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34119
34120         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
34121         FPSCR if value do not change.
34122         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
34123         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
34124         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
34125         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
34126         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
34127         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
34128         function.
34129
34130 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
34131
34132         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
34133         * sysdeps/unix/sysv/linux/hppa: Move directory from
34134         ports/systeps/unix/sysv/linux/hppa.
34135         * README: Update listing for hppa-*-linux-gnu.
34136
34137 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
34138
34139         [BZ #16754]
34140         * manual/stdio.texi (Hook functions): Fix types of stream hook
34141         functions.
34142         [BZ #16854]
34143         * socket/sys/socket.h: Fix typo in comment.
34144
34145 2014-04-28  Wilco  <wdijkstr@arm.com>
34146
34147         * sysdeps/arm/fenv_private.h: New file.
34148         * sysdeps/arm/math_private.h: New file.
34149         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
34150
34151 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
34152
34153         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
34154         with __int128_t.
34155         (La_x86_64_retval): Likewise.
34156
34157 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
34158
34159         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
34160         fpsr if value didn't change.
34161         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
34162         to fpcr if value didn't change.
34163         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
34164         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
34165         fpsr or fpcr if value didn't change.
34166         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
34167         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
34168         fpcr if value didn't change.
34169         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
34170         to fpsr if value didn't change.
34171
34172 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
34173
34174         * nptl/tst-sem3.c: Use test-skeleton.c
34175         (main): Rename to do_test.  Use return instead of
34176         exit.
34177         * nptl/tst-sem4.c: Use test-skeleton.c
34178         (main): Rename to do_test.
34179
34180 2014-04-22  David S. Miller  <davem@davemloft.net>
34181
34182         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34183         (struct sigaction): New struct member __glibc_reserved0, change
34184         type of sa_flags to int.
34185
34186 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
34187
34188         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
34189         (COUNT_LEADING_ZEROS_0): Define for AArch64.
34190
34191 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
34192
34193         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
34194         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
34195
34196 2014-04-22  Will Newton  <will.newton@linaro.org>
34197             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
34198
34199         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
34200         (__longjmp): Add longjmp and longjmp_target SystemTap
34201         probes.
34202         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
34203         (__sigsetjmp): Add setjmp SystemTap probe.
34204
34205 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
34206
34207         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
34208         match manual order.
34209
34210 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34211
34212         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
34213
34214         * sysdeps/powerpc/fpu/fenv_private.h
34215         (libc_feholdexcept_setroundl_ctx): Define to
34216         libc_feholdexcept_setround_ppc_ctx.
34217         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
34218         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
34219         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
34220         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
34221
34222 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
34223
34224         * sysdeps/aarch64/math-tests.h: New file.
34225
34226 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
34227
34228         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
34229         New.
34230         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34231         Check and set bit_AVX2_Usable.
34232         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
34233         macro.
34234         (bit_AVX2): Likewise.
34235         (index_AVX2_Usable): Likewise.
34236         (CPUID_AVX2): Likewise.
34237         (HAS_AVX2): Likewise.
34238
34239 2014-04-17  Will Newton  <will.newton@linaro.org>
34240
34241         * manual/setjmp.texi (System V contexts): Add note that
34242         calling setcontext on a context created by a call to a
34243         signal handler is undefined.  Update text to note that
34244         setcontext from a signal handler is possible but not
34245         recommended.
34246
34247         [BZ #16629]
34248         * stdlib/tst-setcontext.c: Include signal.h.
34249         (main): Check that the signal stack before and
34250         after swapcontext is the same.
34251
34252         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
34253         Re-implement to restore registers in user code and avoid
34254         rt_sigreturn system call.
34255
34256 2014-04-17  Wilco  <wdijkstr@arm.com>
34257
34258         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
34259         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
34260         * math/test-fenv.c: Skip exception trap tests on targets which only
34261         support non-stop mode.
34262
34263 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
34264             Wilco Dijkstra  <wilco.dijkstra@arm.com>
34265
34266         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
34267         (libc_feholdsetround_aarch64_ctx)
34268         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
34269         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
34270         (libc_feresetround_ctx, libc_feresetroundf_ctx)
34271         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
34272         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
34273         (libc_feresetround_noexl_ctx): Define.
34274
34275 2014-04-16  Richard Henderson  <rth@redhat.com>
34276
34277         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
34278
34279         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
34280         unwind tables.
34281
34282         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
34283         const from the non-libc, non-ldso copy.
34284
34285         * sysdeps/alpha/libm-test-ulps: Regenerate.
34286
34287 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
34288             Wilco Dijkstra  <wilco.dijkstra@arm.com>
34289
34290         * sysdeps/aarch64/fpu/math_private.h: New file.
34291
34292 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34293
34294         * sysdeps/aarch64/libm-test-ulps: Regenerate.
34295
34296 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
34297
34298         [BZ #16275]
34299         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
34300         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
34301         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
34302         Intel MPX bound registers before _dl_profile_fixup.
34303         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
34304         registers after _dl_profile_fixup.  Save and restore bound
34305         registers bnd0/bnd1 when calling _dl_call_pltexit.
34306         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
34307         (LR_BND_OFFSET): Likewise.
34308         (LRV_BND0_OFFSET): Likewise.
34309         (LRV_BND1_OFFSET): Likewise.
34310
34311 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34312
34313         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
34314         to...
34315         * sysdeps/mach/hurd/i386/tls.h: ... here.
34316         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
34317         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
34318         fields.
34319
34320 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34321
34322         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
34323
34324 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34325
34326         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
34327
34328 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34329
34330         [BZ #14770]
34331         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
34332         * sysdeps/s390/configure: Regenerate.
34333
34334         [BZ #16824]
34335         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
34336         Set round-to-nearest internally to reduce error accumulation.
34337
34338 2014-04-16  Alan Modra  <amodra@gmail.com>
34339
34340         [BZ #16740]
34341         [BZ #16619]
34342         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
34343         * math/libm-test.inc (frexp_test_data): Add tests.
34344         * NEWS: Update fixed bug list.
34345
34346 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
34347
34348         * benchtests/Makefile: Depend on libraries in build directory.
34349         (bench-math): Separate out math tests.
34350         (bench-pthread): Separate out pthread tests.
34351         (bench): Include math and pthread tests.
34352
34353 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
34354
34355         [BZ #16831]
34356         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
34357         _dl_debug_initialize.
34358
34359         * configure.ac: Remove SELinux header check.
34360         * configure: Regenerate.
34361         * nscd/selinux.c (perms): Array of const char* to permission names.
34362         (nscd_request_avc_has_perm): Call security_deny_unknown to find
34363         default policy. Call string_to_security_class and string_to_av_perm to
34364         translate strings. Enforce default policy and call avs_has_perm with
34365         results of translated strings.
34366
34367 2014-04-13  David S. Miller  <davem@davemloft.net>
34368
34369         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34370
34371 2014-04-12  Allan McRae  <allan@archlinux.org>
34372
34373         [BZ #16838]
34374         * manual/string.texi (Collation Functions): Fix qsort argument
34375         order in example.
34376         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
34377
34378 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
34379
34380         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
34381         Make the test a no-op if there are no exceptions defined.
34382
34383 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
34384
34385         * elf/Makefile (tests): make tst-dlopen-aout conditional on
34386         enable-hardcoded-path-in-tests
34387
34388 2014-04-11  Will Newton  <will.newton@linaro.org>
34389
34390         * benchtests/Makefile (extra-objs): Add json-lib.o.
34391         (bench-func): Tidy up JSON output.
34392         * benchtests/bench-skeleton.c: Include json-lib.h.
34393         (main): Use JSON library functions to do output of
34394         benchmark results.
34395         * benchtests/bench-timing-type.c (main): Output the
34396         timing type simply, leaving formatting to the user.
34397         * benchtests/json-lib.c: New file.
34398         * benchtests/json-lib.h: Likewise.
34399
34400 2014-04-11  Torvald Riegel  <triegel@redhat.com>
34401
34402         [BZ #15215]
34403         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
34404         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
34405         memory barriers.  Add comments.
34406         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
34407         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
34408         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
34409         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
34410         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
34411         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
34412
34413 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
34414
34415         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
34416         * sysdeps/s390/s390-64/configure.ac: ... this ...
34417         * sysdeps/s390/configure.ac: ... to here.
34418         * sysdeps/s390/s390-32/configure: Delete file.
34419         * sysdeps/s390/s390-64/configure: Delete file.
34420         * sysdeps/s390/configure: Regenerate.
34421
34422 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
34423
34424         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
34425
34426 2014-04-11  Will Newton  <will.newton@linaro.org>
34427
34428         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
34429         to zero if it is not defined elsewhere.  (mtrim): Test
34430         the value of MALLOC_DEBUG with #if rather than #ifdef.
34431
34432 2014-04-10 Torvald Riegel  <triegel@redhat.com>
34433
34434         * benchtests/pthread_once-inputs: New file.
34435         * benchtests/pthread_once-source.c: New file.
34436         * benchtests/README: Update documentation.
34437
34438 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
34439             H.J. Lu  <hongjiu.lu@intel.com>
34440
34441         [BZ #16275]
34442         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
34443         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
34444         * sysdeps/x86_64/configure: Regenerated.
34445         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
34446         macro.
34447         (REGISTER_SAVE_RAX): Likewise.
34448         (REGISTER_SAVE_RCX): Likewise.
34449         (REGISTER_SAVE_RDX): Likewise.
34450         (REGISTER_SAVE_RSI): Likewise.
34451         (REGISTER_SAVE_RDI): Likewise.
34452         (REGISTER_SAVE_R8): Likewise.
34453         (REGISTER_SAVE_R9): Likewise.
34454         (REGISTER_SAVE_BND0): Likewise.
34455         (REGISTER_SAVE_BND1): Likewise.
34456         (REGISTER_SAVE_BND2): Likewise.
34457         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
34458         bound registers when calling _dl_fixup.
34459
34460 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34461
34462         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
34463         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
34464         of its definition.
34465         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
34466         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
34467         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
34468         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
34469         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
34470         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
34471         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
34472
34473 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
34474
34475         [BZ #15514]
34476         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
34477         pathconf(_PC_NAME_MAX).
34478
34479 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34480
34481         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
34482         Remove macro usage.
34483         (__PTHREAD_SPINS): Move definition to ...
34484         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34485         (__PTHREAD_SPINS): ... here.
34486         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34487         (__PTHREAD_SPIN): Likewise.
34488         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
34489         (__PTHREAD_SPIN): Likewise.
34490         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
34491         (__PTHREAD_SPIN): Likewise.
34492         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
34493         (__PTHREAD_SPIN): Likewise.
34494         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
34495         (__PTHREAD_SPIN): Likewise.
34496         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
34497         (__PTHREAD_SPIN): Likewise.
34498         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
34499         (__PTHREAD_SPIN): Likewise.
34500         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
34501         (__PTHREAD_SPIN): Likewise.
34502         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
34503         (__PTHREAD_SPIN): Likewise.
34504         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
34505         (__PTHREAD_SPIN): Likewise.
34506         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
34507         (__PTHREAD_SPIN): Likewise.
34508         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
34509         (__PTHREAD_SPIN): Likewise.
34510
34511         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
34512         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
34513         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
34514         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
34515         imply folder.
34516         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
34517         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
34518         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
34519         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
34520         correct imply path.
34521         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
34522         strlen symbol for non multi-arch builds.
34523         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
34524         missing hidden_def and weak_alias.
34525
34526 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
34527
34528         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
34529
34530 2014-04-07  Will Newton  <will.newton@linaro.org>
34531
34532         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
34533         and contents.  [!_LIBC] Remove #ifndef and contents.
34534         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
34535         * string/memccpy.c (__memccpy): Use ANSI prototype.
34536         * string/memfrob.c (memfrob): Likewise.
34537         * string/strcoll.c (STRCOLL): Likewise.
34538         * string/strlen.c (strlen): Likewise.
34539         * string/strtok.c (STRTOK): Likewise.
34540         * string/strcat.c: Remove unused #include of memcopy.h.
34541         (strcat): Use ANSI prototype.
34542         * string/strchr.c: Remove unused #include of memcopy.h.
34543         (strchr): Use ANSI prototype.
34544         * string/strcmp.c: Remove unused #include of memcopy.h.
34545         (strcmp): Use ANSI prototype.
34546         * string/strcpy.c: Remove unused #include of memcopy.h.
34547         (strcpy): Use ANSI prototype.
34548
34549 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34550
34551         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
34552         * config.make.in (config-extra-cppflags): Set it from
34553         libc_extra_cppflags.
34554         * configure.ac (libc_extra_cflags): Make it accumulate over
34555         configure fragments.
34556         (libc_extra_cppflags): New flag.
34557         * configure. Regenerate.
34558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
34559         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
34560         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
34561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
34562
34563         [BZ #16815]
34564         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
34565         result for FE_DOWNWARD rounding mode.
34566         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
34567         Likewise.
34568         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34569
34570 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
34571
34572         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
34573         in function argument name.
34574
34575 2014-04-03  David Svoboda  <svoboda@cert.org>
34576
34577         [BZ #5666]
34578         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
34579         explicitly.
34580
34581 2014-04-03  Roland McGrath  <roland@hack.frob.com>
34582
34583         * elf/dl-unmap-segments.h: New file.
34584         * sysdeps/generic/ldsodefs.h
34585         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
34586         * elf/dl-close.c: Include <dl-unmap-segments.h>.
34587         * elf/dl-fptr.c: Likewise.
34588         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
34589         * sysdeps/aarch64/tlsdesc.c: Likewise.
34590         * sysdeps/arm/tlsdesc.c: Likewise.
34591         * sysdeps/i386/tlsdesc.c: Likewise.
34592         * sysdeps/tile/dl-runtime.c: Likewise.
34593         * sysdeps/x86_64/tlsdesc.c: Likewise.
34594         * elf/dl-load.h: New file.
34595         * elf/dl-load.c: Include it.
34596         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
34597         Macros moved to dl-load.h.
34598         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
34599         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
34600         Use _dl_unmap_segments in place of __munmap.
34601         Break out segment-mapping loop into ...
34602         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
34603
34604 2014-04-03  Will Newton  <will.newton@linaro.org>
34605
34606         * elf/dl-lookup.c (do_lookup_x): Remove comment
34607         referring to nested function and move variable
34608         declarations down to before first use.
34609
34610 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
34611
34612         [BZ #16799]
34613         [BZ #16800]
34614         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
34615         with 0 numerator.
34616         * math/s_catanf.c (__catanf): Likewise.
34617         * math/s_catanh.c (__catanh): Likewise.
34618         * math/s_catanhf.c (__catanhf): Likewise.
34619         * math/s_catanhl.c (__catanhl): Likewise.
34620         * math/s_catanl.c (__catanl): Likewise.
34621         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
34622         by positive zero when computing -Inf result.
34623         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
34624         (catanh_test): Likewise.
34625         * sysdeps/i386/fpu/libm-test-ulps: Update.
34626         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34627
34628         [BZ #16789]
34629         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
34630         instead of using underflowing value in computing result.
34631         * math/s_clog10.c (__clog10): Likewise.
34632         * math/s_clog10f.c (__clog10f): Likewise.
34633         * math/s_clog10l.c (__clog10l): Likewise.
34634         * math/s_clogf.c (__clogf): Likewise.
34635         * math/s_clogl.c (__clogl): Likewise.
34636         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
34637         (clog10_test): Likewise.
34638         * sysdeps/i386/fpu/libm-test-ulps: Update.
34639         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34640
34641 2014-04-02  Alan Modra  <amodra@gmail.com>
34642
34643         [BZ #16739]
34644         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
34645         output when value is near a power of two.  Use int64_t for lx and
34646         remove casts.  Use decimal rather than hex exponent constants.
34647         Don't use long double multiplication when double will suffice.
34648         * math/libm-test.inc (nextafter_test_data): Add tests.
34649         * NEWS: Add 16739 and 16786 to bug list.
34650
34651         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
34652
34653         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
34654
34655 2014-04-01  Will Newton  <will.newton@linaro.org>
34656
34657         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
34658         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
34659
34660 2014-04-01  Florian Weimer  <fweimer@redhat.com>
34661
34662         [BZ #13347]
34663         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
34664         * nptl/tst-setuid2.c: New file.
34665         * nptl/Makefile (xtests): Add tst-setuid2.
34666
34667 2014-04-01  Alan Modra  <amodra@gmail.com>
34668
34669         [BZ #16786]
34670         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
34671
34672 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34673
34674         [BZ #6803]
34675         [BZ #6804]
34676         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
34677         set errno as appropriate.
34678         * math/w_scalbf.c (__scalbf): Likewise.
34679         * math/w_scalbl.c (__scalbl): Likewise.
34680         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
34681         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
34682         * math/libm-test.inc (scalb_test_data): Add errno expectations.
34683         Add more NaN tests.
34684
34685         [BZ #16349]
34686         * math/w_atan2.c: Include <errno.h>.
34687         (__atan2): Set errno for result underflowing to zero.
34688         * math/w_atan2f.c: Include <errno.h>.
34689         (__atan2f): Set errno for result underflowing to zero.
34690         * math/w_atan2l.c: Include <errno.h>.
34691         (__atan2l): Set errno for result underflowing to zero.
34692         * math/auto-libm-test-in: Don't allow missing errno for some atan2
34693         tests.
34694         * math/auto-libm-test-out: Regenerated.
34695
34696 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34697
34698         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
34699         Encode instruction correctly in little endian.
34700         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
34701         Likewise.
34702         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
34703         Likewise.
34704         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
34705         Likewise.
34706         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
34707         Likewise.
34708
34709 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34710
34711         [BZ #9894]
34712         * sysdeps/unix/sysv/linux/kernel-features.h
34713         [__sparc__ && !__arch64__ && !__sparc_v9__]
34714         (__ASSUME_SET_ROBUST_LIST): Do not define.
34715         [__sparc__ && !__arch64__ && !__sparc_v9__]
34716         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34717         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
34718         Likewise.
34719         * sysdeps/unix/sysv/linux/arm/kernel-features.h
34720         (__ASSUME_FUTEX_LOCK_PI): Undefine.
34721         (__ASSUME_REQUEUE_PI): Likewise.
34722         (__ASSUME_SET_ROBUST_LIST): Likewise.
34723         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
34724         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
34725         Undefine.
34726         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34727         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
34728         Likewise.
34729         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
34730         Likewise.
34731         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
34732         Likewise.
34733         * sysdeps/unix/sysv/linux/mips/kernel-features.h
34734         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
34735         Undefine.
34736         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
34737         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
34738         Likewise.
34739
34740         [BZ #16648]
34741         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34742         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
34743         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
34744
34745 2014-03-31  Will Newton  <will.newton@linaro.org>
34746
34747         * benchtests/Makefile (bench): Add ffs and ffsll to list
34748         of tests.
34749         * benchtests/ffs-inputs: New file.
34750         * benchtests/ffsll-inputs: Likewise.
34751
34752 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
34753
34754         [BZ #16770]
34755         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
34756         too large before casting to int.
34757         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
34758         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
34759         * math/libm-test.inc (scalb_test_data): Add more tests.
34760
34761 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
34762
34763         * benchtests/Makefile (DETAILED_OPT): New make option.
34764         (bench-func): Run benchmark program with -d if DETAILED_OPT is
34765         set.
34766         * benchtests/bench-skeleton.c: Include stdbool.h.
34767         (main): Store and print timings per input.
34768         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
34769         member to each argument value.
34770         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
34771         (_print_arg_data): Initialize per-input timing to 0.
34772
34773         * benchtests/Makefile (timing-type): New binary.
34774         (bench-clean): Also remove bench-timing-type.
34775         (bench): New target for timing-type.
34776         (bench-func): Print output in JSON format.
34777         * benchtests/bench-skeleton.c (main): Print output in JSON
34778         format.
34779         * benchtests/bench-timing-type.c: New file.
34780         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
34781         (TIMING_PRINT_STATS): Remove.
34782         * benchtests/scripts/bench.py (_print_arg_data): Store variant
34783         name separately.
34784
34785         * benchtests/bench-modf.c: Remove.
34786         * benchtests/modf-inputs: New inputs file.
34787
34788 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
34789
34790         [BZ #16362]
34791         * math/s_clog10.c (M_PI_LOG10E): New macro.
34792         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
34793         imaginary parts are 0.
34794         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
34795         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
34796         imaginary parts are 0.
34797         * math/s_clog10l.c (M_PI_LOG10El): New macro.
34798         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
34799         imaginary parts are 0.
34800         * math/libm-test.inc (clog10_test_data): Update expected results
34801         for when real and imaginary parts are 0.
34802
34803 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
34804
34805         * elf/dl-load.c: Finish conversion of __builtin_expect into
34806         __glibc_{un}likely.
34807
34808 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
34809
34810         [BZ #16348]
34811         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
34812         1+x for argument with exponent below -67.
34813         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
34814         Likewise.
34815         * math/auto-libm-test-in: Add more tests of exp.
34816         * math/auto-libm-test-out: Regenerated.
34817
34818 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34819
34820         [BZ #16759]
34821         * inet/getnetgrent_r.c (get_nonempty_val): New function.
34822         (nscd_getnetgrent): Use it.
34823
34824         [BZ #16760]
34825         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
34826         of stpcpy.
34827
34828 2014-03-27  Andi Kleen  <ak@linux.intel.com>
34829
34830         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
34831         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34832         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34833         (lll_robust_unlock): Remove out of line section. Use cfi
34834         intrinsics.
34835         (LLL_STUB_UNWIND_INFO*): Remove.
34836         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
34837         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34838         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34839         (lll_robust_unlock): Remove out of line section. Use cfi
34840         intrinsics.
34841         (LLL_STUB_UNWIND_INFO*): Remove.
34842
34843 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34844
34845         [BZ #16758]
34846         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
34847         blank values.
34848
34849 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
34850
34851         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
34852
34853 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
34854
34855         [BZ #16198]
34856         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
34857         fnstenv.
34858         * math/test-fenv-preserve.c: New file.
34859         * math/Makefile (tests): Add test-fenv-preserve.
34860
34861 2014-03-26  Will Newton <will.newton@linaro.org>
34862
34863         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
34864
34865 2014-03-25  Roland McGrath  <roland@hack.frob.com>
34866
34867         * scripts/versionlist.awk: Partition the version sets and emit all
34868         GLIBC_* (sorted) before all others (sorted).
34869
34870 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34871
34872         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
34873         GLIBC_2.2.5 version.
34874
34875 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34876
34877         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
34878         calls.
34879
34880         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
34881         previous change.
34882
34883         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34884
34885 2014-03-25  Andreas Schwab  <schwab@suse.de>
34886
34887         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
34888         label to be used after in6ailist is initialized.
34889
34890 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34891
34892         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34893         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34894
34895 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34896
34897         [BZ #16357]
34898         [BZ #16599]
34899         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
34900         min_plus_half.
34901         (fp_formats): Update initializers.
34902         (init_fp_formats): Initialize new field.
34903         (output_for_one_input_case): Allow underflow for results up to
34904         min_plus_half.
34905         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
34906         * math/auto-libm-test-in: Don't mark some underflows from asin and
34907         atanh as spurious.
34908         * math/auto-libm-test-out: Regenerated.
34909         * sysdeps/i386/fpu/libm-test-ulps: Update.
34910         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34911
34912 2014-03-25  Andreas Schwab  <schwab@suse.de>
34913
34914         * libio/Makefile (tst-ftell-partial-wide-ENV)
34915         (tst-ftell-active-handler-ENV): Define.
34916
34917 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
34918
34919         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
34920
34921 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34922
34923         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
34924
34925 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34926
34927         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
34928         * sysdeps/x86_64/fpu/multiarch/e_exp.c
34929         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
34930
34931 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34932
34933         [BZ #16634]
34934         * elf/dl-load.c (open_verify): Add mode parameter.
34935         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
34936         (open_path): Change from boolean 'secure' to complete flag 'mode'
34937         (_dl_map_object): Adjust.
34938         * elf/Makefile (tests): Add tst-dlopen-aout.
34939         * elf/tst-dlopen-aout.c: New test.
34940
34941 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
34942
34943         [BZ #16714]
34944         * sysdeps/unix/sysv/linux/s390/bits/stat.h
34945         (struct stat): Rename member pad0 to __glibc_reserved0.
34946
34947         [BZ #16712]
34948         * sysdeps/s390/s390-32/bits/wordsize.h
34949         (__WORDSIZE32_SIZE_ULONG): New define.
34950         * sysdeps/s390/s390-64/bits/wordsize.h
34951         (__WORDSIZE32_SIZE_ULONG): Likewise.
34952         * sysdeps/generic/stdint.h (SIZE_MAX):
34953         Define as UL if __WORDSIZE32_SIZE_ULONG.
34954
34955         [BZ #16713]
34956         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34957         (__glibc_reserved0): New variable.
34958         (sa_flags): Change type to int.
34959
34960         * posix/Makefile (before-compile): Use += before-compile instead
34961         of a :=.
34962
34963         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34964         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34965
34966 2014-03-20  Andreas Schwab  <schwab@suse.de>
34967
34968         [BZ #16743]
34969         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
34970         non-matching result from nscd.
34971
34972 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
34973
34974         * scripts/bench.py: Moved to ...
34975         * benchtests/scripts/bench.py: ... here.
34976         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
34977
34978 2014-03-24  Andreas Schwab  <schwab@suse.de>
34979
34980         [BZ #16002]
34981         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
34982         alloca_account and account alloca use for struct in6ailist.
34983
34984 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34985
34986         [BZ #16284]
34987         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
34988         rounding mode to recompute results that overflow to infinity or
34989         underflow to zero.
34990         * math/auto-libm-test-in: Don't mark tests as expected to fail for
34991         bug 16284.
34992         * math/auto-libm-test-out: Regenerated.
34993         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
34994         (ccosh_test): Likewise.
34995         (csin_test_data): Use plus_oflow.
34996         (csin_test): Use ALL_RM_TEST.
34997         (csinh_test_data): Use plus_oflow.
34998         (csinh_test): Use ALL_RM_TEST.
34999         * sysdeps/i386/fpu/libm-test-ulps: Update.
35000         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35001
35002 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
35003
35004         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
35005         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
35006         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
35007
35008         [BZ #16731]
35009         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
35010         when x - 1 is zero.
35011         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
35012         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
35013         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
35014         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
35015         argument is 1.
35016         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
35017         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
35018         zero.
35019         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
35020         * sysdeps/i386/fpu/libm-test-ulps: Update.
35021         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35022
35023 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
35024
35025         * scripts/bench.pl: Remove file.
35026         * scripts/bench.py: New benchmark script.
35027         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
35028         * benchtests/README: Mention python dependency.
35029         * scripts/pylintrc: New file.
35030         * scripts/pylint: New file.
35031
35032         * bits/mathdef.h: Use #ifdef instead of #if.
35033         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
35034         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35035         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
35036         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35037         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
35038         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35039
35040 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35041             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35042
35043         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
35044         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
35045         and strpbrk-ppc64 objects.
35046         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35047         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
35048         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
35049         multiarch strpbrk for POWER7.
35050         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
35051         multiarch strpbrk for PPC64.
35052         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
35053         ifunc selector.
35054         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
35055         strpbrk for POWER7.
35056
35057 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
35058
35059         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
35060         (atan_test): Likewise.
35061         (atanh_test_data): Use NO_TEST_INLINE for two tests.
35062         (atanh_test): Use ALL_RM_TEST.
35063         (atan2_test_data): Likewise.
35064         (cabs_test): Likewise.
35065         (cacosh_test): Likewise.
35066         (carg_test): Likewise.
35067         (casin_test): Likewise.
35068         (casinh_test): Likewise.
35069         (cbrt_test): Likewise.
35070         (csqrt_test): Likewise.
35071         (erf_test): Likewise.
35072         (erfc_test): Likewise.
35073         (pow10_test): Likewise.
35074         (exp2_test): Likewise.
35075         (hypot_test): Likewise.
35076         (j0_test): Likewise.
35077         (j1_test): Likewise.
35078         (lgamma_test): Likewise.
35079         (gamma_test): Likewise.
35080         (sincos_test): Likewise.
35081         (tanh_test): Likewise.
35082         (y0_test): Likewise.
35083         (y1_test): Likewise.
35084         * sysdeps/i386/fpu/libm-test-ulps: Update.
35085         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35086
35087 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35088
35089         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
35090         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
35091         and strcspn-ppc64 objects.
35092         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35093         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
35094         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
35095         multiarch strcspn for POWER7.
35096         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
35097         multiarch strcspn for PPC64.
35098         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
35099         ifunc selector.
35100         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
35101         strcspn for POWER7.
35102
35103 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
35104
35105         * math/gen-libm-test.pl (generate_testfile): Expect only function
35106         name as argument to AUTO_TESTS_* and pass results for all rounding
35107         modes to parse_args.
35108         (parse_auto_input): Separate inputs of automatic tests from
35109         outputs before storing in %auto_tests.
35110         * math/libm-test.inc (acos_test_data): Update call to
35111         AUTO_TESTS_f_f.
35112         (acos_test): Use ALL_RM_TEST.
35113         (acos_tonearest_test_data): Remove.
35114         (acos_test_tonearest): Likewise.
35115         (acos_towardzero_test_data): Likewise.
35116         (acos_test_towardzero): Likewise.
35117         (acos_downward_test_data): Likewise.
35118         (acos_test_downward): Likewise.
35119         (acos_upward_test_data): Likewise.
35120         (acos_test_upward): Likewise.
35121         (acosh_test_data): Update call to AUTO_TESTS_f_f.
35122         (asin_test_data): Likewise.
35123         (asin_test): Use ALL_RM_TEST.
35124         (asin_tonearest_test_data): Remove.
35125         (asin_test_tonearest): Likewise.
35126         (asin_towardzero_test_data): Likewise.
35127         (asin_test_towardzero): Likewise.
35128         (asin_downward_test_data): Likewise.
35129         (asin_test_downward): Likewise.
35130         (asin_upward_test_data): Likewise.
35131         (asin_test_upward): Likewise.
35132         (asinh_test_data): Update call to AUTO_TESTS_f_f.
35133         (atan_test_data): Likewise.
35134         (atanh_test_data): Likewise.
35135         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
35136         (cabs_test_data): Update call to AUTO_TESTS_c_f.
35137         (carg_test_data): Likewise.
35138         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
35139         (ccos_test_data): Update call to AUTO_TESTS_c_c.
35140         (ccosh_test_data): Likewise.
35141         (cexp_test_data): Likewise.
35142         (clog_test_data): Likewise.
35143         (clog10_test_data): Likewise.
35144         (cos_test_data): Update call to AUTO_TESTS_f_f.
35145         (cos_test): Use ALL_RM_TEST.
35146         (cos_tonearest_test_data): Remove.
35147         (cos_test_tonearest): Likewise.
35148         (cos_towardzero_test_data): Likewise.
35149         (cos_test_towardzero): Likewise.
35150         (cos_downward_test_data): Likewise.
35151         (cos_test_downward): Likewise.
35152         (cos_upward_test_data): Likewise.
35153         (cos_test_upward): Likewise.
35154         (cosh_test_data): Update call to AUTO_TESTS_f_f.
35155         (cosh_test): Use ALL_RM_TEST.
35156         (cosh_tonearest_test_data): Remove.
35157         (cosh_test_tonearest): Likewise.
35158         (cosh_towardzero_test_data): Likewise.
35159         (cosh_test_towardzero): Likewise.
35160         (cosh_downward_test_data): Likewise.
35161         (cosh_test_downward): Likewise.
35162         (cosh_upward_test_data): Likewise.
35163         (cosh_test_upward): Likewise.
35164         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
35165         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
35166         (ctan_test_data): Likewise.
35167         (ctan_test): Use ALL_RM_TEST.
35168         (ctan_tonearest_test_data): Remove.
35169         (ctan_test_tonearest): Likewise.
35170         (ctan_towardzero_test_data): Likewise.
35171         (ctan_test_towardzero): Likewise.
35172         (ctan_downward_test_data): Likewise.
35173         (ctan_test_downward): Likewise.
35174         (ctan_upward_test_data): Likewise.
35175         (ctan_test_upward): Likewise.
35176         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
35177         (ctanh_test): Use ALL_RM_TEST.
35178         (ctanh_tonearest_test_data): Remove.
35179         (ctanh_test_tonearest): Likewise.
35180         (ctanh_towardzero_test_data): Likewise.
35181         (ctanh_test_towardzero): Likewise.
35182         (ctanh_downward_test_data): Likewise.
35183         (ctanh_test_downward): Likewise.
35184         (ctanh_upward_test_data): Likewise.
35185         (ctanh_test_upward): Likewise.
35186         (erf_test_data): Update call to AUTO_TESTS_f_f.
35187         (erfc_test_data): Likewise.
35188         (exp_test_data): Likewise.
35189         (exp_test): Use ALL_RM_TEST.
35190         (exp_tonearest_test_data): Remove.
35191         (exp_test_tonearest): Likewise.
35192         (exp_towardzero_test_data): Likewise.
35193         (exp_test_towardzero): Likewise.
35194         (exp_downward_test_data): Likewise.
35195         (exp_test_downward): Likewise.
35196         (exp_upward_test_data): Likewise.
35197         (exp_test_upward): Likewise.
35198         (exp10_test_data): Update call to AUTO_TESTS_f_f.
35199         (exp10_test): Use ALL_RM_TEST.
35200         (exp10_tonearest_test_data): Remove.
35201         (exp10_test_tonearest): Likewise.
35202         (exp10_towardzero_test_data): Likewise.
35203         (exp10_test_towardzero): Likewise.
35204         (exp10_downward_test_data): Likewise.
35205         (exp10_test_downward): Likewise.
35206         (exp10_upward_test_data): Likewise.
35207         (exp10_test_upward): Likewise.
35208         (exp2_test_data): Update call to AUTO_TESTS_f_f.
35209         (expm1_test_data): Likewise.
35210         (expm1_test): Use ALL_RM_TEST.
35211         (expm1_tonearest_test_data): Remove.
35212         (expm1_test_tonearest): Likewise.
35213         (expm1_towardzero_test_data): Likewise.
35214         (expm1_test_towardzero): Likewise.
35215         (expm1_downward_test_data): Likewise.
35216         (expm1_test_downward): Likewise.
35217         (expm1_upward_test_data): Likewise.
35218         (expm1_test_upward): Likewise.
35219         (fma_test_data): Update call to AUTO_TESTS_fff_f.
35220         (fma_test): Use ALL_RM_TEST.
35221         (fma_towardzero_test_data): Remove.
35222         (fma_test_towardzero): Likewise.
35223         (fma_downward_test_data): Likewise.
35224         (fma_test_downward): Likewise.
35225         (fma_upward_test_data): Likewise.
35226         (fma_test_upward): Likewise.
35227         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
35228         (j0_test_data): Update call to AUTO_TESTS_f_f.
35229         (j1_test_data): Likewise.
35230         (jn_test_data): Update call to AUTO_TESTS_if_f.
35231         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
35232         (log_test_data): Update call to AUTO_TESTS_f_f.
35233         (log10_test_data): Likewise.
35234         (log1p_test_data): Likewise.
35235         (log2_test_data): Likewise.
35236         (pow_test_data): Update call to AUTO_TESTS_ff_f.
35237         (pow_tonearest_test_data): Likewise.
35238         (sin_test_data): Update call to AUTO_TESTS_f_f.
35239         (sin_test): Use ALL_RM_TEST.
35240         (sin_tonearest_test_data): Remove.
35241         (sin_test_tonearest): Likewise.
35242         (sin_towardzero_test_data): Likewise.
35243         (sin_test_towardzero): Likewise.
35244         (sin_downward_test_data): Likewise.
35245         (sin_test_downward): Likewise.
35246         (sin_upward_test_data): Likewise.
35247         (sin_test_upward): Likewise.
35248         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
35249         (sinh_test_data): Update call to AUTO_TESTS_f_f.
35250         (sinh_test): Use ALL_RM_TEST.
35251         (sinh_tonearest_test_data): Remove.
35252         (sinh_test_tonearest): Likewise.
35253         (sinh_towardzero_test_data): Likewise.
35254         (sinh_test_towardzero): Likewise.
35255         (sinh_downward_test_data): Likewise.
35256         (sinh_test_downward): Likewise.
35257         (sinh_upward_test_data): Likewise.
35258         (sinh_test_upward): Likewise.
35259         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
35260         (sqrt_test): Use ALL_RM_TEST.
35261         (sqrt_tonearest_test_data): Remove.
35262         (sqrt_test_tonearest): Likewise.
35263         (sqrt_towardzero_test_data): Likewise.
35264         (sqrt_test_towardzero): Likewise.
35265         (sqrt_downward_test_data): Likewise.
35266         (sqrt_test_downward): Likewise.
35267         (sqrt_upward_test_data): Likewise.
35268         (sqrt_test_upward): Likewise.
35269         (tan_test_data): Update call to AUTO_TESTS_f_f.
35270         (tan_test): Use ALL_RM_TEST.
35271         (tan_tonearest_test_data): Remove.
35272         (tan_test_tonearest): Likewise.
35273         (tan_towardzero_test_data): Likewise.
35274         (tan_test_towardzero): Likewise.
35275         (tan_downward_test_data): Likewise.
35276         (tan_test_downward): Likewise.
35277         (tan_upward_test_data): Likewise.
35278         (tan_test_upward): Likewise.
35279         (tanh_test_data): Update call to AUTO_TESTS_f_f.
35280         (tgamma_test_data): Likewise.
35281         (y0_test_data): Likewise.
35282         (y1_test_data): Likewise.
35283         (yn_test_data): Update call to AUTO_TESTS_if_f.
35284         (main): Do not call removed functions.
35285
35286 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
35287
35288         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
35289         (ldexp_test_data): Remove.
35290         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
35291         scalbn_test_data.
35292         (scalb_test): Use ALL_RM_TEST.
35293
35294 2014-03-19  Andreas Schwab  <schwab@suse.de>
35295
35296         * nscd/nscd.service: Also invalidate netgroup cache on reload.
35297
35298 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
35299
35300         [BZ #16649]
35301         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
35302         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
35303         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
35304         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35305         (__ASSUME_PREADV): Undefine.
35306         (__ASSUME_PWRITEV): Likewise.
35307
35308 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35309
35310         * bits/mman-linux.h: Add comment about non-Linux use.
35311         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
35312         bits/mman-linux.h resting place.
35313
35314         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
35315         * bits/mman-linux.h: ... here.
35316
35317 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35318
35319         * conform/conformtest.pl: Add standard definition when calling C
35320         preprocessor on data files.
35321         (checknamespace): Remove unused variable.
35322
35323 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35324
35325         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
35326         minus_oflow, plus_uflow and minus_uflow in expected results.
35327         * math/libm-test.inc (scalbn_test_data): Add more tests of
35328         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
35329         minus_uflow.
35330         (scalbn_test): Use ALL_RM_TEST.
35331         (scalbln_test_data): Add more tests of negative arguments.  Use
35332         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
35333         (scalbln_test): Use ALL_RM_TEST.
35334
35335 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35336
35337         * scripts/abilist.awk: Ignore symbols marked with .hidden.
35338
35339 2014-03-18  Will Newton  <will.newton@linaro.org>
35340
35341         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
35342         inaccurate comment.
35343
35344 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35345
35346         * Makerules [!subdir] (check-abi): Exit with error status if a
35347         test failed.
35348
35349 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35350
35351         * math/libm-test.inc (nearbyint_test_data): Include all tests used
35352         for rint.  Include results for all rounding modes.
35353         (nearbyint_test): Use ALL_RM_TEST.
35354         (rint_test_data): Include all tests used for nearbyint.
35355
35356 2014-03-17  Will Newton  <will.newton@linaro.org>
35357
35358         * nptl/sysdeps/pthread/pthread.h: Revert previous
35359         change.
35360
35361         * sysdeps/generic/ldsodefs.h: Revert previous
35362         change.
35363
35364         * libio/genops.c: Revert previous change.
35365         * libio/libioP.h: Likewise.
35366         * stdio-common/vfprintf.c: Likewise.
35367
35368         * sysdeps/generic/math_private.h: Revert previous
35369         change.
35370
35371         * sysdeps/generic/math_private.h: Check whether
35372         HAVE_RM_CTX is defined with #ifdef rather
35373         than #if.
35374
35375         * argp/argp-fmtstream.h: Check whether
35376         __STRICT_ANSI__ is defined with #ifdef rather
35377         than #if.
35378         * argp/argp.h: Likewise.
35379
35380         * libio/genops.c: Check whether
35381         _IO_JUMPS_OFFSET is defined with #ifdef rather
35382         than #if.
35383         * libio/libioP.h: Likewise.
35384         * stdio-common/vfprintf.c: Likewise.
35385
35386         * sysdeps/generic/ldsodefs.h: Check whether
35387         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
35388         than #if.
35389
35390         * nptl/sysdeps/pthread/pthread.h: Check
35391         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
35392         its value.
35393
35394 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
35395
35396         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
35397         setting O_APPEND.
35398         * libio/tst-ftell-active-handler.c (do_append_test): Add a
35399         test case.
35400
35401         [BZ #16680]
35402         * libio/fileops.c (_IO_file_open): Seek to end of file but
35403         don't cache the offset.
35404         (get_file_offset): Remove function.
35405         (do_ftell): Use cached offset when available.
35406         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
35407         don't cache the offset.
35408         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
35409         case.
35410         (do_one_test): Call it.
35411         (do_ftell_test): Fix up expected old offset for a+ mode.
35412         * libio/wfileops.c (do_ftell_wide): Used cached offset when
35413         available.
35414
35415         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
35416         up test status with function return status.
35417         (do_write_test): Likewise.
35418         (do_append_test): Likewise.
35419
35420         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
35421         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
35422         Remove.
35423
35424 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35425
35426         * math/gen-libm-test.pl (parse_args): Handle results specified for
35427         each rounding mode separately.
35428         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
35429         tests and results from lrint_tonearest_test_data,
35430         lrint_towardzero_test_data, lrint_downward_test_data and
35431         lrint_upward_test_data.
35432         (lrint_test): Use ALL_RM_TEST.
35433         (lrint_tonearest_test_data): Remove.
35434         (lrint_test_tonearest): Likewise.
35435         (lrint_towardzero_test_data): Likewise.
35436         (lrint_test_towardzero): Likewise.
35437         (lrint_downward_test_data): Likewise.
35438         (lrint_test_downward): Likewise.
35439         (lrint_upward_test_data): Likewise.
35440         (lrint_test_upward): Likewise.
35441         (llrint_test_data): Merge in per-rounding-mode tests and results
35442         from llrint_tonearest_test_data, llrint_towardzero_test_data,
35443         llrint_downward_test_data and llrint_upward_test_data.
35444         (llrint_test): Use ALL_RM_TEST.
35445         (llrint_tonearest_test_data): Remove.
35446         (llrint_test_tonearest): Likewise.
35447         (llrint_towardzero_test_data): Likewise.
35448         (llrint_test_towardzero): Likewise.
35449         (llrint_downward_test_data): Likewise.
35450         (llrint_test_downward): Likewise.
35451         (llrint_upward_test_data): Likewise.
35452         (llrint_test_upward): Likewise.
35453         (rint_test_data): Merge in per-rounding-mode tests and results
35454         from rint_tonearest_test_data, rint_towardzero_test_data,
35455         rint_downward_test_data and rint_upward_test_data.  Add
35456         per-rounding-mode results for tests not in those arrays.
35457         (rint_test): Use ALL_RM_TEST.
35458         (rint_tonearest_test_data): Remove.
35459         (rint_test_tonearest): Likewise.
35460         (rint_towardzero_test_data): Likewise.
35461         (rint_test_towardzero): Likewise.
35462         (rint_downward_test_data): Likewise.
35463         (rint_test_downward): Likewise.
35464         (rint_upward_test_data): Likewise.
35465         (rint_test_upward): Likewise.
35466         (main): Don't call removed functions.
35467
35468 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35469
35470         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
35471         "Compiled on ..." crapola.  It is anti-useful.
35472
35473 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
35474
35475         * scripts/evaluate-test.sh: Handle fourth argument to determine
35476         whether test run should stop on failure.
35477         * Makeconfig (stop-on-test-failure): New variable.
35478         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
35479         $(stop-on-test-failure).
35480         * Makefile (tests): Give a summary of results from testing and
35481         exit with failure status if they include an ERROR or FAIL.
35482         (xtests): Likewise.
35483         * manual/install.texi (Configuring and compiling): Mention
35484         stop-on-test-failure=y.
35485         * INSTALL: Regenerated.
35486
35487 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35488
35489         * scripts/versionlist.awk: New file.
35490         * Makerules [$(build-shared) = yes]
35491         (postclean-generated): Add Versions.def, not Versions.def.v and
35492         Versions.def.v.i.
35493         ($(common-objpfx)Versions.def.v.i): Target removed.
35494         ($(common-objpfx)Versions.def): New target.
35495         ($(common-objpfx)Versions.all): Depend on that rather that
35496         $(common-objpfx)Versions.def.v.
35497         * Versions.def: File removed.
35498
35499         * Makeconfig (+gccwarn): Add -Wundef.
35500         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
35501         a dl-sysdep.h breaking its contract.
35502         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
35503         * include/stackinfo.h: New file.
35504         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
35505         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
35506         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
35507         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
35508         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
35509         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
35510         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35511         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35512         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35513         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35514         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35515         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
35516         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35517         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35518         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35519
35520 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35521
35522         [BZ #16707]
35523         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
35524         implementation.
35525         * math/libm-test.inc (round_test_data): Add more tests.
35526
35527         [BZ #16706]
35528         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
35529         implementation.
35530         * math/libm-test.inc (nearbyint_test_data): Add more tests.
35531
35532         [BZ #16701]
35533         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
35534         implementation.
35535         * math/libm-test.inc (ceil_test_data): Add more tests.
35536
35537         * math/libm-test.inc (trunc_test_data): Add more tests related to
35538         BZ#16414.
35539
35540 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35541
35542         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
35543         with #if rather than #ifdef.
35544         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
35545
35546 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
35547
35548         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
35549         first.  Disable AVX-512 GCC support if assembler doesn't support
35550         it.
35551         * sysdeps/x86_64/configure: Regenerated.
35552
35553 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
35554
35555         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
35556         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
35557         (__old_pthread_attr_setstack): Likewise.
35558         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
35559         [!_STACK_GROWS_DOWN]: Likewise.
35560
35561 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
35562
35563         * config.make.in (have-bash2): Delete.
35564         * configure.ac (libc_cv_have_bash2): Delete.
35565         * configure: Regenerate.
35566         * elf/Makefile (common-ldd-rewrite): Rename to ...
35567         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
35568         (sh-ldd-rewrite): Delete.
35569         (bash-ldd-rewrite): Delete.
35570         (have-bash2): Delete checks.
35571         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
35572         ldd-rewrite.
35573
35574         * config.make.in (have-ksh): Delete.
35575         (KSH): Delete.
35576         * configure.ac (libc_cv_have_ksh): Delete.
35577         * configure: Regenerate.
35578
35579         * elf/Makefile: Delete $(have-ksh) check.
35580         ($(objpfx)sotruss): Change KSH to BASH.
35581         * elf/sotruss.ksh: Rename to ...
35582         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
35583         function style to match POSIX.  Drop ksh vim mode setting.
35584
35585         * manual/time.texi (Specifying the Time Zone with TZ): Change
35586         Tuesday to Thursday.
35587
35588         * debug/tst-longjmp_chk2.c: Update header comment.
35589         (stackoverflow_handler): Add comment.  Call assert on pass value.
35590
35591 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
35592
35593         [BZ #16194]
35594         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
35595         (HAVE_AVX512_ASM_SUPPORT): Likewise.
35596         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
35597         (La_x86_64_vector): Add zmm.
35598         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
35599         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
35600         ($(objpfx)tst-audit10): New target.
35601         ($(objpfx)tst-audit10.out): Likewise.
35602         (tst-audit10-ENV): New.
35603         (AVX512-CFLAGS): Likewise.
35604         (CFLAGS-tst-audit10.c): Likewise.
35605         (CFLAGS-tst-auditmod10a.c): Likewise.
35606         (CFLAGS-tst-auditmod10b.c): Likewise.
35607         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
35608         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
35609         * sysdeps/x86_64/configure: Regenerated.
35610         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
35611         AVX-512 zmm register support.
35612         (_dl_x86_64_save_sse): Likewise.
35613         (_dl_x86_64_restore_sse): Likewise.
35614         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
35615         size vector registers.
35616         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
35617         (ZMM_SIZE): Likewise.
35618         * sysdeps/x86_64/tst-audit10.c: New file.
35619         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
35620         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
35621
35622 2014-03-13  Roland McGrath  <roland@hack.frob.com>
35623
35624         * configure.ac (HAVE_EHDR_START): New check.
35625         * configure: Regenerated.
35626         * config.h.in (HAVE_EHDR_START): New #undef.
35627         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
35628         assuming the lowest-addressed segment maps the start of the file.
35629
35630 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
35631
35632         * INSTALL: Regenerated.
35633
35634 2014-03-13  Will Newton  <will.newton@linaro.org>
35635
35636         * manual/setjmp.texi (System V contexts): Improve
35637         clarity and grammar of documentation.
35638
35639 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
35640
35641         [BZ #16381]
35642         * elf/Makefile (tests): Add tst-pie2.
35643         (tests-pie): Add tst-pie2.
35644         * elf/tst-pie2.c: New file.
35645         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
35646         for ET_EXEC.
35647         * elf/rtld.c (map_doit): Load executable as lt_executable.
35648         (dl_main): Likewise.
35649
35650 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
35651
35652         [BZ #16642]
35653         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35654         (__ASSUME_PSELECT): Undefine.
35655
35656 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35657
35658         [BZ #16689]
35659         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
35660         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
35661         static build.
35662         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
35663         selector for static builds.
35664
35665 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
35666
35667         [BZ #16695]
35668         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
35669         key in the buffer.
35670
35671 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35672
35673         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
35674         IFUNC selector for static builds.
35675
35676 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
35677
35678         * sysdeps/mips/math_private.h [__mips_hard_float]
35679         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
35680         libc_feresetround_mips_ctx.
35681         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
35682         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
35683         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
35684
35685         [BZ #16677]
35686         * math/s_nextafter.c (__nextafter): Do not return value from
35687         overflowing computation.
35688         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35689         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
35690         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35691         Likewise.
35692         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
35693         Likewise.
35694         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35695         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
35696
35697 2014-03-11  Roland McGrath  <roland@hack.frob.com>
35698
35699         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
35700         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
35701         Move sfi_sp use from the load-multiple (that no longer sets sp) to
35702         the new mov targetting sp.
35703
35704 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35705
35706         [BZ #16683]
35707         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
35708         Define it for static builds as well.
35709         (NO_BZERO_IMPL): Likewise.
35710
35711 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35712
35713         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
35714         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
35715         multiarch strspn for PPC64.
35716         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
35717         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
35718         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35719         (__libc_ifunc_impl_list): Likewise.
35720         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
35721         multiarch optimizations
35722         * string/strspn.c (strspn): Using macro to redefine symbol name.
35723
35724 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35725             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35726
35727         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
35728         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
35729         multiarch strncat for PPC64.
35730         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
35731         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
35732         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35733         (__libc_ifunc_impl_list): Likewise.
35734         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
35735         multiarch optimizations
35736
35737 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35738
35739         [BZ #16639]
35740         * nscd/nscd.service: Make service type forking.
35741
35742 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35743
35744         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
35745         sign in non default rounding modes.
35746         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
35747
35748 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
35749
35750         * math/libm-test.inc (ALL_RM_TEST): New macro.
35751         (ceil_test): Use ALL_RM_TEST.
35752         (cimag_test): Likewise.
35753         (conj_test): Likewise.
35754         (copysign_test): Likewise.
35755         (cproj_test): Likewise.
35756         (creal_test): Likewise.
35757         (fabs_test): Likewise.
35758         (floor_test): Likewise.
35759         (fmax_test): Likewise.
35760         (fmin_test): Likewise.
35761         (fmod_test): Likewise.
35762         (fpclassify_test): Likewise.
35763         (frexp_test): Likewise.
35764         (ilogb_test): Likewise.
35765         (isfinite_test): Likewise.
35766         (finite_test): Likewise.
35767         (isgreater_test): Likewise.
35768         (isgreaterequal_test): Likewise.
35769         (isinf_test): Likewise.
35770         (isless_test): Likewise.
35771         (islessequal_test): Likewise.
35772         (islessgreater_test): Likewise.
35773         (isnan_test): Likewise.
35774         (isnormal_test): Likewise.
35775         (issignaling_test): Likewise.
35776         (isunordered_test): Likewise.
35777         (logb_test): Likewise.
35778         (logb_downward_test_data): Remove.
35779         (logb_test_downward): Likewise.
35780         (lround_test): Use ALL_RM_TEST.
35781         (llround_test): Likewise.
35782         (modf_test): Likewise.
35783         (nexttoward_test): Likewise.
35784         (remainder_test): Likewise.
35785         (drem_test): Likewise.
35786         (remainder_tonearest_test_data): Likewise.
35787         (remainder_test_tonearest): Likewise.
35788         (drem_test_tonearest): Likewise.
35789         (remainder_towardzero_test_data): Likewise.
35790         (remainder_test_towardzero): Likewise.
35791         (drem_test_towardzero): Likewise.
35792         (remainder_downward_test_data): Likewise.
35793         (remainder_test_downward): Likewise.
35794         (drem_test_downward): Likewise.
35795         (remainder_upward_test_data): Likewise.
35796         (remainder_test_upward): Likewise.
35797         (drem_test_upward): Likewise.
35798         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
35799         (round_test): Use ALL_RM_TEST.
35800         (signbit_test): Likewise.
35801         (trunc_test): Likewise.
35802         (significand_test): Likewise.
35803         (main): Don't call removed functions.
35804
35805 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35806
35807         [BZ #16674]
35808         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
35809         || __USE_XOPEN2K8].
35810         (ILL_ILLOPN): Likewise.
35811         (ILL_ILLADR): Likewise.
35812         (ILL_ILLTRP): Likewise.
35813         (ILL_PRVOPC): Likewise.
35814         (ILL_PRVREG): Likewise.
35815         (ILL_COPROC): Likewise.
35816         (ILL_BADSTK): Likewise.
35817         (FPE_INTDIV): Likewise.
35818         (FPE_INTOVF): Likewise.
35819         (FPE_FLTDIV): Likewise.
35820         (FPE_FLTOVF): Likewise.
35821         (FPE_FLTUND): Likewise.
35822         (FPE_FLTRES): Likewise.
35823         (FPE_FLTINV): Likewise.
35824         (FPE_FLTSUB): Likewise.
35825         (SEGV_MAPERR): Likewise.
35826         (SEGV_ACCERR): Likewise.
35827         (BUS_ADRALN): Likewise.
35828         (BUS_ADRERR): Likewise.
35829         (BUS_OBJERR): Likewise.
35830         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35831         (TRAP_TRACE): Likewise.
35832         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35833         __USE_XOPEN2K8].
35834         (CLD_KILLED): Likewise.
35835         (CLD_DUMPED): Likewise.
35836         (CLD_TRAPPED): Likewise.
35837         (CLD_STOPPED): Likewise.
35838         (CLD_CONTINUED): Likewise.
35839         (POLL_IN): Likewise.
35840         (POLL_OUT): Likewise.
35841         (POLL_MSG): Likewise.
35842         (POLL_ERR): Likewise.
35843         (POLL_PRI): Likewise.
35844         (POLL_HUP): Likewise.
35845         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
35846         Likewise.
35847         (ILL_ILLOPN): Likewise.
35848         (ILL_ILLADR): Likewise.
35849         (ILL_ILLTRP): Likewise.
35850         (ILL_PRVOPC): Likewise.
35851         (ILL_PRVREG): Likewise.
35852         (ILL_COPROC): Likewise.
35853         (ILL_BADSTK): Likewise.
35854         (FPE_INTDIV): Likewise.
35855         (FPE_INTOVF): Likewise.
35856         (FPE_FLTDIV): Likewise.
35857         (FPE_FLTOVF): Likewise.
35858         (FPE_FLTUND): Likewise.
35859         (FPE_FLTRES): Likewise.
35860         (FPE_FLTINV): Likewise.
35861         (FPE_FLTSUB): Likewise.
35862         (SEGV_MAPERR): Likewise.
35863         (SEGV_ACCERR): Likewise.
35864         (BUS_ADRALN): Likewise.
35865         (BUS_ADRERR): Likewise.
35866         (BUS_OBJERR): Likewise.
35867         (BUS_MCEERR_AR): Likewise.
35868         (BUS_MCEERR_AO): Likewise.
35869         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35870         (TRAP_TRACE): Likewise.
35871         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35872         __USE_XOPEN2K8].
35873         (CLD_KILLED): Likewise.
35874         (CLD_DUMPED): Likewise.
35875         (CLD_TRAPPED): Likewise.
35876         (CLD_STOPPED): Likewise.
35877         (CLD_CONTINUED): Likewise.
35878         (POLL_IN): Likewise.
35879         (POLL_OUT): Likewise.
35880         (POLL_MSG): Likewise.
35881         (POLL_ERR): Likewise.
35882         (POLL_PRI): Likewise.
35883         (POLL_HUP): Likewise.
35884         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
35885         (ILL_ILLOPN): Likewise.
35886         (ILL_ILLADR): Likewise.
35887         (ILL_ILLTRP): Likewise.
35888         (ILL_PRVOPC): Likewise.
35889         (ILL_PRVREG): Likewise.
35890         (ILL_COPROC): Likewise.
35891         (ILL_BADSTK): Likewise.
35892         (FPE_INTDIV): Likewise.
35893         (FPE_INTOVF): Likewise.
35894         (FPE_FLTDIV): Likewise.
35895         (FPE_FLTOVF): Likewise.
35896         (FPE_FLTUND): Likewise.
35897         (FPE_FLTRES): Likewise.
35898         (FPE_FLTINV): Likewise.
35899         (FPE_FLTSUB): Likewise.
35900         (SEGV_MAPERR): Likewise.
35901         (SEGV_ACCERR): Likewise.
35902         (BUS_ADRALN): Likewise.
35903         (BUS_ADRERR): Likewise.
35904         (BUS_OBJERR): Likewise.
35905         (BUS_MCEERR_AR): Likewise.
35906         (BUS_MCEERR_AO): Likewise.
35907         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35908         (TRAP_TRACE): Likewise.
35909         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35910         __USE_XOPEN2K8].
35911         (CLD_KILLED): Likewise.
35912         (CLD_DUMPED): Likewise.
35913         (CLD_TRAPPED): Likewise.
35914         (CLD_STOPPED): Likewise.
35915         (CLD_CONTINUED): Likewise.
35916         (POLL_IN): Likewise.
35917         (POLL_OUT): Likewise.
35918         (POLL_MSG): Likewise.
35919         (POLL_ERR): Likewise.
35920         (POLL_PRI): Likewise.
35921         (POLL_HUP): Likewise.
35922         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
35923         Likewise.
35924         (ILL_ILLOPN): Likewise.
35925         (ILL_ILLADR): Likewise.
35926         (ILL_ILLTRP): Likewise.
35927         (ILL_PRVOPC): Likewise.
35928         (ILL_PRVREG): Likewise.
35929         (ILL_COPROC): Likewise.
35930         (ILL_BADSTK): Likewise.
35931         (ILL_BADIADDR): Likewise.
35932         (ILL_BREAK): Likewise.
35933         (FPE_INTDIV): Likewise.
35934         (FPE_INTOVF): Likewise.
35935         (FPE_FLTDIV): Likewise.
35936         (FPE_FLTOVF): Likewise.
35937         (FPE_FLTUND): Likewise.
35938         (FPE_FLTRES): Likewise.
35939         (FPE_FLTINV): Likewise.
35940         (FPE_FLTSUB): Likewise.
35941         (FPE_DECOVF): Likewise.
35942         (FPE_DECDIV): Likewise.
35943         (FPE_DECERR): Likewise.
35944         (FPE_INVASC): Likewise.
35945         (FPE_INVDEC): Likewise.
35946         (SEGV_MAPERR): Likewise.
35947         (SEGV_ACCERR): Likewise.
35948         (SEGV_PSTKOVF): Likewise.
35949         (BUS_ADRALN): Likewise.
35950         (BUS_ADRERR): Likewise.
35951         (BUS_OBJERR): Likewise.
35952         (BUS_MCEERR_AR): Likewise.
35953         (BUS_MCEERR_AO): Likewise.
35954         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35955         (TRAP_TRACE): Likewise.
35956         (TRAP_BRANCH): Likewise.
35957         (TRAP_HWBKPT): Likewise.
35958         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35959         __USE_XOPEN2K8].
35960         (CLD_KILLED): Likewise.
35961         (CLD_DUMPED): Likewise.
35962         (CLD_TRAPPED): Likewise.
35963         (CLD_STOPPED): Likewise.
35964         (CLD_CONTINUED): Likewise.
35965         (POLL_IN): Likewise.
35966         (POLL_OUT): Likewise.
35967         (POLL_MSG): Likewise.
35968         (POLL_ERR): Likewise.
35969         (POLL_PRI): Likewise.
35970         (POLL_HUP): Likewise.
35971         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
35972         (ILL_ILLOPN): Likewise.
35973         (ILL_ILLADR): Likewise.
35974         (ILL_ILLTRP): Likewise.
35975         (ILL_PRVOPC): Likewise.
35976         (ILL_PRVREG): Likewise.
35977         (ILL_COPROC): Likewise.
35978         (ILL_BADSTK): Likewise.
35979         (FPE_INTDIV): Likewise.
35980         (FPE_INTOVF): Likewise.
35981         (FPE_FLTDIV): Likewise.
35982         (FPE_FLTOVF): Likewise.
35983         (FPE_FLTUND): Likewise.
35984         (FPE_FLTRES): Likewise.
35985         (FPE_FLTINV): Likewise.
35986         (FPE_FLTSUB): Likewise.
35987         (SEGV_MAPERR): Likewise.
35988         (SEGV_ACCERR): Likewise.
35989         (BUS_ADRALN): Likewise.
35990         (BUS_ADRERR): Likewise.
35991         (BUS_OBJERR): Likewise.
35992         (BUS_MCEERR_AR): Likewise.
35993         (BUS_MCEERR_AO): Likewise.
35994         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35995         (TRAP_TRACE): Likewise.
35996         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35997         __USE_XOPEN2K8].
35998         (CLD_KILLED): Likewise.
35999         (CLD_DUMPED): Likewise.
36000         (CLD_TRAPPED): Likewise.
36001         (CLD_STOPPED): Likewise.
36002         (CLD_CONTINUED): Likewise.
36003         (POLL_IN): Likewise.
36004         (POLL_OUT): Likewise.
36005         (POLL_MSG): Likewise.
36006         (POLL_ERR): Likewise.
36007         (POLL_PRI): Likewise.
36008         (POLL_HUP): Likewise.
36009         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
36010         (ILL_ILLOPN): Likewise.
36011         (ILL_ILLADR): Likewise.
36012         (ILL_ILLTRP): Likewise.
36013         (ILL_PRVOPC): Likewise.
36014         (ILL_PRVREG): Likewise.
36015         (ILL_COPROC): Likewise.
36016         (ILL_BADSTK): Likewise.
36017         (FPE_INTDIV): Likewise.
36018         (FPE_INTOVF): Likewise.
36019         (FPE_FLTDIV): Likewise.
36020         (FPE_FLTOVF): Likewise.
36021         (FPE_FLTUND): Likewise.
36022         (FPE_FLTRES): Likewise.
36023         (FPE_FLTINV): Likewise.
36024         (FPE_FLTSUB): Likewise.
36025         (SEGV_MAPERR): Likewise.
36026         (SEGV_ACCERR): Likewise.
36027         (BUS_ADRALN): Likewise.
36028         (BUS_ADRERR): Likewise.
36029         (BUS_OBJERR): Likewise.
36030         (BUS_MCEERR_AR): Likewise.
36031         (BUS_MCEERR_AO): Likewise.
36032         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36033         (TRAP_TRACE): Likewise.
36034         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36035         __USE_XOPEN2K8].
36036         (CLD_KILLED): Likewise.
36037         (CLD_DUMPED): Likewise.
36038         (CLD_TRAPPED): Likewise.
36039         (CLD_STOPPED): Likewise.
36040         (CLD_CONTINUED): Likewise.
36041         (POLL_IN): Likewise.
36042         (POLL_OUT): Likewise.
36043         (POLL_MSG): Likewise.
36044         (POLL_ERR): Likewise.
36045         (POLL_PRI): Likewise.
36046         (POLL_HUP): Likewise.
36047         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
36048         (ILL_ILLOPN): Likewise.
36049         (ILL_ILLADR): Likewise.
36050         (ILL_ILLTRP): Likewise.
36051         (ILL_PRVOPC): Likewise.
36052         (ILL_PRVREG): Likewise.
36053         (ILL_COPROC): Likewise.
36054         (ILL_BADSTK): Likewise.
36055         (FPE_INTDIV): Likewise.
36056         (FPE_INTOVF): Likewise.
36057         (FPE_FLTDIV): Likewise.
36058         (FPE_FLTOVF): Likewise.
36059         (FPE_FLTUND): Likewise.
36060         (FPE_FLTRES): Likewise.
36061         (FPE_FLTINV): Likewise.
36062         (FPE_FLTSUB): Likewise.
36063         (SEGV_MAPERR): Likewise.
36064         (SEGV_ACCERR): Likewise.
36065         (BUS_ADRALN): Likewise.
36066         (BUS_ADRERR): Likewise.
36067         (BUS_OBJERR): Likewise.
36068         (BUS_MCEERR_AR): Likewise.
36069         (BUS_MCEERR_AO): Likewise.
36070         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36071         (TRAP_TRACE): Likewise.
36072         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36073         __USE_XOPEN2K8].
36074         (CLD_KILLED): Likewise.
36075         (CLD_DUMPED): Likewise.
36076         (CLD_TRAPPED): Likewise.
36077         (CLD_STOPPED): Likewise.
36078         (CLD_CONTINUED): Likewise.
36079         (POLL_IN): Likewise.
36080         (POLL_OUT): Likewise.
36081         (POLL_MSG): Likewise.
36082         (POLL_ERR): Likewise.
36083         (POLL_PRI): Likewise.
36084         (POLL_HUP): Likewise.
36085         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
36086         (ILL_ILLOPN): Likewise.
36087         (ILL_ILLADR): Likewise.
36088         (ILL_ILLTRP): Likewise.
36089         (ILL_PRVOPC): Likewise.
36090         (ILL_PRVREG): Likewise.
36091         (ILL_COPROC): Likewise.
36092         (ILL_BADSTK): Likewise.
36093         (ILL_DBLFLT): Likewise.
36094         (ILL_HARDWALL): Likewise.
36095         (FPE_INTDIV): Likewise.
36096         (FPE_INTOVF): Likewise.
36097         (FPE_FLTDIV): Likewise.
36098         (FPE_FLTOVF): Likewise.
36099         (FPE_FLTUND): Likewise.
36100         (FPE_FLTRES): Likewise.
36101         (FPE_FLTINV): Likewise.
36102         (FPE_FLTSUB): Likewise.
36103         (SEGV_MAPERR): Likewise.
36104         (SEGV_ACCERR): Likewise.
36105         (BUS_ADRALN): Likewise.
36106         (BUS_ADRERR): Likewise.
36107         (BUS_OBJERR): Likewise.
36108         (BUS_MCEERR_AR): Likewise.
36109         (BUS_MCEERR_AO): Likewise.
36110         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36111         (TRAP_TRACE): Likewise.
36112         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36113         __USE_XOPEN2K8].
36114         (CLD_KILLED): Likewise.
36115         (CLD_DUMPED): Likewise.
36116         (CLD_TRAPPED): Likewise.
36117         (CLD_STOPPED): Likewise.
36118         (CLD_CONTINUED): Likewise.
36119         (POLL_IN): Likewise.
36120         (POLL_OUT): Likewise.
36121         (POLL_MSG): Likewise.
36122         (POLL_ERR): Likewise.
36123         (POLL_PRI): Likewise.
36124         (POLL_HUP): Likewise.
36125         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
36126         (ILL_ILLOPN): Likewise.
36127         (ILL_ILLADR): Likewise.
36128         (ILL_ILLTRP): Likewise.
36129         (ILL_PRVOPC): Likewise.
36130         (ILL_PRVREG): Likewise.
36131         (ILL_COPROC): Likewise.
36132         (ILL_BADSTK): Likewise.
36133         (FPE_INTDIV): Likewise.
36134         (FPE_INTOVF): Likewise.
36135         (FPE_FLTDIV): Likewise.
36136         (FPE_FLTOVF): Likewise.
36137         (FPE_FLTUND): Likewise.
36138         (FPE_FLTRES): Likewise.
36139         (FPE_FLTINV): Likewise.
36140         (FPE_FLTSUB): Likewise.
36141         (SEGV_MAPERR): Likewise.
36142         (SEGV_ACCERR): Likewise.
36143         (BUS_ADRALN): Likewise.
36144         (BUS_ADRERR): Likewise.
36145         (BUS_OBJERR): Likewise.
36146         (BUS_MCEERR_AR): Likewise.
36147         (BUS_MCEERR_AO): Likewise.
36148         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36149         (TRAP_TRACE): Likewise.
36150         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36151         __USE_XOPEN2K8].
36152         (CLD_KILLED): Likewise.
36153         (CLD_DUMPED): Likewise.
36154         (CLD_TRAPPED): Likewise.
36155         (CLD_STOPPED): Likewise.
36156         (CLD_CONTINUED): Likewise.
36157         (POLL_IN): Likewise.
36158         (POLL_OUT): Likewise.
36159         (POLL_MSG): Likewise.
36160         (POLL_ERR): Likewise.
36161         (POLL_PRI): Likewise.
36162         (POLL_HUP): Likewise.
36163         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
36164         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
36165
36166         [BZ #16670]
36167         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
36168         before #include of <time.h>.
36169         [!__USE_XOPEN2K] (__need_timespec): Likewise.
36170         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
36171         (test-xfail-UNIX98/sched.h/conform): Likewise.
36172
36173 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
36174
36175         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
36176         error absence of trapping exception support.
36177         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
36178
36179 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
36180
36181         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
36182         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
36183         * timezone/Makefile (testdata): Move definition above include of
36184         Rules.
36185         (test-zones): New variable.
36186         (tests-special): Add zone files.
36187         (build-testdata): Use $(evaluate-test).
36188
36189         * elf/Makefile (tests-special): Rename tests to end with .out.
36190         ($(objpfx)noload-mem): Likewise.
36191         ($(objpfx)tst-leaks1-mem): Likewise.
36192         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
36193         * iconv/Makefile (xtests-special): Change test-iconvconfig to
36194         $(objpfx)test-iconvconfig.out.
36195         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
36196         set -e inside subshell and redirect output to file.
36197         * iconvdata/Makefile (generated): Rename tests to end with .out.
36198         Correct type.
36199         (tests-special): Rename tests to end with .out.
36200         ($(objpfx)mtrace-tst-loading): Likewise.
36201         * intl/Makefile (generated): Likewise.
36202         (tests-special): Likewise.
36203         ($(objpfx)mtrace-tst-gettext): Likewise.
36204         * misc/Makefile (generated): Likewise.
36205         (tests-special): Likewise.
36206         ($(objpfx)tst-error1-mem): Likewise.
36207         * nptl/Makefile (tests-special): Likewise.
36208         ($(objpfx)tst-stack3-mem): Likewise.
36209         (generated): Likewise.
36210         * posix/Makefile (generated): Likewise.
36211         (tests-special): Likewise.
36212         (xtests-special): Likewise.
36213         ($(objpfx)tst-fnmatch-mem): Likewise.
36214         ($(objpfx)bug-regex2-mem): Likewise.
36215         ($(objpfx)bug-regex14-mem): Likewise.
36216         ($(objpfx)bug-regex21-mem): Likewise.
36217         ($(objpfx)bug-regex31-mem): Likewise.
36218         ($(objpfx)tst-vfork3-mem): Likewise.
36219         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
36220         ($(objpfx)tst-pcre-mem): Likewise.
36221         ($(objpfx)tst-boost-mem): Likewise.
36222         ($(objpfx)bug-ga2-mem): Likewise.
36223         ($(objpfx)bug-glob2-mem): Likewise.
36224         * resolv/Makefile (generate): Likewise.
36225         (tests-special): Likewise.
36226         (xtests-special): Likewise.
36227         (generated): Likewise.
36228         ($(objpfx)mtrace-tst-leaks): Likewise.
36229         ($(objpfx)mtrace-tst-leaks2): Likewise.
36230
36231         * scripts/merge-test-results.sh: New file.
36232         * Makefile (tests-special-notdir): New variable.
36233         (tests): Run merge-test-results.sh.
36234         (xtests): Likewise.
36235         * Rules (tests-special-notdir): New variable.
36236         (xtests-special-notdir): Likewise.
36237         (tests): Run merge-test-results.sh
36238         (xtests): Likewise.
36239
36240         * Makeconfig (test-xfail-name): New variable.
36241         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
36242         compute variable name for expected failures.
36243         * conform/Makefile (conformtest-headers-data): New variable.
36244         (conformtest-standards): Likewise.
36245         (conformtest-headers-ISO): Likewise.
36246         (conformtest-headers-ISO99): Likewise.
36247         (conformtest-headers-ISO11): Likewise.
36248         (conformtest-headers-POSIX): Likewise.
36249         (conformtest-headers-XPG3): Likewise.
36250         (conformtest-headers-XPG4): Likewise.
36251         (conformtest-headers-UNIX98): Likewise.
36252         (conformtest-headers-XOPEN2K): Likewise.
36253         (conformtest-headers-POSIX2008): Likewise.
36254         (conformtest-headers-XOPEN2K8): Likewise.
36255         (conformtest-header-list-base): Likewise.
36256         (conformtest-header-list-tests): Likewise.
36257         (conformtest-header-base): Likewise.
36258         (conformtest-header-tests): Likewise.
36259         (tests-special): Add $(conformtest-header-list-tests).  If
36260         [$(fast-check) && !$(cross-compiling)], add
36261         $(conformtest-header-tests) instead of
36262         $(objpfx)run-conformtest.out.
36263         (generated): Add $(conformtest-header-list-base).  If
36264         [$(fast-check) && !$(cross-compiling)], add
36265         $(conformtest-header-base).  Remove previous setting.
36266         ($(conformtest-header-list-tests)): New target.
36267         (test-xfail-run-conformtest): Remove variable.
36268         ($(objpfx)run-conformtest.out): Remove target.
36269         (test-xfail-ISO11/complex.h/conform): New variable.
36270         (test-xfail-ISO11/stdalign.h/conform): Likewise.
36271         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
36272         (test-xfail-XPG3/varargs.h/conform): Likewise.
36273         (test-xfail-XPG4/varargs.h/conform): Likewise.
36274         (test-xfail-UNIX98/varargs.h/conform): Likewise.
36275         (test-xfail-XPG4/ndbm.h/conform): Likewise.
36276         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
36277         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
36278         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
36279         (test-xfail-XPG3/fcntl.h/conform): Likewise.
36280         (test-xfail-XPG3/ftw.h/conform): Likewise.
36281         (test-xfail-XPG3/grp.h/conform): Likewise.
36282         (test-xfail-XPG3/langinfo.h/conform): Likewise.
36283         (test-xfail-XPG3/limits.h/conform): Likewise.
36284         (test-xfail-XPG3/pwd.h/conform): Likewise.
36285         (test-xfail-XPG3/search.h/conform): Likewise.
36286         (test-xfail-XPG3/signal.h/conform): Likewise.
36287         (test-xfail-XPG3/stdio.h/conform): Likewise.
36288         (test-xfail-XPG3/stdlib.h/conform): Likewise.
36289         (test-xfail-XPG3/string.h/conform): Likewise.
36290         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
36291         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
36292         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
36293         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
36294         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
36295         (test-xfail-XPG3/sys/types.h/conform): Likewise.
36296         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
36297         (test-xfail-XPG3/termios.h/conform): Likewise.
36298         (test-xfail-XPG3/time.h/conform): Likewise.
36299         (test-xfail-XPG3/unistd.h/conform): Likewise.
36300         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
36301         (test-xfail-XPG4/fcntl.h/conform): Likewise.
36302         (test-xfail-XPG4/langinfo.h/conform): Likewise.
36303         (test-xfail-XPG4/netdb.h/conform): Likewise.
36304         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
36305         (test-xfail-XPG4/signal.h/conform): Likewise.
36306         (test-xfail-XPG4/stdio.h/conform): Likewise.
36307         (test-xfail-XPG4/stdlib.h/conform): Likewise.
36308         (test-xfail-XPG4/stropts.h/conform): Likewise.
36309         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
36310         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
36311         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
36312         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
36313         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
36314         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
36315         (test-xfail-XPG4/sys/time.h/conform): Likewise.
36316         (test-xfail-XPG4/sys/types.h/conform): Likewise.
36317         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
36318         (test-xfail-XPG4/termios.h/conform): Likewise.
36319         (test-xfail-XPG4/ucontext.h/conform): Likewise.
36320         (test-xfail-XPG4/unistd.h/conform): Likewise.
36321         (test-xfail-XPG4/utmpx.h/conform): Likewise.
36322         (test-xfail-POSIX/sched.h/conform): Likewise.
36323         (test-xfail-POSIX/signal.h/conform): Likewise.
36324         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
36325         (test-xfail-POSIX/tar.h/conform): Likewise.
36326         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
36327         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
36328         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
36329         (test-xfail-UNIX98/netdb.h/conform): Likewise.
36330         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
36331         (test-xfail-UNIX98/sched.h/conform): Likewise.
36332         (test-xfail-UNIX98/signal.h/conform): Likewise.
36333         (test-xfail-UNIX98/stdio.h/conform): Likewise.
36334         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
36335         (test-xfail-UNIX98/stropts.h/conform): Likewise.
36336         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
36337         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
36338         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
36339         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
36340         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
36341         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
36342         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
36343         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
36344         (test-xfail-UNIX98/unistd.h/conform): Likewise.
36345         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
36346         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
36347         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
36348         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
36349         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
36350         (test-xfail-XOPEN2K/math.h/conform): Likewise.
36351         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
36352         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
36353         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
36354         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
36355         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
36356         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
36357         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
36358         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
36359         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
36360         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
36361         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
36362         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
36363         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
36364         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
36365         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
36366         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
36367         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
36368         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
36369         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
36370         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
36371         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
36372         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
36373         (test-xfail-POSIX2008/signal.h/conform): Likewise.
36374         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
36375         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
36376         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
36377         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
36378         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
36379         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
36380         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
36381         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
36382         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
36383         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
36384         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
36385         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
36386         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
36387         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
36388         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
36389         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
36390         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
36391         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
36392         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
36393         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
36394         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
36395         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
36396         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
36397         (conformtest-cc-flags): Likewise.
36398         ($(conformtest-header-tests): New target.
36399         * conform/check-header-lists.sh: New file.
36400         * conform/run-conformtest.sh: Remove.
36401
36402         * conform/conformtest.pl: Allow ' and \ in values given for
36403         constants.
36404         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
36405         inclusion.
36406         [POSIX] (sys/types.h): Likewise.
36407         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
36408         inclusion.
36409         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
36410         inclusion.
36411         * conform/data/signal.h-data (SIGIO): Remove expectation.
36412         [XPG3] (SIGBUS): Do not expect.
36413         [POSIX || XPG3] (SIGPOLL): Likewise.
36414         [POSIX || XPG3] (SIGPROF): Likewise.
36415         [POSIX || XPG3] (SIGSYS): Likewise.
36416         [XPG3] (SIGTRAP): Likewise.
36417         [POSIX || XPG3] (SIGURG): Likewise.
36418         [POSIX || XPG3] (SIGVTALRM): Likewise.
36419         [POSIX || XPG3] (SIGXCPU): Likewise.
36420         [POSIX || XPG3] (SIGXFSZ): Likewise.
36421         [POSIX] (SA_SIGINFO): Expect.
36422         [XPG3] (siginfo_t): Do not expect type or contents.
36423         [POSIX] (si_pid): Do not expect element.
36424         [POSIX] (si_uid): Likewise.
36425         [POSIX] (si_addr): Likewise.
36426         [POSIX] (si_status): Likewise.
36427         [POSIX] (si_band): Likewise.
36428         [XPG4] (si_value): Likewise.
36429         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
36430         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
36431         [POSIX || XPG3] (ILL_ILLADR): Likewise.
36432         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
36433         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
36434         [POSIX || XPG3] (ILL_PRVREG): Likewise.
36435         [POSIX || XPG3] (ILL_COPROC): Likewise.
36436         [POSIX || XPG3] (ILL_BADSTK): Likewise.
36437         [POSIX || XPG3] (FPE_INTDIV): Likewise.
36438         [POSIX || XPG3] (FPE_INTOVF): Likewise.
36439         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
36440         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
36441         [POSIX || XPG3] (FPE_FLTUND): Likewise.
36442         [POSIX || XPG3] (FPE_FLTRES): Likewise.
36443         [POSIX || XPG3] (FPE_FLTINV): Likewise.
36444         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
36445         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
36446         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
36447         [POSIX || XPG3] (BUS_ADRALN): Likewise.
36448         [POSIX || XPG3] (BUS_ADRERR): Likewise.
36449         [POSIX || XPG3] (BUS_OBJERR): Likewise.
36450         [POSIX || XPG3] (CLD_EXITED): Likewise.
36451         [POSIX || XPG3] (CLD_KILLED): Likewise.
36452         [POSIX || XPG3] (CLD_DUMPED): Likewise.
36453         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
36454         [POSIX || XPG3] (CLD_STOPPED): Likewise.
36455         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
36456         [POSIX || XPG3] (POLL_IN): Likewise.
36457         [POSIX || XPG3] (POLL_OUT): Likewise.
36458         [POSIX || XPG3] (POLL_MSG): Likewise.
36459         [POSIX || XPG3] (POLL_ERR): Likewise.
36460         [POSIX || XPG3] (POLL_PRI): Likewise.
36461         [POSIX || XPG3] (POLL_HUP): Likewise.
36462         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
36463         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
36464         (SIG*): Do not allow.
36465         [XPG3] (si_*): Likewise.
36466         [XPG3] (SI_*): Likewise.
36467         [XPG3 || XPG4] (sigev_*): Likewise.
36468         [XPG3 || XPG4] (SIGEV_*): Likewise.
36469         [XPG3 || XPG4] (sival_*): Likewise.
36470         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
36471         [POSIX || XPG3] (BUS_*): Likewise.
36472         [POSIX || XPG3] (CLD_*): Likewise.
36473         [POSIX || XPG3] (FPE_*): Likewise.
36474         [POSIX || XPG3] (ILL_*): Likewise.
36475         [POSIX || XPG3] (POLL_*): Likewise.
36476         [POSIX || XPG3] (SEGV_*): Likewise.
36477         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
36478         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
36479         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
36480         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
36481         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
36482         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
36483         Specify type and value.
36484         (TVERSLEN): Likewise.
36485         (REGTYPE): Likewise.
36486         (AREGTYPE): Likewise.
36487         (LNKTYPE): Likewise.
36488         (SYMTYPE): Likewise.
36489         (CHRTYPE): Likewise.
36490         (BLKTYPE): Likewise.
36491         (DIRTYPE): Likewise.
36492         (FIFOTYPE): Likewise.
36493         (CONTTYPE): Likewise.
36494         (TSUID): Likewise.
36495         (TSGID): Likewise.
36496         (TSVTX): Likewise.
36497         (TUREAD): Likewise.
36498         (TUWRITE): Likewise.
36499         (TUEXEC): Likewise.
36500         (TGREAD): Likewise.
36501         (TGWRITE): Likewise.
36502         (TGEXEC): Likewise.
36503         (TOREAD): Likewise.
36504         (TOWRITE): Likewise.
36505         (TOEXEC): Likewise.
36506         [POSIX] (TSVTX): Expect constant.
36507
36508 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
36509
36510         * Makefile (tests): Change dependencies to ....
36511         (tests-special): ... additions to this variable.
36512         (tests): Depend on $(tests-special).
36513         * Makerules (check-abi-list): New variable.
36514         (check-abi): Depend on $(check-abi-list).
36515         [$(subdir) = elf] (tests-special): Add
36516         $(objpfx)check-abi-libc.out.
36517         [$(build-shared) = yes && subdir] (tests-special): Add
36518         $(check-abi-list).
36519         [$(build-shared) = yes && subdir] (tests): Do not depend on
36520         check-abi.
36521         * Rules (tests): Depend on $(tests-special).
36522         (xtests): Depend on $(xtests-special).
36523         * catgets/Makefile (tests): Change dependencies to ....
36524         (tests-special): ... additions to this variable.
36525         * conform/Makefile (tests): Change dependencies to ....
36526         (tests-special): ... additions to this variable.
36527         * elf/Makefile (tests): Change dependencies to ....
36528         (tests-special): ... additions to this variable.
36529         * grp/Makefile (tests): Change dependencies to ....
36530         (tests-special): ... additions to this variable.
36531         * iconv/Makefile (xtests): Change dependencies to ....
36532         (xtests-special): ... additions to this variable.
36533         * iconvdata/Makefile (tests): Change dependencies to ....
36534         (tests-special): ... additions to this variable.
36535         * intl/Makefile (tests): Change dependencies to ....
36536         (tests-special): ... additions to this variable.  Also add
36537         $(objpfx)tst-gettext.out.
36538         * io/Makefile (tests): Change dependencies to ....
36539         (tests-special): ... additions to this variable.
36540         * libio/Makefile (tests): Change dependencies to ....
36541         (tests-special): ... additions to this variable.
36542         * malloc/Makefile (tests): Change dependencies to ....
36543         (tests-special): ... additions to this variable.
36544         * misc/Makefile (tests): Change dependencies to ....
36545         (tests-special): ... additions to this variable.
36546         * nptl/Makefile (tests): Change dependencies to ....
36547         (tests-special): ... additions to this variable.
36548         * nptl_db/Makefile (tests): Change dependencies to ....
36549         (tests-special): ... additions to this variable.
36550         * posix/Makefile (tests): Change dependencies to ....
36551         (tests-special): ... additions to this variable.
36552         (xtests): Change dependencies to ....
36553         (xtests-special): ... additions to this variable.
36554         * resolv/Makefile (tests): Change dependencies to ....
36555         (tests-special): ... additions to this variable.
36556         (xtests): Change dependencies to ....
36557         (xtests-special): ... additions to this variable.
36558         * stdio-common/Makefile (tests): Change dependencies to ....
36559         (tests-special): ... additions to this variable.
36560         (do-tst-unbputc): Remove target.
36561         (do-tst-printf): Likewise.
36562         * stdlib/Makefile (tests): Change dependencies to ....
36563         (tests-special): ... additions to this variable.
36564         * string/Makefile (tests): Change dependencies to ....
36565         (tests-special): ... additions to this variable.
36566         * sysdeps/x86/Makefile (tests): Change dependencies to ....
36567         (tests-special): ... additions to this variable.
36568
36569         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
36570         whole file.
36571         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
36572         whole file.
36573         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
36574         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
36575
36576         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
36577         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
36578         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
36579         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
36580         * conform/data/libgen.h-data [XPG3]: Likewise.
36581         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
36582         * conform/data/ndbm.h-data [XPG3]: Likewise.
36583         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36584         * conform/data/netdb.h-data [XPG3]: Likewise.
36585         * conform/data/netinet/in.h-data [XPG3]: Likewise.
36586         * conform/data/poll.h-data [XPG3]: Likewise.
36587         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36588         * conform/data/strings.h-data [XPG3]: Likewise.
36589         * conform/data/stropts.h-data [XPG3]: Likewise.
36590         * conform/data/sys/mman.h-data [XPG3]: Likewise.
36591         * conform/data/sys/resource.h-data [XPG3]: Likewise.
36592         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
36593         Likewise.
36594         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
36595         * conform/data/sys/time.h-data [XPG3]: Likewise.
36596         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
36597         * conform/data/sys/uio.h-data [XPG3]: Likewise.
36598         * conform/data/sys/un.h-data [XPG3]: Likewise.
36599         * conform/data/syslog.h-data [XPG3]: Likewise.
36600         * conform/data/ucontext.h-data [XPG3]: Likewise.
36601         * conform/data/utmpx.h-data [XPG3]: Likewise.
36602         * conform/data/varargs.h-data [UNIX98]: Enable file.
36603
36604         * manual/Makefile (INSTALL_INFO): Remove variable setting.
36605
36606         * math/libm-test.inc (struct test_f_f_data): Move expected results
36607         into structure for each rounding mode.
36608         (struct test_ff_f_data): Likewise.
36609         (struct test_ff_f_data_nexttoward): Likewise.
36610         (struct test_fi_f_data): Likewise.
36611         (struct test_fl_f_data): Likewise.
36612         (struct test_if_f_data): Likewise.
36613         (struct test_fff_f_data): Likewise.
36614         (struct test_c_f_data): Likewise.
36615         (struct test_f_f1_data): Likewise.
36616         (struct test_fF_f1_data): Likewise.
36617         (struct test_ffI_f1_data): Likewise.
36618         (struct test_c_c_data): Likewise.
36619         (struct test_cc_c_data): Likewise.
36620         (struct test_f_i_data): Likewise.
36621         (struct test_ff_i_data): Likewise.
36622         (struct test_f_l_data): Likewise.
36623         (struct test_f_L_data): Likewise.
36624         (struct test_fFF_11_data): Likewise.
36625         (RM_): New macro.
36626         (RM_FE_DOWNWARD): Likewise.
36627         (RM_FE_TONEAREST): Likewise.
36628         (RM_FE_TOWARDZERO): Likewise.
36629         (RM_FE_UPWARD): Likewise.
36630         (RUN_TEST_LOOP_f_f): Update references to expected results.
36631         (RUN_TEST_LOOP_2_f): Likewise.
36632         (RUN_TEST_LOOP_fff_f): Likewise.
36633         (RUN_TEST_LOOP_c_f): Likewise.
36634         (RUN_TEST_LOOP_f_f1): Likewise.
36635         (RUN_TEST_LOOP_fF_f1): Likewise.
36636         (RUN_TEST_LOOP_fI_f1): Likewise.
36637         (RUN_TEST_LOOP_ffI_f1): Likewise.
36638         (RUN_TEST_LOOP_c_c): Likewise.
36639         (RUN_TEST_LOOP_cc_c): Likewise.
36640         (RUN_TEST_LOOP_f_i): Likewise.
36641         (RUN_TEST_LOOP_f_i_tg): Likewise.
36642         (RUN_TEST_LOOP_ff_i_tg): Likewise.
36643         (RUN_TEST_LOOP_f_b): Likewise.
36644         (RUN_TEST_LOOP_f_b_tg): Likewise.
36645         (RUN_TEST_LOOP_f_l): Likewise.
36646         (RUN_TEST_LOOP_f_L): Likewise.
36647         (RUN_TEST_LOOP_fFF_11): Likewise.
36648         * math/gen-libm-test.pl (parse_args): Output four copies of
36649         expected results for each test.
36650
36651         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36652         (__ASSUME_UTIMES): Remove.
36653         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36654         (__ASSUME_UTIMES): Likewise.
36655
36656         * math/gen-auto-libm-tests.c: Update comment on output format.
36657         (output_for_one_input_case): Generate before-rounding and
36658         after-rounding information as conditions on output flags not
36659         floating-point format.
36660         * math/auto-libm-test-out: Regenerated.
36661         * math/gen-libm-test.pl (cond_value): New function.
36662         (or_cond_value): Use cond_value.
36663         (generate_testfile): Handle conditional exceptions.
36664
36665 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
36666
36667         * math/libm-test.inc (max_valid_error): New variable.
36668         (init_max_error): Take new argument specifying whether function
36669         results are exactly determined.  Set max_valid_error and bound
36670         other variables for errors based on this argument.
36671         (set_max_error): Do not record results above max_valid_error.
36672         (check_float_internal): Only accept errors of up to 0.5ulps if
36673         also at most max_valid_error.
36674         (START): Take new argument EXACT and pass it to init_max_error.
36675         (acos_test): Update call to START.
36676         (acos_test_tonearest): Likewise.
36677         (acos_test_towardzero): Likewise.
36678         (acos_test_downward): Likewise.
36679         (acos_test_upward): Likewise.
36680         (acosh_test): Likewise.
36681         (asin_test): Likewise.
36682         (asin_test_tonearest): Likewise.
36683         (asin_test_towardzero): Likewise.
36684         (asin_test_downward): Likewise.
36685         (asin_test_upward): Likewise.
36686         (asinh_test): Likewise.
36687         (atan_test): Likewise.
36688         (atanh_test): Likewise.
36689         (atan2_test): Likewise.
36690         (cabs_test): Likewise.
36691         (cacos_test): Likewise.
36692         (cacosh_test): Likewise.
36693         (carg_test): Likewise.
36694         (casin_test): Likewise.
36695         (casinh_test): Likewise.
36696         (catan_test): Likewise.
36697         (catanh_test): Likewise.
36698         (cbrt_test): Likewise.
36699         (ccos_test): Likewise.
36700         (ccosh_test): Likewise.
36701         (ceil_test): Likewise.
36702         (cexp_test): Likewise.
36703         (cimag_test): Likewise.
36704         (clog_test): Likewise.
36705         (clog10_test): Likewise.
36706         (conj_test): Likewise.
36707         (copysign_test): Likewise.
36708         (cos_test): Likewise.
36709         (cos_test_tonearest): Likewise.
36710         (cos_test_towardzero): Likewise.
36711         (cos_test_downward): Likewise.
36712         (cos_test_upward): Likewise.
36713         (cosh_test): Likewise.
36714         (cosh_test_tonearest): Likewise.
36715         (cosh_test_towardzero): Likewise.
36716         (cosh_test_downward): Likewise.
36717         (cosh_test_upward): Likewise.
36718         (cpow_test): Likewise.
36719         (cproj_test): Likewise.
36720         (creal_test): Likewise.
36721         (csin_test): Likewise.
36722         (csinh_test): Likewise.
36723         (csqrt_test): Likewise.
36724         (ctan_test): Likewise.
36725         (ctan_test_tonearest): Likewise.
36726         (ctan_test_towardzero): Likewise.
36727         (ctan_test_downward): Likewise.
36728         (ctan_test_upward): Likewise.
36729         (ctanh_test): Likewise.
36730         (ctanh_test_tonearest): Likewise.
36731         (ctanh_test_towardzero): Likewise.
36732         (ctanh_test_downward): Likewise.
36733         (ctanh_test_upward): Likewise.
36734         (erf_test): Likewise.
36735         (erfc_test): Likewise.
36736         (exp_test): Likewise.
36737         (exp_test_tonearest): Likewise.
36738         (exp_test_towardzero): Likewise.
36739         (exp_test_downward): Likewise.
36740         (exp_test_upward): Likewise.
36741         (exp10_test): Likewise.
36742         (exp10_test_tonearest): Likewise.
36743         (exp10_test_towardzero): Likewise.
36744         (exp10_test_downward): Likewise.
36745         (exp10_test_upward): Likewise.
36746         (pow10_test): Likewise.
36747         (exp2_test): Likewise.
36748         (expm1_test): Likewise.
36749         (expm1_test_tonearest): Likewise.
36750         (expm1_test_towardzero): Likewise.
36751         (expm1_test_downward): Likewise.
36752         (expm1_test_upward): Likewise.
36753         (fabs_test): Likewise.
36754         (fdim_test): Likewise.
36755         (floor_test): Likewise.
36756         (fma_test): Likewise.
36757         (fma_test_towardzero): Likewise.
36758         (fma_test_downward): Likewise.
36759         (fma_test_upward): Likewise.
36760         (fmax_test): Likewise.
36761         (fmin_test): Likewise.
36762         (fmod_test): Likewise.
36763         (fpclassify_test): Likewise.
36764         (frexp_test): Likewise.
36765         (hypot_test): Likewise.
36766         (ilogb_test): Likewise.
36767         (isfinite_test): Likewise.
36768         (finite_test): Likewise.
36769         (isgreater_test): Likewise.
36770         (isgreaterequal_test): Likewise.
36771         (isinf_test): Likewise.
36772         (isless_test): Likewise.
36773         (islessequal_test): Likewise.
36774         (islessgreater_test): Likewise.
36775         (isnan_test): Likewise.
36776         (isnormal_test): Likewise.
36777         (issignaling_test): Likewise.
36778         (isunordered_test): Likewise.
36779         (j0_test): Likewise.
36780         (j1_test): Likewise.
36781         (jn_test): Likewise.
36782         (ldexp_test): Likewise.
36783         (lgamma_test): Likewise.
36784         (gamma_test): Likewise.
36785         (lrint_test): Likewise.
36786         (lrint_test_tonearest): Likewise.
36787         (lrint_test_towardzero): Likewise.
36788         (lrint_test_downward): Likewise.
36789         (lrint_test_upward): Likewise.
36790         (llrint_test): Likewise.
36791         (llrint_test_tonearest): Likewise.
36792         (llrint_test_towardzero): Likewise.
36793         (llrint_test_downward): Likewise.
36794         (llrint_test_upward): Likewise.
36795         (log_test): Likewise.
36796         (log10_test): Likewise.
36797         (log1p_test): Likewise.
36798         (log2_test): Likewise.
36799         (logb_test): Likewise.
36800         (logb_test_downward): Likewise.
36801         (lround_test): Likewise.
36802         (llround_test): Likewise.
36803         (modf_test): Likewise.
36804         (nearbyint_test): Likewise.
36805         (nextafter_test): Likewise.
36806         (nexttoward_test): Likewise.
36807         (pow_test): Likewise.
36808         (pow_test_tonearest): Likewise.
36809         (pow_test_towardzero): Likewise.
36810         (pow_test_downward): Likewise.
36811         (pow_test_upward): Likewise.
36812         (remainder_test): Likewise.
36813         (drem_test): Likewise.
36814         (remainder_test_tonearest): Likewise.
36815         (drem_test_tonearest): Likewise.
36816         (remainder_test_towardzero): Likewise.
36817         (drem_test_towardzero): Likewise.
36818         (remainder_test_downward): Likewise.
36819         (drem_test_downward): Likewise.
36820         (remainder_test_upward): Likewise.
36821         (drem_test_upward): Likewise.
36822         (remquo_test): Likewise.
36823         (rint_test): Likewise.
36824         (rint_test_tonearest): Likewise.
36825         (rint_test_towardzero): Likewise.
36826         (rint_test_downward): Likewise.
36827         (rint_test_upward): Likewise.
36828         (round_test): Likewise.
36829         (scalb_test): Likewise.
36830         (scalbn_test): Likewise.
36831         (scalbln_test): Likewise.
36832         (signbit_test): Likewise.
36833         (sin_test): Likewise.
36834         (sin_test_tonearest): Likewise.
36835         (sin_test_towardzero): Likewise.
36836         (sin_test_downward): Likewise.
36837         (sin_test_upward): Likewise.
36838         (sincos_test): Likewise.
36839         (sinh_test): Likewise.
36840         (sinh_test_tonearest): Likewise.
36841         (sinh_test_towardzero): Likewise.
36842         (sinh_test_downward): Likewise.
36843         (sinh_test_upward): Likewise.
36844         (sqrt_test): Likewise.
36845         (sqrt_test_tonearest): Likewise.
36846         (sqrt_test_towardzero): Likewise.
36847         (sqrt_test_downward): Likewise.
36848         (sqrt_test_upward): Likewise.
36849         (tan_test): Likewise.
36850         (tan_test_tonearest): Likewise.
36851         (tan_test_towardzero): Likewise.
36852         (tan_test_downward): Likewise.
36853         (tan_test_upward): Likewise.
36854         (tanh_test): Likewise.
36855         (tgamma_test): Likewise.
36856         (trunc_test): Likewise.
36857         (y0_test): Likewise.
36858         (y1_test): Likewise.
36859         (yn_test): Likewise.
36860         (significand_test): Likewise.
36861
36862         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
36863         individual tests in comment.
36864         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
36865         (prev_max_error): New variable.
36866         (prev_real_max_error): Likewise.
36867         (prev_imag_max_error): Likewise.
36868         (compare_ulp_data): Don't refer to test names in comment.
36869         (find_test_ulps): Remove function.
36870         (find_function_ulps): Likewise.
36871         (find_complex_function_ulps): Likewise.
36872         (init_max_error): Take function name as argument.  Look up ulps
36873         for that function.
36874         (print_ulps): Remove function.
36875         (print_max_error): Use prev_max_error instead of calling
36876         find_function_ulps.
36877         (print_complex_max_error): Use prev_real_max_error and
36878         prev_imag_max_error instead of calling find_complex_function_ulps.
36879         (check_float_internal): Take max_ulp parameter instead of calling
36880         find_test_ulps.  Don't call print_ulps.
36881         (check_float): Update call to check_float_internal.
36882         (check_complex): Update calls to check_float_internal.
36883         (START): Pass argument to init_max_error.
36884         * math/gen-libm-test.pl (%results): Don't include "kind"
36885         information.
36886         (parse_ulps): Don't handle ulps of individual tests.
36887         (print_ulps_file): Likewise.
36888         (output_ulps): Likewise.
36889         * math/README.libm-test: Update.
36890         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
36891         individual tests.
36892         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
36893         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
36894         * sysdeps/arm/libm-test-ulps: Likewise.
36895         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
36896         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
36897         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
36898         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
36899         * sysdeps/microblaze/libm-test-ulps: Likewise.
36900         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
36901         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
36902         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36903         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
36904         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
36905         * sysdeps/sh/libm-test-ulps: Likewise.
36906         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
36907         * sysdeps/tile/libm-test-ulps: Likewise.
36908         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36909
36910 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
36911
36912         * math/libm-test.inc (print_complex_max_error): Check separately
36913         whether real and imaginary errors are within allowed range and
36914         pass 0 to print_complex_function_ulps instead of value within
36915         allowed range.
36916
36917 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
36918
36919         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
36920         formatting.
36921         (get_handles_fopen): Likewise.
36922         (do_write_test): Likewise.
36923
36924         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
36925
36926         * libio/fileops.c (do_ftell): Use cached offset when
36927         available.
36928         * libio/iofwide.c (do_ftell_wide): Likewise.
36929         * libio/iofdopen.c (_IO_new_fdopen): Don't use
36930         _IO_file_attach.
36931         * libio/wfileops.c (_IO_fwide): Don't cache offset.
36932
36933         [BZ #16532]
36934         * libio/libioP.h (get_file_offset): New function.
36935         * libio/fileops.c (get_file_offset): Likewise.
36936         (do_ftell): Likewise.
36937         (_IO_new_file_seekoff): Split out ftell logic.
36938         * libio/wfileops.c (do_ftell_wide): Likewise.
36939         (_IO_wfile_seekoff): Split out ftell logic.
36940         * libio/tst-ftell-active-handler.c: New test case.
36941         * libio/Makefile (tests): Add it.
36942
36943 2014-03-03  Roland McGrath  <roland@hack.frob.com>
36944
36945         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
36946         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
36947
36948 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
36949
36950         [BZ #16639]
36951         * nscd/connections.c (nscd_init): Call do_exit.
36952         (start_threads): Call do_exit and notify_parent.
36953         (begin_drop_privileges): Call do_exit.
36954         (finish_drop_privileges): Likewise.
36955         * nscd/selinux.c (preserve_capabilities): Likewise.
36956         (install_real_capabilities): Likewise.
36957         (nscd_selinux_enabled): Likewise.
36958         (avc_create_thread): Likewise.
36959         (avc_alloc_lock): Likewise.
36960         (nscd_avc_init): Likewise.
36961         * nscd/nscd.c (parent_fd): New static variable.
36962         (main): Create a pipe between parent and child processes.
36963         Skip closing parent_fd.
36964         (monitor_child): New function.
36965         (do_exit): Likewise.
36966         (notify_parent): Likewise.
36967         * nscd/nscd.h (notify_parent): Likewise.
36968         (do_exit): Likewise.
36969
36970 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
36971
36972         * malloc/malloc.c (__libc_calloc): Revert last change.
36973
36974 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36975
36976         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36977
36978 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
36979
36980         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
36981         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
36982         implementation.
36983         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
36984         (__libc_ifunc_impl_list): Likewise.
36985         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
36986         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
36987         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
36988         * string/strrchr.c: Define STRRCHR.
36989
36990 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
36991
36992         * benchtest/bench-strtok.c (simple_strtok): Delete.
36993         (strtok_string): Use as benchmark.
36994         * string/strtok (STRTOK): New macro.
36995
36996 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
36997
36998         * manual/threads.texi: Add header and standard comments to all
36999         functions.
37000
37001         * elf/dl-lookup.c (check_match): New function.
37002         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
37003         (do_lookup_x): Remove nested function check_match. Use non-nested
37004         function check_match.
37005
37006 2014-02-28  Roland McGrath  <roland@hack.frob.com>
37007
37008         * csu/Makefile (generated, before-compile): Use += rather than =.
37009         * catgets/Makefile (generated, generated-dirs): Likewise.
37010         * debug/Makefile (generated): Likewise.
37011         * dlfcn/Makefile (generated): Likewise.
37012         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
37013         * iconvdata/Makefile (before-compile, generated): Likewise.
37014         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
37015         * libio/Makefile (generated): Likewise.
37016         * malloc/Makefile (generated): Likewise.
37017         * manual/Makefile (generated, generated-dirs): Likewise.
37018         * misc/Makefile (generated): Likewise.
37019         * posix/Makefile (generated): Likewise.
37020         * resolv/Makefile (generated): Likewise.
37021         * sunrpc/Makefile (generated, generated-dirs): Likewise.
37022         * timezone/Makefile (generated, generated-dirs): Likewise.
37023
37024         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
37025
37026 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37027
37028         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
37029         power8 implementation.
37030         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
37031         file: POWER8 llround ifunc implementation.
37032         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
37033         (__lllround): Add POWER8 implementation.
37034         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
37035         POWER8 llround implementation.
37036
37037         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
37038         power8 implementation.
37039         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
37040         file: POWER8 llrint ifunc implementation.
37041         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
37042         Add POWER8 implementation.
37043         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
37044         POWER8 llrint implementation.
37045
37046         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
37047         power8 implementation.
37048         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
37049         file: POWER8 finite ifunc implementation.
37050         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
37051         Add POWER8 implementation.
37052         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
37053         Likewise.
37054         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
37055         POWER8 finite implementation.
37056         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
37057
37058         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
37059         power8 implementation.
37060         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
37061         file: POWER8 isinf ifunc implementation.
37062         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
37063         POWER8 implementation.
37064         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
37065         Likewise.
37066         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
37067         isinf implementation.
37068         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
37069
37070         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
37071         (INIT_ARCH): Add hwcap2 initialization.
37072         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
37073         power8 implementation.
37074         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
37075         file: POWER8 isnan ifunc implementation.
37076         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
37077         POWER8 implementation.
37078         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
37079         Likewise.
37080         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
37081         isnan implementation.
37082         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
37083
37084 2014-02-27  Joey Ye  <joey.ye@arm.com>
37085
37086         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
37087         (_FP_NANFRAC_Q): Set to zero.
37088
37089 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
37090
37091         [BZ #16623]
37092         * math/auto-libm-test-in: New test inputs.
37093         * math/auto-libm-test-out: Regenerate.
37094         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
37095         and DA.
37096         (__cos): Likewise.
37097         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
37098
37099 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
37100
37101         * scripts/evaluate-test.sh: Take new argument indicating whether
37102         failure is expected.
37103         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
37104         indicating whether failure is expected.
37105         * conform/Makefile (test-xfail-run-conformtest): New variable.
37106         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
37107         level.
37108         * posix/Makefile (test-xfail-annexc): New variable.
37109         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
37110
37111 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
37112
37113         * argp/Makefile: Include Makeconfig immediately after defining
37114         subdir.
37115         * assert/Makefile: Likewise.
37116         * benchtests/Makefile: Likewise.
37117         * catgets/Makefile: Likewise.
37118         * conform/Makefile: Likewise.
37119         * crypt/Makefile: Likewise.
37120         * csu/Makefile: Likewise.
37121         (all): Remove target.
37122         * ctype/Makefile: Include Makeconfig immediately after defining
37123         subdir.
37124         * debug/Makefile: Likewise.
37125         * dirent/Makefile: Likewise.
37126         * dlfcn/Makefile: Likewise.
37127         * gmon/Makefile: Likewise.
37128         * gnulib/Makefile: Likewise.
37129         * grp/Makefile: Likewise.
37130         * gshadow/Makefile: Likewise.
37131         * hesiod/Makefile: Likewise.
37132         * hurd/Makefile: Likewise.
37133         (all): Remove target.
37134         * iconvdata/Makefile: Include Makeconfig immediately after
37135         defining subdir.
37136         * inet/Makefile: Likewise.
37137         * intl/Makefile: Likewise.
37138         * io/Makefile: Likewise.
37139         * libio/Makefile: Likewise.
37140         (all): Remove target.
37141         * locale/Makefile: Include Makeconfig immediately after defining
37142         subdir.
37143         * login/Makefile: Likewise.
37144         * mach/Makefile: Likewise.
37145         (all): Remove target.
37146         * malloc/Makefile: Include Makeconfig immediately after defining
37147         subdir.
37148         (all): Remove target.
37149         * manual/Makefile: Include Makeconfig immediately after defining
37150         subdir.
37151         * math/Makefile: Likewise.
37152         * misc/Makefile: Likewise.
37153         * nis/Makefile: Likewise.
37154         * nss/Makefile: Likewise.
37155         * po/Makefile: Likewise.
37156         (all): Remove target.
37157         * posix/Makefile: Include Makeconfig immediately after defining
37158         subdir.
37159         * pwd/Makefile: Likewise.
37160         * resolv/Makefile: Likewise.
37161         * resource/Makefile: Likewise.
37162         * rt/Makefile: Likewise.
37163         * setjmp/Makefile: Likewise.
37164         * shadow/Makefile: Likewise.
37165         * signal/Makefile: Likewise.
37166         * socket/Makefile: Likewise.
37167         * soft-fp/Makefile: Likewise.
37168         * stdio-common/Makefile: Likewise.
37169         * stdlib/Makefile: Likewise.
37170         * streams/Makefile: Likewise.
37171         * string/Makefile: Likewise.
37172         * sunrpc/Makefile: Likewise.
37173         (all): Remove target.
37174         * sysvipc/Makefile: Include Makeconfig immediately after defining
37175         subdir.
37176         * termios/Makefile: Likewise.
37177         * time/Makefile: Likewise.
37178         * timezone/Makefile: Likewise.
37179         (all): Remove target.
37180         * wcsmbs/Makefile: Include Makeconfig immediately after defining
37181         subdir.
37182         * wctype/Makefile: Likewise.
37183
37184 2014-02-26  Steve Ellcey  <sellcey@mips.com>
37185
37186         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
37187         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
37188         (libc_feholdexcept_setround_mips): Ditto.
37189         (libc_feholdsetround): New.
37190         (libc_feholdsetroundf): New.
37191         (libc_feholdsetroundl): New.
37192         (libc_feupdateenv_test_mips): New.
37193         (libc_feupdateenv_test): New.
37194         (libc_feupdateenv_testf): New.
37195         (libc_feupdateenv_testl): New.
37196         (libc_feresetround): New.
37197         (libc_feresetroundf): New.
37198         (libc_feresetroundl): New.
37199         (libc_fetestexcept_mips): New.
37200         (libc_fetestexcept): New.
37201         (libc_fetestexceptf): New.
37202         (libc_fetestexceptl): New.
37203         (HAVE_RM_CTX): New.
37204         (libc_feholdexcept_setround_mips_ctx): New.
37205         (libc_feholdexcept_setround_ctx): New.
37206         (libc_feholdexcept_setroundf_ctx): New.
37207         (libc_feholdexcept_setroundl_ctx): New.
37208         (libc_fesetenv_mips_ctx): New.
37209         (libc_fesetenv_ctx): New.
37210         (libc_fesetenv_ctxf): New.
37211         (libc_fesetenv_ctxl): New.
37212         (libc_feupdateenv_mips_ctx): New.
37213         (libc_feupdateenv_ctx): New.
37214         (libc_feupdateenvf_ctx): New.
37215         (libc_feupdateenvl_ctx): New.
37216         (libc_feholdsetround_mips_ctx): New.
37217         (libc_feholdsetround_ctx): New.
37218         (libc_feholdsetroundf_ctx): New.
37219         (libc_feholdsetroundl_ctx): New.
37220         (libc_feresetround_mips_ctx): New.
37221         (libc_feresetround_ctx): New.
37222         (libc_feresetroundf_ctx): New.
37223         (libc_feresetroundl_ctx): New.
37224
37225 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
37226
37227         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
37228
37229         * manual/ipc.texi: New file.
37230         * manual/Makefile (chapters): Add ipc.
37231         * manual/job.texi: Add "Inter-Process Communication" to next.
37232         * manual/process.texi: Add "Inter-Process Communication" to prev.
37233
37234 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37235
37236         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37237
37238 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
37239
37240         * malloc/malloc.c (__libc_calloc): Simplify implementation.
37241
37242         * manual/arith.texi: Fix spaces after sentences.
37243         * manual/charset.texi: Likewise.
37244         * manual/errno.texi: Likewise.
37245         * manual/install.texi: Likewise.
37246         * manual/llio.texi: Likewise.
37247         * manual/locale.texi: Likewise.
37248         * manual/maint.texi: Likewise.
37249         * manual/math.texi: Likewise.
37250         * manual/memory.texi: Likewise.
37251         * manual/message.texi: Likewise.
37252         * manual/probes.texi: Likewise.
37253         * manual/resource.texi: Likewise.
37254         * manual/signal.texi: Likewise.
37255         * manual/socket.texi: Likewise.
37256         * manual/stdio.texi: Likewise.
37257         * manual/string.texi: Likewise.
37258         * manual/time.texi: Likewise.
37259         * manual/users.texi: Likewise.
37260
37261 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
37262
37263         [BZ #16632]
37264         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
37265         _DEFAULT_SOURCE is defined.
37266
37267 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
37268             Carlos O'Donell  <carlos@redhat.com>
37269
37270         [BZ #16613]
37271         * elf/dl-tls.c (_dl_count_modids): New function.
37272         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
37273         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
37274         audit library and increment generation counter.
37275         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
37276         * elf/tst-audit9.c: New file.
37277         * elf/tst-auditmod9a.c: New file.
37278         * elf/tst-auditmod9b.c: New file.
37279         * elf/Makefile: Add rules to build and run tst-audit9.
37280
37281 2014-02-25  Florian Weimer  <fweimer@redhat.com>
37282
37283         [BZ #15347]
37284         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
37285
37286 2014-02-25  Will Newton  <will.newton@linaro.org>
37287
37288         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
37289         (__longjmp): Restore sp and lr before restoring callee
37290         saved registers.  Add longjmp and longjmp_target
37291         SystemTap probe point.
37292         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
37293         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
37294         Define to zero to match jmpbuf layout.
37295         * sysdeps/arm/setjmp.S: Include stap-probe.h.
37296         (__sigsetjmp): Save sp and lr before saving callee
37297         saved registers.  Add setjmp SystemTap probe point.
37298
37299 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
37300
37301         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
37302
37303 2014-02-24  Andreas Schwab  <schwab@suse.de>
37304
37305         [BZ #15804]
37306         * elf/pldd.c (wait_for_ptrace_stop): New function.
37307         (main): Call it after attaching.
37308
37309 2014-02-22  Roland McGrath  <roland@hack.frob.com>
37310
37311         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
37312         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
37313         Versions files is now verboten.
37314         * hurd/Versions (libc: GLIBC_2.0):
37315         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
37316         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
37317         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
37318         * mach/Versions: Likewise.
37319
37320         * csu/Versions: Remove unused %include.
37321         * resolv/Versions: Likewise.
37322
37323 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
37324
37325         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
37326         ($(objpfx)check-local-headers.out): Likewise.
37327         ($(objpfx)begin-end-check.out): Likewise.
37328         * Makerules (check-abi-%.out): Likewise.
37329         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
37330         ($(objpfx)test2.cat): Likewise.
37331         ($(objpfx)de/libc.cat): Likewise.
37332         ($(objpfx)test-gencat.out): Likewise.
37333         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
37334         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
37335         ($(objpfx)noload-mem): Likewise.
37336         ($(objpfx)tst-pathopt.out): Likewise.
37337         ($(objpfx)tst-rtld-load-self.out): Likewise.
37338         ($(objpfx)tst-array1-cmp.out): Likewise.
37339         ($(objpfx)tst-array1-static-cmp.out): Likewise.
37340         ($(objpfx)tst-array2-cmp.out): Likewise.
37341         ($(objpfx)tst-array3-cmp.out): Likewise.
37342         ($(objpfx)tst-array4-cmp.out): Likewise.
37343         ($(objpfx)tst-array5-cmp.out): Likewise.
37344         ($(objpfx)tst-array5-static-cmp.out): Likewise.
37345         ($(objpfx)check-textrel.out): Likewise.
37346         ($(objpfx)check-execstack.out): Likewise.
37347         ($(objpfx)check-localplt.out): Likewise.
37348         ($(objpfx)order2-cmp.out): Likewise.
37349         ($(objpfx)tst-leaks1-mem): Likewise.
37350         ($(objpfx)tst-leaks1-static-mem): Likewise.
37351         ($(objpfx)tst-initorder-cmp.out): Likewise.
37352         ($(objpfx)tst-initorder2-cmp.out): Likewise.
37353         ($(objpfx)tst-unused-dep.out): Likewise.
37354         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
37355         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37356         * iconv/Makefile (test-iconvconfig): Likewise.
37357         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
37358         ($(objpfx)iconv-test.out): Likewise.
37359         ($(objpfx)tst-tables.out): Likewise.
37360         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
37361         ($(objpfx)tst-gettext.out): Likewise.
37362         ($(objpfx)tst-translit.out): Likewise.
37363         ($(objpfx)tst-gettext2.out): Likewise.
37364         ($(objpfx)tst-gettext4.out): Likewise.
37365         ($(objpfx)tst-gettext6.out): Likewise.
37366         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
37367         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37368         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
37369         ($(objpfx)tst-fopenloc-mem.out): Likewise.
37370         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37371         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
37372         * posix/Makefile ($(objpfx)globtest.out): Likewise.
37373         ($(objpfx)wordexp-tst.out): Likewise.
37374         ($(objpfx)annexc.out): Likewise.
37375         ($(objpfx)tst-fnmatch-mem): Likewise.
37376         ($(objpfx)bug-regex2-mem): Likewise.
37377         ($(objpfx)bug-regex14-mem): Likewise.
37378         ($(objpfx)bug-regex21-mem): Likewise.
37379         ($(objpfx)bug-regex31-mem): Likewise.
37380         ($(objpfx)tst-vfork3-mem): Likewise.
37381         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
37382         ($(objpfx)tst-pcre-mem): Likewise.
37383         ($(objpfx)tst-boost-mem): Likewise.
37384         ($(objpfx)tst-getconf.out): Likewise.
37385         ($(objpfx)bug-ga2-mem): Likewise.
37386         ($(objpfx)bug-glob2-mem): Likewise.
37387         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
37388         ($(objpfx)mtrace-tst-leaks2): Likewise.
37389         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
37390         ($(objpfx)tst-printf.out): Likewise.
37391         ($(objpfx)tst-setvbuf1.out): Likewise.
37392         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
37393         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
37394         ($(objpfx)tst-fmtmsg.out): Likewise.
37395         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
37396         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
37397
37398         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
37399         * bits/sigaction.h [__USE_MISC]: Likewise.
37400         * bits/waitstatus.h: Update #endif comments.
37401         * ctype/ctype.h: Likewise.
37402         * dirent/dirent.h: Likewise.
37403         [__USE_MISC]: Remove redundant conditionals.
37404         * grp/grp.h: Update #endif comments.
37405         [__USE_GNU]: Remove redundant conditionals.
37406         [__USE_MISC]: Likewise.
37407         * inet/netinet/in.h [__USE_GNU]: Likewise.
37408         * io/sys/stat.h [__USE_MISC]: Likewise.
37409         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
37410         * libio/bits/stdio.h: Update #endif comments.
37411         [__USE_MISC]: Remove redundant conditionals.
37412         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
37413         * libio/stdio.h: Update #endif comments.
37414         [__USE_MISC]: Remove redundant conditionals.
37415         * math/bits/math-finite.h [__USE_MISC]: Likewise.
37416         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
37417         * math/math.h: Update #else and #endif comments.
37418         [__USE_MISC]: Remove redundant conditionals.
37419         * misc/sys/uio.h: Update #endif comments.
37420         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
37421         * posix/glob.h [__USE_MISC]: Likewise.
37422         * posix/sys/types.h: Update #endif comments.
37423         [__USE_MISC]: Remove redundant conditionals.
37424         * posix/sys/wait.h: Update #endif comments.
37425         [__USE_MISC]: Remove redundant conditionals.
37426         * posix/unistd.h: Update #endif comments.
37427         [__USE_MISC]: Remove redundant conditionals.
37428         * pwd/pwd.h [__USE_GNU]: Likewise.
37429         [__USE_MISC]: Likewise.
37430         * resolv/netdb.h [__USE_GNU]: Likewise.
37431         * signal/signal.h: Update #endif comments.
37432         [__USE_MISC]: Remove redundant conditionals.
37433         * stdlib/stdlib.h: Update #else and #endif comments.
37434         [__USE_MISC]: Remove redundant conditionals.
37435         [__USE_GNU]: Likewise.
37436         * string/bits/string2.h [__USE_MISC]: Likewise.
37437         * string/string.h: Update #endif comments.
37438         [__USE_MISC]: Remove redundant conditionals.
37439         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
37440         Likewise.
37441         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
37442         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
37443         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
37444         Likewise.
37445         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
37446         Likewise.
37447         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
37448         comments.
37449         [__USE_MISC]: Remove redundant conditionals.
37450         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
37451         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
37452         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
37453         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
37454         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
37455         Likewise.
37456         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
37457         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
37458         Likewise.
37459         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
37460         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
37461         Likewise.
37462         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
37463         Likewise.
37464         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
37465         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
37466         Likewise.
37467         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
37468         Likewise.
37469         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
37470         * sysdeps/x86/bits/string.h: Update #endif comments.
37471         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
37472         conditionals.
37473         * time/sys/time.h: Update #endif comments.
37474         * time/time.h: Likewise.
37475         [__USE_MISC]: Remove redundant conditionals.
37476
37477 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
37478
37479         [BZ #16600]
37480         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
37481
37482 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
37483
37484         * Versions.def (librt): Add GLIBC_2.17.
37485
37486 2014-02-21  Adam Conrad  <adconrad@0c3.net>
37487
37488         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
37489         synonym for _SYS_AUXV_H to allow direct inclusion.
37490         * sysdeps/sparc/bits/hwcap.h: Likewise.
37491         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
37492         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
37493         * sysdeps/sparc/sysdep.h: Likewise.
37494
37495 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
37496
37497         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
37498
37499 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
37500
37501         * benchtests/bench-strrchr.c: Print length instead of position.
37502
37503 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
37504
37505         [BZ #16611]
37506         * sysdeps/unix/sysv/linux/kernel-features.h
37507         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
37508         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
37509         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
37510         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
37511         Likewise.
37512         [__i386__ || __powerpc__ || __sh__ || __sparc__]
37513         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37514         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
37515         (__ASSUME_SENDMMSG): Define instead of using previous
37516         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
37517         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37518         (__ASSUME_SENDMMSG_SYSCALL): Define.
37519         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37520         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
37521         Likewise.
37522         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37523         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37524         Likewise.
37525         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37526         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37527         Likewise.
37528         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
37529         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37530         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37531         [__ASSUME_SENDMMSG]: Change conditionals to
37532         [__ASSUME_SENDMMSG_SOCKETCALL].
37533         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37534         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
37535         Define.
37536         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37537         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
37538         Likewise.
37539         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
37540         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37541         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37542         [!__ASSUME_SENDMMSG]: Change conditional to
37543         [!__ASSUME_SENDMMSG_SOCKETCALL].
37544         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37545         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37546         Define.
37547
37548         [BZ #16610]
37549         * sysdeps/unix/sysv/linux/kernel-features.h
37550         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
37551         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
37552         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
37553         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
37554         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
37555         [__i386__ || __sparc__]
37556         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37557         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
37558         (__ASSUME_RECVMMSG): Define instead of using previous
37559         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
37560         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37561         (__ASSUME_RECVMMSG_SYSCALL): Define.
37562         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37563         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37564         Likewise.
37565         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37566         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37567         Likewise.
37568         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37569         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37570         Likewise.
37571         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
37572         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37573         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37574         [__ASSUME_RECVMMSG]: Change condition to
37575         [__ASSUME_RECVMMSG_SOCKETCALL].
37576         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37577         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37578         Define.
37579         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37580         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37581         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37582         Likewise.
37583         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
37584         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37585         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37586         [!__ASSUME_RECVMMSG]: Change condition to
37587         [!__ASSUME_RECVMMSG_SOCKETCALL].
37588         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37589         (__ASSUME_RECVMMSG_SYSCALL): Define.
37590
37591         [BZ #16609]
37592         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
37593         __powerpc__ || __s390__ || __sh__ || __sparc__]
37594         (__ASSUME_SOCKETCALL): Define.
37595         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
37596         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
37597         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
37598         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
37599         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
37600         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
37601         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
37602         (__ASSUME_ACCEPT4): Define instead of using previous
37603         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
37604         __powerpc__ || __sparc__ || __s390__)] condition.
37605         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37606         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37607         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
37608         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37609         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37610         [!__ASSUME_ACCEPT4]: Change condition to
37611         [!__ASSUME_ACCEPT4_SOCKETCALL].
37612         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37613         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
37614         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
37615         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37616         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
37617         __ASSUME_ACCEPT4_SYSCALL.
37618         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
37619         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
37620         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37621         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
37622         __ASSUME_ACCEPT4_SYSCALL.
37623         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
37624         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37625         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37626         [__ASSUME_ACCEPT4]: Change condition to
37627         [__ASSUME_ACCEPT4_SOCKETCALL].
37628         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
37629         (__ASSUME_SOCKETCALL): Define.
37630         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
37631         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37632         (__ASSUME_SOCKETCALL): Define.
37633         (__ASSUME_ACCEPT4): Remove.
37634         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
37635         Define.
37636         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37637         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
37638         Likewise.
37639         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37640         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37641
37642         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
37643         macro.
37644         (HWCAP_ARM_LPAE): Likewise.
37645         (HWCAP_ARM_EVTSTRM): Likewise.
37646         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
37647         Add vpfd32, lpae and evtstrm.
37648         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
37649         Increase to 22.
37650
37651 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
37652
37653         * math/auto-libm-test-in: Add tests of clog10.
37654         * math/auto-libm-test-out: Regenerated.
37655         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
37656         * sysdeps/i386/fpu/libm-test-ulps: Update.
37657         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37658
37659 2014-02-18  Andreas Schwab  <schwab@suse.de>
37660
37661         [BZ #16574]
37662         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
37663         Store non-zero if the second buffer was newly allocated.
37664         (send_dg): Likewise.
37665         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
37666         to send_vc and send_dg.
37667         (res_nsend): Pass NULL for ansp2_malloced.
37668         * resolv/res_query.c (__libc_res_nquery): Add parameter
37669         answerp2_malloced and pass it down to __libc_res_nsend.
37670         (res_nquery): Pass additional NULL to __libc_res_nquery.
37671         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
37672         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
37673         second answer buffer if answerp2_malloced was set.
37674         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
37675         (__libc_res_nquerydomain): Add parameter
37676         answerp2_malloced and pass it down to __libc_res_nquery.
37677         (res_nquerydomain): Pass additional NULL to
37678         __libc_res_nquerydomain.
37679         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
37680         additional NULL to __libc_res_nsend and __libc_res_nquery.
37681         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
37682         additional NULL to __libc_res_nsearch.
37683         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
37684         parameter of __libc_res_nsearch to check for separately allocated
37685         second buffer.
37686         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
37687         __libc_res_nquery.
37688         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
37689         additional NULL to __libc_res_nquery.
37690         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
37691         __libc_res_nsearch.
37692         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
37693         * include/resolv.h: Update prototypes of __libc_res_nquery,
37694         __libc_res_nsearch, __libc_res_nsend.
37695
37696 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
37697
37698         * math/auto-libm-test-in: Add tests of fma.
37699         * math/auto-libm-test-out: Regenerated.
37700         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
37701         (fma_towardzero_test_data): Likewise.
37702         (fma_downward_test_data): Likewise.
37703         (fma_upward_test_data): Likewise.
37704         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
37705         mpc_mode.
37706         (rounding_modes): Add values for new field.
37707         (func_calc_method): Add value mpfr_fff_f.
37708         (func_calc_desc): Add mpfr_fff_f union field.
37709         (test_function): Add field exact_args.
37710         (FUNC): Add macro argument EXACT_ARGS.
37711         (FUNC_mpfr_f_f): Update call to FUNC.
37712         (FUNC_mpfr_f_f): Likewise.
37713         (FUNC_mpfr_ff_f): Likewise.
37714         (FUNC_mpfr_if_f): Likewise.
37715         (FUNC_mpc_c_f): Likewise.
37716         (FUNC_mpc_c_c): Likewise.
37717         (test_functions): Add fma.  Update calls to FUNC.
37718         (handle_input_arg): Add argument exact_args.
37719         (add_test): Update call to handle_input_arg.
37720         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
37721         (output_for_one_input_case): Update call to calc_generic_results.
37722         Recalculate exact zero results in each rounding mode.
37723
37724         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
37725         non-negative before setting low bit.
37726         * math/auto-libm-test-in: Mark one asin test possibly having
37727         spurious underflow.
37728         * math/auto-libm-test-out: Regenerated.
37729         * sysdeps/i386/fpu/libm-test-ulps: Update.
37730         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37731
37732 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
37733
37734         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
37735         * sysdeps/unix/sysv/linux/microblaze: Move directory from
37736         ports/sysdeps/unix/sysv/linux/microblaze.
37737         * README: Add missing listing for microblaze*-*-linux-gnu.
37738
37739 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
37740
37741         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
37742         duplicate code
37743
37744 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
37745
37746         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
37747         * sysdeps/unix/sysv/linux/ia64: Move directory from
37748         ports/sysdeps/unix/sysv/linux/ia64.
37749         * README: Update listing for ia64-*-linux-gnu.
37750
37751 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
37752             Joseph Myers  <joseph@codesourcery.com>
37753
37754         * Makeconfig (test-name): New variable.
37755         (evaluate-test): Likewise.
37756         * Makerules (do-test-clean): Remove .test-result files.
37757         (common-mostlyclean): Likewise.
37758         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
37759         * scripts/evaluate-test.sh: New file.
37760
37761 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
37762
37763         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
37764         separate $(objpfx)tst-fopenloc-cmp.out and
37765         $(objpfx)tst-fopenloc-mem.out targets.
37766         (tests): Update dependencies.
37767         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
37768         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
37769         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
37770         (tst-rxspencer-no-utf8-ARGS): New variable.
37771         (tst-rxspencer-no-utf8-ENV): Likewise.
37772         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
37773         instead of $(objpfx)tst-rxspencer-mem.
37774         ($(objpfx)tst-rxspencer-mem): Change target to
37775         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
37776         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
37777         * posix/tst-rxspencer-no-utf8.c: New file.
37778
37779         * elf/Makefile ($(objpfx)order.out): Remove rule.
37780         [$(run-built-tests) = yes] (tests): Depend on
37781         $(objpfx)order-cmp.out.
37782         ($(objpfx)order-cmp.out): New rule.
37783         [$(run-built-tests) = yes] (tests): Depend on
37784         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
37785         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
37786         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
37787         $(objpfx)tst-array5-static-cmp.out.
37788         ($(objpfx)tst-array1.out): Remove rule.
37789         ($(objpfx)tst-array1-cmp.out): New rule.
37790         ($(objpfx)tst-array1-static.out): Remove rule.
37791         ($(objpfx)tst-array1-static-cmp.out): New rule.
37792         ($(objpfx)tst-array2.out): Remove rule.
37793         ($(objpfx)tst-array2-cmp.out): New rule.
37794         ($(objpfx)tst-array3.out): Remove rule.
37795         ($(objpfx)tst-array3-cmp.out): New rule.
37796         ($(objpfx)tst-array4.out): Remove rule.
37797         ($(objpfx)tst-array4-cmp.out): New rule.
37798         ($(objpfx)tst-array5.out): Remove rule.
37799         ($(objpfx)tst-array5-cmp.out): New rule.
37800         ($(objpfx)tst-array5-static.out): Remove rule.
37801         ($(objpfx)tst-array5-static-cmp.out): New rule.
37802         [$(run-built-tests) = yes] (tests): Depend on
37803         $(objpfx)order2-cmp.out.
37804         ($(objpfx)order2.out): Remove rule.
37805         ($(objpfx)order2-cmp.out): New rule.
37806         ($(objpfx)tst-initorder.out): Remove rule.
37807         [$(run-built-tests) = yes] (tests): Depend on
37808         $(objpfx)tst-initorder-cmp.out.
37809         ($(objpfx)tst-initorder-cmp.out): New rule.
37810         ($(objpfx)tst-initorder2.out): Remove rule.
37811         [$(run-built-tests) = yes] (tests): Depend on
37812         $(objpfx)tst-initorder2-cmp.out.
37813         ($(objpfx)tst-initorder2-cmp.out): New rule.
37814         [$(run-built-tests) = yes] (tests): Depend on
37815         $(objpfx)tst-unused-dep-cmp.out.
37816         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
37817         ($(objpfx)tst-unused-dep-cmp.out): New rule.
37818         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
37819         on $(objpfx)tst-setvbuf1-cmp.out.
37820         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
37821         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
37822         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
37823         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
37824         ($(objpfx)tst-svc.out): Remove rule.
37825         ($(objpfx)tst-svc-cmp.out): New rule.
37826
37827 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
37828
37829         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
37830         * ctype/ctype.h [__USE_MISC]: Likewise.
37831         * dirent/dirent.h [__USE_MISC]: Likewise.
37832         * grp/grp.h [__USE_MISC]: Likewise.
37833         * io/fcntl.h [__USE_MISC]: Likewise.
37834         * io/sys/stat.h [__USE_MISC]: Likewise.
37835         * libio/stdio.h [__USE_MISC]: Likewise.
37836         * posix/unistd.h [__USE_MISC]: Likewise.
37837         * pwd/pwd.h [__USE_MISC]: Likewise.
37838         * stdlib.h [__USE_MISC]: Likewise.
37839         * string/bits/string2.h [__USE_MISC]: Likewise.
37840         * string/string.h [__USE_MISC]: Likewise.
37841         * time/time.h [__USE_MISC]: Likewise.
37842
37843 2014-02-13  Andreas Schwab  <schwab@suse.de>
37844
37845         [BZ #16574]
37846         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
37847         second answer buffer if it was separately allocated.
37848
37849 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
37850
37851         * sysdeps/mips/math-tests.h: Include <features.h>.
37852         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37853         (ROUNDING_TESTS_long_double): Do not define.
37854         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37855         (EXCEPTION_TESTS_long_double): Likewise.
37856         * sysdeps/mips/mips64/libm-test-ulps: Update.
37857
37858         * include/features.h (__USE_BSD): Remove macro definitions.
37859         (__USE_SVID): Likewise.
37860         (_BSD_SOURCE): Likewise.
37861         (_SVID_SOURCE): Likewise.
37862         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
37863         from definition of _DEFAULT_SOURCE.
37864         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
37865         [_DEFAULT_SOURCE].
37866         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
37867         * bits/mman.h [__USE_BSD]: Likewise.
37868         * bits/termios.h [__USE_BSD]: Likewise.
37869         * bits/waitstatus.h [__USE_BSD]: Likewise.
37870         * ctype/ctype.h [__USE_SVID]: Likewise.
37871         * dirent/dirent.h [__USE_BSD]: Likewise.
37872         * grp/grp.h [__USE_SVID]: Likewise.
37873         [__USE_BSD]: Likewise.
37874         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
37875         * io/fcntl.h [__USE_BSD]: Likewise.
37876         * io/ftw.h [__USE_BSD]: Likewise.
37877         * io/sys/stat.h [__USE_BSD]: Likewise.
37878         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
37879         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
37880         * libio/stdio.h [__USE_SVID]: Likewise.
37881         [__USE_BSD]: Likewise.
37882         * math/math.h [__USE_SVID]: Likewise.
37883         [__USE_BSD]: Likewise.
37884         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
37885         * misc/bits/syslog.h [__USE_BSD]: Likewise.
37886         * misc/search.h [__USE_SVID]: Likewise.
37887         * misc/sys/mman.h [__USE_BSD]: Likewise.
37888         * misc/sys/syslog.h [__USE_BSD]: Likewise.
37889         * misc/sys/uio.h [__USE_BSD]: Likewise.
37890         * posix/bits/unistd.h [__USE_BSD]: Likewise.
37891         * posix/glob.h [__USE_BSD]: Likewise.
37892         * posix/regex.h [__USE_BSD]: Likewise.
37893         * posix/sys/types.h [__USE_BSD]: Likewise.
37894         [__USE_SVID]: Likewise.
37895         * posix/sys/utsname.h [__USE_SVID]: Likewise.
37896         * posix/sys/wait.h [__USE_BSD]: Likewise.
37897         [__USE_SVID]: Likewise.
37898         * posix/unistd.h [__USE_BSD]: Likewise.
37899         [__USE_SVID]: Likewise.
37900         * pwd/pwd.h [__USE_SVID]: Likewise.
37901         * resolv/netdb.h [__USE_BSD]: Likewise.
37902         * setjmp/setjmp.h [__USE_BSD]: Likewise.
37903         * signal/signal.h [__USE_BSD]: Likewise.
37904         [__USE_SVID]: Likewise.
37905         * socket/sys/socket.h [__USE_BSD]: Likewise.
37906         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
37907         * stdlib/stdlib.h [__USE_BSD]: Likewise.
37908         [__USE_SVID]: Likewise.
37909         * string/bits/string2.h [__USE_BSD]: Likewise.
37910         [__USE_SVID]: Likewise.
37911         * string/bits/string3.h [__USE_BSD]: Likewise.
37912         * string/endian.h [__USE_BSD]: Likewise.
37913         * string/string.h [__USE_SVID]: Likewise.
37914         [__USE_BSD]: Likewise.
37915         * string/strings.h [__USE_BSD]: Likewise.
37916         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
37917         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
37918         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
37919         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
37920         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
37921         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
37922         Likewise.
37923         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
37924         Likewise.
37925         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
37926         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
37927         Likewise.
37928         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
37929         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
37930         Likewise.
37931         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
37932         Likewise.
37933         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
37934         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
37935         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
37936         Likewise.
37937         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
37938         Likewise.
37939         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
37940         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
37941         * termios/termios.h [__USE_BSD]: Likewise.
37942         * time/sys/time.h [__USE_BSD]: Likewise.
37943         * time/time.h [__USE_BSD]: Likewise.
37944         [__USE_SVID]: Likewise.
37945
37946         * Makefile (subdir_targets): Remove subdir_lint.out.
37947
37948         * stdio-common/Makefile (do-tst-unbputc): Remove target.
37949         (do-tst-printf): Likewise.
37950         (tests): Depend directly on $(objpfx)tst-unbputc.out and
37951         $(objpfx)tst-printf.out.
37952
37953         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
37954
37955         * Makerules (check-abi-%): Change target to
37956         $(objpfx)check-abi-%.out.
37957         (check-abi target): Update dependencies.
37958         (check-abi-pattern variable): Redirect output of diff to $@.
37959         (check-abi variable): Likewise.
37960         * elf/Makefile (check-abi): Update dependencies.
37961
37962         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
37963         unused.
37964         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
37965         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
37966         subnormal range.
37967         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
37968         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
37969         value has largest subnormal exponent.
37970         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
37971         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
37972         * sysdeps/aarch64/soft-fp/sfp-machine.h
37973         (_FP_TININESS_AFTER_ROUNDING): New macro.
37974         * sysdeps/alpha/soft-fp/sfp-machine.h
37975         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37976         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37977         Likewise.
37978         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
37979         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37980         * sysdeps/mips/soft-fp/sfp-machine.h
37981         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37982         * sysdeps/powerpc/soft-fp/sfp-machine.h
37983         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37984         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37985         Likewise.
37986         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
37987         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37988         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
37989         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37990         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37991         Likewise.
37992
37993 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
37994
37995         [BZ #16545]
37996         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
37997         model 1.
37998
37999 2014-02-12  Richard Henderson  <rth@redhat.com>
38000
38001         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
38002         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
38003         * sysdeps/unix/sysv/linux/alpha: Move directory from
38004         ports/sysdeps/unix/sysv/linux/alpha.
38005         * README: Update listing for alpha-*-linux-gnu.
38006
38007 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
38008
38009         * include/features.h: Update comment documenting feature test
38010         macros.
38011         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
38012         _DEFAULT_SOURCE.
38013         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
38014         (_SVID_SOURCE): Likewise.
38015         (_DEFAULT_SOURCE): Update description of default features.
38016         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
38017         with _GNU_SOURCE.
38018         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
38019         (S_ISVTX): Likewise.
38020         * manual/math.texi (Mathematical Constants): Likewise.
38021         * manual/signal.texi (Interrupted Primitives): Likewise.
38022         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
38023         * math/test-matherr.c (_SVID_SOURCE): Do not define.
38024         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
38025         Don't refer to _SVID_SOURCE in warning text.
38026
38027         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38028
38029         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
38030         already defined.
38031         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
38032         * sysdeps/mips/dl-lookup.c: Remove.
38033         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
38034
38035 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
38036
38037         [BZ #16447]
38038         * math/auto-libm-test-in: Add testcase for expl.
38039         * math/auto-libm-test-out: Regenerate.
38040         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
38041         calculation of unsafe.
38042         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
38043
38044 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
38045
38046         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
38047         * sysdeps/unix/sysv/linux/aarch64: Move directory from
38048         ports/sysdeps/unix/sysv/linux/aarch64.
38049         * README: Update listing for aarch64*-*-linux-gnu.
38050
38051 2014-02-11  Will Newton  <will.newton@linaro.org>
38052
38053         * manual/probes.texi (Mathematical Function Probes): Use
38054         "triggered" instead of "hit".
38055
38056         * manual/probes.texi (Internal Probes): Add documentation
38057         of setjmp, longjmp and longjmp_target probes.
38058
38059         * include/stap-probe.h: Add comment about probe argument
38060         format.
38061
38062         * malloc/mtrace.c (attribute_hidden): Remove unused macro
38063         definition.  (tr_where, tr_freehook, tr_mallochook,
38064         tr_reallochook, tr_memalignhook): Use ANSI protoype.
38065
38066 2014-02-11  David S. Miller  <davem@davemloft.net>
38067
38068         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
38069         processing int_tests.
38070
38071 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
38072
38073         * sysdeps/mips: Move directory from ports/sysdeps/mips.
38074         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
38075         * sysdeps/unix/sysv/linux/mips: Move directory from
38076         ports/sysdeps/unix/sysv/linux/mips.
38077         * README: Update listing for mips-*-linux-gnu and
38078         mips64-*-linux-gnu.
38079
38080 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
38081
38082         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
38083         * sysdeps/unix/sysv/linux/m68k: Move directory from
38084         ports/sysdeps/unix/sysv/linux/m68k.
38085         * README: Update listing for m68k-*-linux-gnu.
38086
38087 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
38088
38089         * sysdeps/tile: Move directory from ports/sysdeps/tile.
38090         * sysdeps/unix/sysv/linux/generic: Move directory from
38091         ports/sysdeps/unix/sysv/linux/generic.
38092         * sysdeps/unix/sysv/linux/tile: Move directory from
38093         ports/sysdeps/unix/sysv/linux/tile.
38094         * README: Update listing for tile*-*-linux-gnu.
38095
38096 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
38097
38098         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
38099         __builtin_expect.
38100         * benchtests/bench-memmem.c (simple_memmem): Likewise.
38101         * catgets/open_catalog.c (__open_catalog): Likewise.
38102         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
38103         * debug/confstr_chk.c: Likewise.
38104         * debug/fread_chk.c (__fread_chk): Likewise.
38105         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
38106         * debug/getgroups_chk.c: Likewise.
38107         * debug/mbsnrtowcs_chk.c: Likewise.
38108         * debug/mbsrtowcs_chk.c: Likewise.
38109         * debug/mbstowcs_chk.c: Likewise.
38110         * debug/memcpy_chk.c: Likewise.
38111         * debug/memmove_chk.c: Likewise.
38112         * debug/mempcpy_chk.c: Likewise.
38113         * debug/memset_chk.c: Likewise.
38114         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
38115         * debug/strcat_chk.c (__strcat_chk): Likewise.
38116         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
38117         * debug/strncat_chk.c (__strncat_chk): Likewise.
38118         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
38119         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
38120         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
38121         * debug/wcpncpy_chk.c: Likewise.
38122         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
38123         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
38124         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
38125         * debug/wcsncpy_chk.c: Likewise.
38126         * debug/wcsnrtombs_chk.c: Likewise.
38127         * debug/wcsrtombs_chk.c: Likewise.
38128         * debug/wcstombs_chk.c: Likewise.
38129         * debug/wmemcpy_chk.c: Likewise.
38130         * debug/wmemmove_chk.c: Likewise.
38131         * debug/wmempcpy_chk.c: Likewise.
38132         * debug/wmemset_chk.c: Likewise.
38133         * dirent/scandirat.c (SCANDIRAT): Likewise.
38134         * dlfcn/dladdr1.c (dladdr1): Likewise.
38135         * dlfcn/dladdr.c (dladdr): Likewise.
38136         * dlfcn/dlclose.c (dlclose_doit): Likewise.
38137         * dlfcn/dlerror.c (__dlerror): Likewise.
38138         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
38139         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
38140         * dlfcn/dlopen.c (dlopen_doit): Likewise.
38141         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
38142         * dlfcn/dlsym.c (dlsym_doit): Likewise.
38143         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
38144         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
38145         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
38146         Likewise.
38147         * elf/dl-conflict.c: Likewise.
38148         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
38149         * elf/dl-dst.h: Likewise.
38150         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
38151         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
38152         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
38153         * elf/dl-init.c (call_init, _dl_init): Likewise.
38154         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
38155         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
38156         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
38157         Likewise.
38158         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
38159         Likewise.
38160         * elf/dl-minimal.c (__libc_memalign): Likewise.
38161         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
38162         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
38163         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
38164         * elf/dl-sym.c (do_sym): Likewise.
38165         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
38166         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
38167         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
38168         * elf/dl-writev.h (_dl_writev): Likewise.
38169         * elf/ldconfig.c (search_dir): Likewise.
38170         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
38171         (dl_main): Likewise.
38172         * elf/setup-vdso.h (setup_vdso): Likewise.
38173         * grp/compat-initgroups.c (compat_call): Likewise.
38174         * grp/fgetgrent.c (fgetgrent): Likewise.
38175         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
38176         * grp/putgrent.c (putgrent): Likewise.
38177         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
38178         Likewise.
38179         * hurd/hurdinit.c: Likewise.
38180         * iconvdata/8bit-gap.c (struct): Likewise.
38181         * iconvdata/ansi_x3.110.c : Likewise.
38182         * iconvdata/big5.c : Likewise.
38183         * iconvdata/big5hkscs.c : Likewise.
38184         * iconvdata/cp1255.c: Likewise.
38185         * iconvdata/cp1258.c : Likewise.
38186         * iconvdata/cp932.c : Likewise.
38187         * iconvdata/euc-cn.c: Likewise.
38188         * iconvdata/euc-jisx0213.c : Likewise.
38189         * iconvdata/euc-jp.c: Likewise.
38190         * iconvdata/euc-jp-ms.c : Likewise.
38191         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
38192         * iconvdata/gb18030.c : Likewise.
38193         * iconvdata/gbbig5.c (const): Likewise.
38194         * iconvdata/gbgbk.c: Likewise.
38195         * iconvdata/gbk.c : Likewise.
38196         * iconvdata/ibm1364.c : Likewise.
38197         * iconvdata/ibm930.c : Likewise.
38198         * iconvdata/ibm932.c: Likewise.
38199         * iconvdata/ibm933.c : Likewise.
38200         * iconvdata/ibm935.c : Likewise.
38201         * iconvdata/ibm937.c : Likewise.
38202         * iconvdata/ibm939.c : Likewise.
38203         * iconvdata/ibm943.c: Likewise.
38204         * iconvdata/iso_11548-1.c: Likewise.
38205         * iconvdata/iso-2022-cn.c : Likewise.
38206         * iconvdata/iso-2022-cn-ext.c : Likewise.
38207         * iconvdata/iso-2022-jp-3.c: Likewise.
38208         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
38209         * iconvdata/iso-2022-kr.c : Likewise.
38210         * iconvdata/iso646.c (gconv_end): Likewise.
38211         * iconvdata/iso_6937-2.c : Likewise.
38212         * iconvdata/iso_6937.c : Likewise.
38213         * iconvdata/iso8859-1.c: Likewise.
38214         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
38215         * iconvdata/shift_jisx0213.c : Likewise.
38216         * iconvdata/sjis.c : Likewise.
38217         * iconvdata/t.61.c : Likewise.
38218         * iconvdata/tcvn5712-1.c : Likewise.
38219         * iconvdata/tscii.c: Likewise.
38220         * iconvdata/uhc.c : Likewise.
38221         * iconvdata/unicode.c (gconv_end): Likewise.
38222         * iconvdata/utf-16.c (gconv_end): Likewise.
38223         * iconvdata/utf-32.c (gconv_end): Likewise.
38224         * iconvdata/utf-7.c (base64): Likewise.
38225         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
38226         * iconv/gconv_close.c (__gconv_close): Likewise.
38227         * iconv/gconv_open.c (__gconv_open): Likewise.
38228         * iconv/gconv_simple.c (internal_ucs4_loop_single)
38229         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
38230         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
38231         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
38232         (ucs4le_internal_loop_single): Likewise.
38233         * iconv/iconv.c (iconv): Likewise.
38234         * iconv/iconv_close.c: Likewise.
38235         * iconv/loop.c (SINGLE): Likewise.
38236         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
38237         * include/atomic.h: Likewise.
38238         * inet/inet6_option.c (option_alloc): Likewise.
38239         * intl/bindtextdom.c (set_binding_values): Likewise.
38240         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
38241         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
38242         * intl/localealias.c (read_alias_file): Likewise.
38243         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
38244         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
38245         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
38246         * libio/fmemopen.c (fmemopen): Likewise.
38247         * libio/iofgets.c (_IO_fgets): Likewise.
38248         * libio/iofgets_u.c (fgets_unlocked): Likewise.
38249         * libio/iofgetws.c (fgetws): Likewise.
38250         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
38251         * libio/iogetdelim.c (_IO_getdelim): Likewise.
38252         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
38253         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
38254         * locale/findlocale.c (_nl_find_locale): Likewise.
38255         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
38256         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
38257         Likewise.
38258         * locale/setlocale.c (setlocale): Likewise.
38259         * login/programs/pt_chown.c (main): Likewise.
38260         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
38261         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
38262         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
38263         (mmap, mmap64, mremap, munmap): Likewise.
38264         * math/e_exp2l.c: Likewise.
38265         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
38266         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
38267         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
38268         * math/s_catan.c (__catan): Likewise.
38269         * math/s_catanf.c (__catanf): Likewise.
38270         * math/s_catanh.c (__catanh): Likewise.
38271         * math/s_catanhf.c (__catanhf): Likewise.
38272         * math/s_catanhl.c (__catanhl): Likewise.
38273         * math/s_catanl.c (__catanl): Likewise.
38274         * math/s_ccosh.c (__ccosh): Likewise.
38275         * math/s_ccoshf.c (__ccoshf): Likewise.
38276         * math/s_ccoshl.c (__ccoshl): Likewise.
38277         * math/s_cexp.c (__cexp): Likewise.
38278         * math/s_cexpf.c (__cexpf): Likewise.
38279         * math/s_cexpl.c (__cexpl): Likewise.
38280         * math/s_clog10.c (__clog10): Likewise.
38281         * math/s_clog10f.c (__clog10f): Likewise.
38282         * math/s_clog10l.c (__clog10l): Likewise.
38283         * math/s_clog.c (__clog): Likewise.
38284         * math/s_clogf.c (__clogf): Likewise.
38285         * math/s_clogl.c (__clogl): Likewise.
38286         * math/s_csin.c (__csin): Likewise.
38287         * math/s_csinf.c (__csinf): Likewise.
38288         * math/s_csinh.c (__csinh): Likewise.
38289         * math/s_csinhf.c (__csinhf): Likewise.
38290         * math/s_csinhl.c (__csinhl): Likewise.
38291         * math/s_csinl.c (__csinl): Likewise.
38292         * math/s_csqrt.c (__csqrt): Likewise.
38293         * math/s_csqrtf.c (__csqrtf): Likewise.
38294         * math/s_csqrtl.c (__csqrtl): Likewise.
38295         * math/s_ctan.c (__ctan): Likewise.
38296         * math/s_ctanf.c (__ctanf): Likewise.
38297         * math/s_ctanh.c (__ctanh): Likewise.
38298         * math/s_ctanhf.c (__ctanhf): Likewise.
38299         * math/s_ctanhl.c (__ctanhl): Likewise.
38300         * math/s_ctanl.c (__ctanl): Likewise.
38301         * math/w_pow.c: Likewise.
38302         * math/w_powf.c: Likewise.
38303         * math/w_powl.c: Likewise.
38304         * math/w_scalb.c (sysv_scalb): Likewise.
38305         * math/w_scalbf.c (sysv_scalbf): Likewise.
38306         * math/w_scalbl.c (sysv_scalbl): Likewise.
38307         * misc/error.c (error_tail): Likewise.
38308         * misc/pselect.c (__pselect): Likewise.
38309         * nis/nis_callback.c (__nis_create_callback): Likewise.
38310         * nis/nis_call.c (__nisfind_server): Likewise.
38311         * nis/nis_creategroup.c (nis_creategroup): Likewise.
38312         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
38313         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
38314         * nis/nis_getservlist.c (nis_getservlist): Likewise.
38315         * nis/nis_lookup.c (nis_lookup): Likewise.
38316         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
38317         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
38318         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
38319         * nis/nis_xdr.c (xdr_endpoint): Likewise.
38320         * nis/nss_compat/compat-grp.c (getgrent_next_file)
38321         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
38322         * nis/nss_compat/compat-initgroups.c (add_group)
38323         (internal_getgrent_r): Likewise.
38324         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
38325         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
38326         * nis/nss_compat/compat-spwd.c (getspent_next_file)
38327         (internal_getspnam_r): Likewise.
38328         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
38329         (_nss_nis_getaliasbyname_r): Likewise.
38330         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
38331         (_nss_nis_getntohost_r): Likewise.
38332         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
38333         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
38334         (_nss_nis_getgrgid_r): Likewise.
38335         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
38336         (internal_nis_gethostent_r, internal_gethostbyname2_r)
38337         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
38338         (_nss_nis_gethostbyname4_r): Likewise.
38339         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
38340         (initgroups_netid): Likewise.
38341         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
38342         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
38343         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
38344         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
38345         (_nss_nis_getprotobynumber_r): Likewise.
38346         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
38347         (_nss_nis_getsecretkey): Likewise.
38348         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
38349         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
38350         (_nss_nis_getpwuid_r): Likewise.
38351         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
38352         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
38353         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
38354         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
38355         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
38356         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
38357         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
38358         Likewise.
38359         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
38360         (_nss_nisplus_getntohost_r): Likewise.
38361         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
38362         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
38363         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
38364         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
38365         Likewise.
38366         * nis/nss_nisplus/nisplus-initgroups.c
38367         (_nss_nisplus_initgroups_dyn): Likewise.
38368         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
38369         (_nss_nisplus_getnetbyaddr_r): Likewise.
38370         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
38371         (_nss_nisplus_getprotobynumber_r): Likewise.
38372         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
38373         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
38374         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
38375         Likewise.
38376         * nis/nss_nisplus/nisplus-service.c
38377         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
38378         (_nss_nisplus_getservbyport_r): Likewise.
38379         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
38380         (_nss_nisplus_getspnam_r): Likewise.
38381         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
38382         Likewise.
38383         * nscd/aicache.c (addhstaiX): Likewise.
38384         * nscd/cache.c (cache_search, prune_cache): Likewise.
38385         * nscd/connections.c (register_traced_file, send_ro_fd)
38386         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
38387         (main_loop_epoll): Likewise.
38388         * nscd/grpcache.c (addgrbyX): Likewise.
38389         * nscd/hstcache.c (addhstbyX): Likewise.
38390         * nscd/initgrcache.c (addinitgroupsX): Likewise.
38391         * nscd/mem.c (gc, mempool_alloc): Likewise.
38392         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
38393         (addinnetgrX): Likewise.
38394         * nscd/nscd-client.h (__nscd_acquire_maplock)
38395         (__nscd_drop_map_ref): Likewise.
38396         * nscd/nscd_getai.c (__nscd_getai): Likewise.
38397         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
38398         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
38399         Likewise.
38400         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
38401         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
38402         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
38403         (__nscd_get_map_ref): Likewise.
38404         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
38405         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
38406         Likewise.
38407         * nscd/pwdcache.c (addpwbyX): Likewise.
38408         * nscd/selinux.c (preserve_capabilities): Likewise.
38409         * nscd/servicescache.c (addservbyX): Likewise.
38410         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
38411         * posix/fnmatch.c (fnmatch): Likewise.
38412         * posix/getopt.c (_getopt_internal_r): Likewise.
38413         * posix/glob.c (glob, glob_in_dir): Likewise.
38414         * posix/wordexp.c (exec_comm_child): Likewise.
38415         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
38416         (getanswer_r, gaih_getanswer_slice): Likewise.
38417         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
38418         * resolv/res_init.c: Likewise.
38419         * resolv/res_mkquery.c (res_nmkquery): Likewise.
38420         * resolv/res_query.c (__libc_res_nquery): Likewise.
38421         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
38422         Likewise.
38423         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
38424         * stdio-common/perror.c (perror): Likewise.
38425         * stdio-common/printf_fp.c (___printf_fp): Likewise.
38426         * stdio-common/tmpnam.c (tmpnam): Likewise.
38427         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
38428         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
38429         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
38430         Likewise.
38431         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
38432         * stdlib/putenv.c (putenv): Likewise.
38433         * stdlib/setenv.c (__add_to_environ): Likewise.
38434         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
38435         * stdlib/strtol_l.c (INTERNAL): Likewise.
38436         * string/memmem.c (memmem): Likewise.
38437         * string/strerror.c (strerror): Likewise.
38438         * string/strnlen.c (__strnlen): Likewise.
38439         * string/test-memmem.c (simple_memmem): Likewise.
38440         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
38441         * sunrpc/pm_getport.c (__get_socket): Likewise.
38442         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
38443         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
38444         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
38445         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
38446         Likewise.
38447         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
38448         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
38449         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38450         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
38451         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38452         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
38453         Likewise.
38454         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
38455         Likewise.
38456         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38457         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38458         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
38459         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38460         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
38461         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
38462         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
38463         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
38464         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38465         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
38466         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38467         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
38468         Likewise.
38469         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
38470         Likewise.
38471         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
38472         Likewise.
38473         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
38474         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
38475         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
38476         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
38477         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
38478         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
38479         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
38480         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
38481         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
38482         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
38483         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
38484         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
38485         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
38486         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
38487         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
38488         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38489         Likewise.
38490         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
38491         Likewise.
38492         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
38493         Likewise.
38494         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
38495         Likewise.
38496         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
38497         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
38498         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
38499         Likewise.
38500         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
38501         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
38502         * sysdeps/posix/opendir.c (__opendirat): Likewise.
38503         * sysdeps/posix/sleep.c: Likewise.
38504         * sysdeps/posix/tempname.c: Likewise.
38505         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
38506         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
38507         Likewise.
38508         * sysdeps/powerpc/powerpc32/dl-machine.h
38509         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
38510         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
38511         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
38512         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
38513         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
38514         Likewise.
38515         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
38516         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
38517         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38518         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
38519         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38520         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
38521         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
38522         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
38523         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
38524         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
38525         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
38526         (elf_machine_lazy_rel): Likewise.
38527         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
38528         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
38529         (elf_machine_lazy_rel): Likewise.
38530         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
38531         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
38532         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
38533         * sysdeps/unix/grantpt.c (grantpt): Likewise.
38534         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
38535         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
38536         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
38537         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38538         Likewise.
38539         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
38540         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
38541         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
38542         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
38543         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
38544         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
38545         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
38546         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
38547         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
38548         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
38549         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
38550         Likewise.
38551         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
38552         (__posix_fallocate64_l64): Likewise.
38553         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
38554         (posix_fallocate): Likewise.
38555         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
38556         Likewise.
38557         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38558         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
38559         (getifaddrs_internal): Likewise.
38560         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
38561         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
38562         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
38563         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
38564         * sysdeps/unix/sysv/linux/posix_fallocate64.c
38565         (__posix_fallocate64_l64): Likewise.
38566         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
38567         Likewise.
38568         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
38569         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
38570         (__get_clockfreq): Likewise.
38571         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
38572         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
38573         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
38574         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
38575         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
38576         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
38577         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
38578         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
38579         Likewise.
38580         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
38581         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
38582         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
38583         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
38584         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
38585         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
38586         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
38587         Likewise.
38588         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
38589         (posix_fallocate): Likewise.
38590         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
38591         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
38592         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
38593         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
38594         (elf_machine_rela, elf_machine_rela_relative)
38595         (elf_machine_lazy_rel): Likewise.
38596         * time/asctime.c (asctime_internal): Likewise.
38597         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
38598         * time/tzset.c (__tzset_parse_tz): Likewise.
38599         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
38600         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
38601         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
38602         * wcsmbs/wcsmbsload.h: Likewise.
38603
38604         [BZ #15894]
38605         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
38606
38607         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
38608         (arena_get2): Remove THREAD_STATS conditionals.
38609         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
38610         (__malloc_stats, int): Likewise.
38611
38612 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
38613
38614         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
38615         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
38616
38617         * manual/setjmp.texi: Fix typos/grammar errors.
38618
38619         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
38620         Only return early when n is <= 0.  Delete unused return statement.
38621
38622         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
38623         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
38624         * debug/tst-longjmp_chk3.c: New file.
38625
38626         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
38627         (test_main): Replace code with set_fortify_handler call.
38628         * debug/test-strcpy_chk.c: Likewise.
38629         * debug/tst-chk1.c: Likewise.
38630         * debug/tst-longjmp_chk.c: Likewise.
38631         * test-skeleton.c: Include fcntl.h & paths.h
38632         (set_fortify_handler): Define.
38633
38634         * debug/tst-longjmp_chk.c: Add header comment and include
38635         ../test-skeleton.c.
38636         (do_test): Mark static.
38637         (TEST_FUNCTION): Define.
38638
38639         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
38640         (IP_PMTUDISC_INTERFACE): Likewise.
38641         (IP_MULTICAST_IF): Likewise.
38642         (IP_MULTICAST_TTL): Likewise.
38643         (IP_MULTICAST_LOOP): Likewise.
38644         (IP_ADD_MEMBERSHIP): Likewise.
38645         (IP_DROP_MEMBERSHIP): Likewise.
38646         (IP_UNBLOCK_SOURCE): Likewise.
38647         (IP_BLOCK_SOURCE): Likewise.
38648         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
38649         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
38650         (IP_MSFILTER): Likewise.
38651         (MCAST_JOIN_GROUP): Likewise.
38652         (MCAST_BLOCK_SOURCE): Likewise.
38653         (MCAST_UNBLOCK_SOURCE): Likewise.
38654         (MCAST_LEAVE_GROUP): Likewise.
38655         (MCAST_JOIN_SOURCE_GROUP): Likewise.
38656         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
38657         (MCAST_MSFILTER): Likewise.
38658         (IP_MULTICAST_ALL): Likewise.
38659         (IP_UNICAST_IF): Likewise.
38660
38661         * timezone/Makefile: Delete $(have-ksh) check.
38662         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
38663         * timezone/tzselect.ksh: Add +x mode bits.
38664
38665         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
38666         (ANON_INODE_FS_MAGIC): Likewise.
38667         (BDEVFS_MAGIC): Likewise.
38668         (BINFMTFS_MAGIC): Likewise.
38669         (BTRFS_TEST_MAGIC): Likewise.
38670         (CRAMFS_MAGIC_WEND): Likewise.
38671         (DEBUGFS_MAGIC): Likewise.
38672         (ECRYPTFS_SUPER_MAGIC): Likewise.
38673         (EXT3_SUPER_MAGIC): Likewise.
38674         (EXT4_SUPER_MAGIC): Likewise.
38675         (FUTEXFS_SUPER_MAGIC): Likewise.
38676         (HOSTFS_SUPER_MAGIC): Likewise.
38677         (HUGETLBFS_MAGIC): Likewise.
38678         (MINIX3_SUPER_MAGIC): Likewise.
38679         (MTD_INODE_FS_MAGIC): Likewise.
38680         (NILFS_SUPER_MAGIC): Likewise.
38681         (OPENPROM_SUPER_MAGIC): Likewise.
38682         (PIPEFS_MAGIC): Likewise.
38683         (PSTOREFS_MAGIC): Likewise.
38684         (QNX6_SUPER_MAGIC): Likewise.
38685         (RAMFS_MAGIC): Likewise.
38686         (REISERFS_SUPER_MAGIC_STRING): Likewise.
38687         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
38688         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
38689         (SECURITYFS_MAGIC): Likewise.
38690         (SELINUX_MAGIC): Likewise.
38691         (SMACK_MAGIC): Likewise.
38692         (SOCKFS_MAGIC): Likewise.
38693         (SQUASHFS_MAGIC): Likewise.
38694         (STACK_END_MAGIC): Likewise.
38695         (TMPFS_MAGIC): Likewise.
38696         (USBDEVICE_SUPER_MAGIC): Likewise.
38697         (V9FS_MAGIC): Likewise.
38698         (XENFS_SUPER_MAGIC): Likewise.
38699         (CRAMFS_MAGIC): Fix typo in comment.
38700         (EXT2_SUPER_MAGIC): Update comment.
38701         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
38702
38703 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
38704
38705         * sysdeps/arm: Move directory from ports/sysdeps/arm.
38706         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
38707         * sysdeps/unix/sysv/linux/arm: Move directory from
38708         ports/sysdeps/unix/sysv/linux/arm.
38709         * README: Update listing for arm-*-linux-gnueabi.
38710
38711         * README: Remove mention of am33.
38712
38713 2014-02-07  Roland McGrath  <roland@hack.frob.com>
38714
38715         * bits/sigset.h (__sigemptyset): Use a statement expression rather
38716         than the comma operator, to avoid "rhs of comma has no effect"
38717         compiler warnings.
38718         (__sigfillset, __sigandset, __sigorset): Likewise.
38719         * include/signal.h (__sigemptyset): Likewise.
38720         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
38721
38722 2014-02-07  Allan McRae  <allan@archlinux.org>
38723
38724         * version.h (RELEASE): Set to "development".
38725         (VERSION): Set to "2.19.90"
38726         * NEWS: Add 2.20 section.
38727
38728 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
38729
38730         [BZ #16529]
38731         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
38732
38733 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
38734
38735         * manual/contrib.texi: Update entry for Carlos O'Donell,
38736         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
38737
38738 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
38739
38740         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
38741
38742         * sysdeps/unix/sysv/linux/kernel-features.h
38743         [__LINUX_KERNEL_VERSION >= 0x020621]
38744         (__ASSUME_PROC_PID_TASK_COMM): Define.
38745
38746 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38747
38748         [BZ #16398]
38749         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
38750         conversion when destination buffer does not have enough space.
38751         * libio/tst-ftell-partial-wide.c: New test case.
38752         * libio/Makefile (tests): Add tst-ftell-partial-wide.
38753
38754         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
38755         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
38756         Leonard and Allan McRae.
38757
38758 2014-02-04  David S. Miller  <davem@davemloft.net>
38759
38760         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
38761         32-bit.
38762
38763 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38764
38765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
38766         New file
38767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
38768         New file
38769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
38770         New file.
38771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
38772         New file.
38773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
38774         New file.
38775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
38776         New file.
38777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
38778         New file.
38779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
38780         New file.
38781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
38782         New file.
38783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
38784         New file.
38785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
38786         New file.
38787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
38788         New file.
38789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
38790         New file.
38791
38792 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38793
38794         * nptl/shlib-versions: Change powerpc*le start to 2.17.
38795         * shlib-versions: Likewise.
38796
38797 2014-02-04  Roland McGrath  <roland@hack.frob.com>
38798             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38799
38800         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
38801         (abilist-pattern): New variable, set to %-le.abilist.
38802
38803         * Makerules (abilist-pattern): New variable.
38804         (vpath): Use $(abilist-pattern) in place of %.abilist.
38805         (check-abi-% pattern rule): Likewise.
38806         (check-abi, update-abi): Likewise.
38807
38808 2014-02-04  Eric Wong  <normalperson@yhbt.net>
38809
38810         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38811
38812 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
38813
38814         * manual/startup.texi: Add next, previous, and top entries for
38815         the `Program Arguments' and `Environment Variables' nodes.
38816
38817 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
38818
38819         * manual/macros.texi: Add comments before MTASC-safety macros.
38820
38821         * manual/users.texi: Document MTASC-safety properties.
38822
38823         * manual/threads.texi (pthread_key_create, pthread_key_delete)
38824         (pthread_getspecific, pthread_setspecific): Format with
38825         @deftypefun, and add @safety note.
38826         * manual/signal.texi: Move comments that analyze the above
38827         functions to their home place.
38828
38829 2014-02-03  Allan McRae  <allan@archlinux.org>
38830
38831         * po/sl.po: Update Slovenian translation from translation project.
38832
38833 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
38834
38835         * manual/time.texi (timegm): Add missing blank after @c.
38836         Reported by Joseph Myers <joseph@codesourcery.com>.
38837
38838 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
38839
38840         * manual/check-safety.sh: New.
38841         * manual/Makefile ($(objpfx)stamp-summary): Run it.
38842
38843         * manual/terminal.texi: Document MTASC-safety properties.
38844
38845         * manual/filesys.texi: Document MTASC-safety properties.
38846
38847         * manual/errno.texi: Document MTASC-safety properties.
38848
38849         * manual/intro.texi: Document safety identifiers and
38850         conditionals.
38851
38852         * manual/string.texi (wcstok): Fix prototype.
38853         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
38854
38855         * manual/time.texi: Document MTASC-safety properties.
38856
38857         * manual/string.texi: Document MTASC-safety properties.
38858
38859         * manual/threads.texi: Document MTASC-safety properties.
38860
38861         * manual/stdio.texi: Document MTASC-safety properties.
38862
38863         * manual/syslog.texi: Document MTASC-safety properties.
38864
38865         * manual/sysinfo.texi: Document MTASC-safety properties.
38866
38867         * manual/startup.texi: Document MTASC-safety properties.
38868
38869         * manual/socket.texi: Document MTASC-safety properties.
38870
38871         * manual/signal.texi: Document MTASC-safety properties.
38872
38873 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
38874
38875         * manual/setjmp.texi: Document MTASC-safety properties.
38876
38877         * manual/search.texi: Document MTASC-safety properties.
38878
38879         * manual/resource.texi: Document MTASC-safety properties.
38880
38881         * manual/process.texi: Document MTASC-safety properties.
38882
38883         * manual/platform.texi: Document MTASC-safety properties.
38884
38885         * manual/pipe.texi: Document MTASC-safety properties.
38886
38887         * manual/pattern.texi: Document MTASC-safety properties.
38888
38889         * manual/message.texi: Document MTASC-safety properties.
38890
38891         [BZ #12751]
38892         * manual/memory.texi: Document MTASC-safety properties.
38893
38894         * manual/math.texi: Document MTASC-safety properties.
38895
38896         * manual/locale.texi: Document MTASC-safety properties.
38897
38898         * manual/llio.texi: Document MTASC-safety properties.
38899
38900         * manual/libdl.texi: New.
38901
38902         * manual/lang.texi: Document MTASC-safety properties.
38903
38904         * manual/job.texi: Document MTASC-safety properties.
38905
38906         * manual/getopt.texi: Document MTASC-safety properties.
38907
38908         * manual/ctype.texi: Document MTASC-safety properties.
38909
38910 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
38911
38912         [BZ #16046]
38913         * csu/libc-tls.c (static_map): Remove variable.
38914         (__libc_setup_tls): Use main executable's link map for TLS data.
38915         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
38916         casing for LM_ID_BASE and GL(dl_nns).
38917         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
38918         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
38919         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
38920         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
38921         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
38922         member.
38923         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
38924         l_phnum members.
38925
38926 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
38927
38928         * manual/debug.texi: Document MTASC-safety properties.
38929
38930 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
38931
38932         [BZ #16510]
38933         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
38934         of __x86_64__ when disabling x87 inline functions.
38935
38936 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
38937
38938         * manual/charset.texi: Document MTASC-safety properties.
38939
38940         * manual/crypt.texi: Document MTASC-safety properties.
38941
38942         * manual/conf.texi: Document MTASC-safety properties.
38943
38944         * manual/arith.texi: Document MTASC-safety properties.
38945
38946         * manual/argp.texi: Document MTASC-safety properties.
38947
38948         * manual/macros.texi: Introduce macros to document multi
38949         thread, asynchronous signal and asynchronous cancellation
38950         safety properties.
38951         * manual/intro.texi: Introduce the properties themselves.
38952
38953 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38954
38955         * sysdeps/sh/sh4/Makefile: New file.
38956
38957 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
38958
38959         * math/gen-libm-test.pl ($srcdir): New variable.
38960         ($auto_input): Use it.
38961
38962 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38963
38964         [BZ #16506]
38965         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
38966         access beyond array bounds when parsing netgroups file.
38967
38968         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
38969         the old buffer before realloc.
38970
38971 2014-01-27  Allan McRae  <allan@archlinux.org>
38972
38973         * po/fr.po: Update French translation from translation project.
38974
38975 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38976
38977         * sysdeps/sh/libm-test-ulps: Regenerate.
38978
38979 2014-01-24  David S. Miller  <davem@davemloft.net>
38980
38981         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
38982
38983 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38984
38985         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
38986         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
38987
38988 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
38989
38990         [BZ #16474]
38991         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
38992         string pointers after reallocation.
38993
38994 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38995
38996         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
38997         __SH4A__ instead of __SH_FPU_ANY__.
38998
38999 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39000
39001         * sysdeps/sh/fpu_control.h: New file.
39002         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
39003         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
39004         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
39005         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
39006         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
39007         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
39008         * sysdeps/sh/sys/ucontext.h: Remove.
39009         * sysdeps/sh/sys: Remove directory.
39010
39011 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39012
39013         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
39014         s390/sys/ucontext.h.
39015         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
39016         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
39017
39018 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
39019
39020         [BZ #15605]
39021         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
39022
39023 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39024
39025         [BZ#16431]
39026         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
39027         Adjust the vDSO correctly for internal calls.
39028         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
39029
39030 2014-01-20  Allan McRae  <allan@archlinux.org>
39031
39032         * po/ca.po: Update Catalan translation from translation project.
39033
39034 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
39035
39036         * sysdeps/s390/sotruss-lib.c: New file.
39037
39038 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39039
39040         [BZ#16430]
39041         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
39042         (__GI___gettimeofday): Alias for a different internal symbol to avoid
39043         local calls issues by not having a PLT stub required for IFUNC calls.
39044         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
39045
39046 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
39047
39048         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
39049         * math/test-fpucw-static.c: Likewise.
39050
39051 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39052
39053         [BZ #16453]
39054         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
39055
39056 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39057
39058         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
39059         implementation for powerpc.
39060
39061 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
39062
39063         [BZ #14782]
39064         * sysdeps/posix/system.c (__libc_system): Do not enable
39065         asynchronous cancellation.
39066
39067 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39068
39069         [BZ #16427]
39070         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
39071         handling only for numbers special also in the IEEE case.
39072
39073 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39074
39075         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
39076
39077 2014-01-11  Allan McRae  <allan@archlinux.org>
39078
39079         * po/bg.po: Update Bulgarian translation from translation project.
39080
39081         * po/de.po: Update German translation from translation project.
39082
39083 2014-01-10  Roland McGrath  <roland@hack.frob.com>
39084
39085         * sysdeps/generic/gcc-compat.h: New file.
39086
39087 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
39088
39089         * benchtests/asin-inputs: Correct slow inputs.
39090         * benchtests/acos-inputs: Likewise.
39091
39092 2014-01-10  Allan McRae  <allan@archlinux.org>
39093
39094         * po:sv.po: Update Swedish translation from translation project.
39095
39096         * po/vi.po: Update Vietnamese translation from translation project.
39097
39098         * po/eo.po: Update Esperanto translation from translation project.
39099
39100         * po/cs.po: Update Czech translation from translation project.
39101
39102         * po/nl.po: Update Dutch translation from translation project.
39103
39104         * po/pl.po: Update Polish translation from translation project.
39105
39106         * po/ru.po: Update Russian translation from translation project.
39107
39108         * po/uk.po: Update Ukrainian translation from translation project.
39109
39110 2014-01-08  Brooks Moses  <bmoses@google.com>
39111
39112         * elf/dl-load.c: Fix comment typo.
39113
39114 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
39115
39116         * po/header.pot: Rename to...
39117         * po/pot.header: ... this.
39118         * po/Makefile: Use pot.header.
39119
39120 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
39121             Maxim Kuvyrkov  <maxim@kugelworks.com>
39122
39123         [BZ #16394]
39124         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
39125         SRC and DEST against LEN.
39126
39127 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39128
39129         [BZ #16414]
39130         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
39131         implementation.
39132         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
39133
39134 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39135
39136         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39137
39138 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
39139
39140         [BZ #16408]
39141         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
39142         for large positive arguments.
39143
39144 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
39145
39146         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
39147
39148         * math/auto-libm-test-in: Mark various tests with
39149         xfail-rounding:ldbl-128ibm.
39150         * math/auto-libm-test-out: Regenerated.
39151
39152         [BZ #16407]
39153         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
39154         Increase overflow threshold.
39155
39156 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
39157
39158         [BZ #14286]
39159         * stdio-common/vfprintf.c: Check for integer overflow.
39160
39161 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39162
39163         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
39164         the first argument and return value of __tls_get_addr_internal.
39165
39166 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39167
39168         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
39169         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
39170
39171 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39172
39173         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
39174         * sysdeps/s390/rtld-global-offsets.sym: New file.
39175         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
39176         GLIBC_2.19 symbol.
39177         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
39178         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
39179         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
39180         ... this.
39181         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
39182         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
39183         ... this.
39184         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
39185         Regenerate.
39186         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
39187         Regenerate.
39188         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
39189         halfs of GPRs for high_gprs contexts.
39190         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
39191         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
39192         field.
39193         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
39194         uc_flags field.
39195         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
39196         64 bit versions:
39197         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
39198         for high GPRs (uc_high_gprs) and for future extensions
39199         (__reserved).
39200         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
39201         for future extensions (__reserved).
39202         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
39203         64 bit versions:
39204         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
39205         SC_HIGHGPRS offset definition.
39206         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
39207         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
39208
39209         * Versions.def: Add GLIBC_2.19 for libpthread.
39210         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
39211         siglongjmp for libpthread with GLIBC_2.19 symver.
39212         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
39213         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
39214         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
39215         * sysdeps/s390/__longjmp.c: New file.
39216         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
39217         * sysdeps/s390/longjmp.c: New file.
39218         * sysdeps/s390/setjmp.S: New file.
39219         * sysdeps/s390/sigjmp.S: New file.
39220         * sysdeps/s390/v1-longjmp.c: New file.
39221         * sysdeps/s390/v1-setjmp.h: New file.
39222         * sysdeps/s390/v1-sigjmp.c: New file.
39223         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
39224         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
39225         GLIBC_2.19 version.
39226         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
39227         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
39228         versioned symbols for ____longjmp_chk.
39229         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
39230         Likewise.
39231         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
39232         Regenerate.
39233         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
39234         Regenerate.
39235         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
39236         Regenerate.
39237         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
39238         Regenerate.
39239         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
39240         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
39241         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
39242         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
39243         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
39244         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
39245         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
39246         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
39247         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
39248         * sysdeps/s390/rtld-__longjmp.c: New file.
39249         * sysdeps/s390/rtld-setjmp.S: New file.
39250
39251 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
39252
39253         [BZ #16400]
39254         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39255         Return -__logl (x) for small positive arguments without evaluating
39256         a polynomial.
39257
39258 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
39259
39260         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
39261         Rename to ...
39262         (__ptrace_peeksiginfo_args): ... this.
39263         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
39264         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
39265         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
39266
39267 2014-01-06  Allan McRae  <allan@archlinux.org>
39268
39269         * inet/netinet/in.h: Fix typo in comment.
39270
39271 2014-01-05  Andreas Jaeger  <aj@suse.de>
39272
39273         * sysdeps/i386/fpu/libm-test-ulps: Update.
39274
39275 2014-01-05  Allan McRae  <allan@archlinux.org>
39276
39277         * po/libc.pot: Regenerated.
39278
39279         * malloc/memusagestat.c: Fix gettext call formatting.
39280
39281 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
39282
39283         * nscd/nscd.c: Improve usage() output.
39284
39285 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
39286
39287         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
39288         * sysdeps/unix/sysv/linux/configure: Regenerated.
39289         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
39290         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
39291
39292 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
39293
39294         [BZ #16390]
39295         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
39296         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
39297
39298 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39299
39300         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
39301         extra tokens at end of #undef directive.
39302         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
39303         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
39304         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
39305
39306 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
39307
39308         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
39309
39310         * math/auto-libm-test-in: Mark various tests with
39311         xfail-rounding:ldbl-128ibm.
39312         * math/auto-libm-test-out: Regenerated.
39313
39314 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
39315
39316         [BZ #16386]
39317         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
39318         numbers with subnormal high part when calculating exponent.
39319
39320         [BZ #16385]
39321         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
39322         fabs.
39323
39324         [BZ #16384]
39325         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
39326         M_LN2l.
39327         (__ieee754_acoshl): Use __log1pl not __log1p.
39328
39329 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
39330
39331         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
39332         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
39333         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
39334         (grow_heap, heap_trim, _int_new_arena, get_free_list)
39335         (reused_arena, arena_get2): Convert to GNU style.
39336         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
39337         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
39338         (memalign_check, __malloc_set_state): Likewise.
39339         * malloc/mallocbug.c (main): Likewise.
39340         * malloc/malloc.c (__malloc_assert, malloc_init_state)
39341         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
39342         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
39343         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
39344         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
39345         (__posix_memalign, malloc_info): Likewise.
39346         * malloc/malloc.h: Likewise.
39347         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
39348         (mallochook, memalignhook, reallochook, mabort): Likewise.
39349         * malloc/mcheck.h: Likewise.
39350         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
39351         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
39352         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
39353         * malloc/morecore.c (__default_morecore): Likewise.
39354         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
39355         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
39356         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
39357         (print_and_abort): Likewise.
39358         * malloc/obstack.h: Likewise.
39359         * malloc/set-freeres.c (__libc_freeres): Likewise.
39360         * malloc/tst-mallocstate.c (main): Likewise.
39361         * malloc/tst-mtrace.c (main): Likewise.
39362         * malloc/tst-realloc.c (do_test): Likewise.
39363
39364 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
39365
39366         [BZ #16366]
39367         * nscd/netgroupcache.c (do_notfound): New function.
39368         (addgetnetgrentX): Use it.
39369
39370         [BZ # 16365]
39371         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
39372         NSS_STATUS_NOTFOUND.
39373
39374 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
39375
39376         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
39377         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39378
39379 2014-01-01  Allan McRae  <allan@archlinux.org>
39380
39381         * scripts/update-copyrights: Update configure input file suffix.
39382
39383         * NEWS: Update copyright year.
39384         * catgets/gencat.c: Likewise.
39385         * csu/version.c: Likewise.
39386         * debug/catchsegv.sh: Likewise.
39387         * debug/pcprofiledump.c: Likewise.
39388         * debug/xtrace.sh: Likewise.
39389         * elf/ldconfig.c: Likewise.
39390         * elf/ldd.bash.in: Likewise.
39391         * elf/pldd.c: Likewise.
39392         * elf/sotruss.ksh: Likewise.
39393         * elf/sprof.c: Likewise.
39394         * iconv/iconv_prog.c: Likewise.
39395         * iconv/iconvconfig.c: Likewise.
39396         * locale/programs/locale.c: Likewise.
39397         * locale/programs/localedef.c: Likewise.
39398         * login/programs/pt_chown.c: Likewise.
39399         * malloc/memusage.sh: Likewise.
39400         * malloc/memusagestat.c: Likewise.
39401         * malloc/mtrace.pl: Likewise.
39402         * manual/libc.texinfo: Likewise.
39403         * nscd/nscd.c: Likewise.
39404         * nss/getent.c: Likewise.
39405         * nss/makedb.c: Likewise.
39406         * posix/getconf.c: Likewise.
39407         * scripts/test-installation.pl: Likewise.
39408
39409         * All files with FSF copyright notices: Update copyright dates
39410         using scripts/update-copyrights.
39411         * intl/plural.c: Regenerated.
39412         * locale/programs/charmap-kw.h: Likewise.
39413         * locale/programs/locfile-kw.h: Likewise.
39414
39415 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
39416
39417         * sysdeps/unix/sysv/linux/configure: Regenerated.
39418         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
39419         the linux/fanotify.h header.
39420         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
39421         HAVE_LINUX_FANOTIFY_H is defined.
39422
39423 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
39424
39425         * benchtests/cos-inputs: New inputs.
39426         * benchtests/sin-inputs: Likewise.
39427
39428         * benchtests/atan-inputs: New inputs. Fix name of multiple
39429         precision fallback inputs.
39430
39431         * benchtests/atanh-inputs: New inputs.
39432         * benchtests/tanh-inputs: Likewise.
39433
39434         * benchtests/acosh-inputs: New inputs.
39435         * benchtests/asinh-inputs: Likewise.
39436
39437         * benchtests/cosh-inputs: New inputs.
39438         * benchtests/sinh-inputs: Likewise.
39439
39440         * benchtests/acos-inputs: Add more inputs.
39441         * benchtests/asin-inputs: Likewise.
39442
39443 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
39444
39445         [BZ #16375]
39446         * manual/arith.texi: Fix spelling.
39447         * manual/charset.texi: Likewise.
39448         * manual/errno.texi: Likewise.
39449         * manual/filesys.texi: Likewise.
39450         * manual/lang.texi: Likewise.
39451         * manual/llio.texi: Likewise.
39452         * manual/locale.texi: Likewise.
39453         * manual/message.texi: Likewise.
39454         * manual/resource.texi: Likewise.
39455         * manual/search.texi: Likewise.
39456         * manual/setjmp.texi: Likewise.
39457         * manual/stdio.texi: Likewise.
39458         * manual/string.texi: Likewise.
39459         * manual/sysinfo.texi: Likewise.
39460         * manual/time.texi: Likewise.
39461
39462 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
39463
39464         * po/sl.po: New file.
39465
39466 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
39467
39468         * .gitignore: Add core/.gdbinit/.gdb_history.
39469
39470 2013-12-27  Allan McRae  <allan@archlinux.org>
39471
39472         [BZ #16369]
39473         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
39474         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
39475
39476 2013-12-24  Brooks Moses  <bmoses@google.com>
39477
39478         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
39479         all compilers that claim C++98 compliance, not just GCC.
39480         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
39481         Likewise.
39482
39483 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39484
39485         * NEWS: Restore accidentally deleted bug-fix entries.
39486
39487 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39488             Ondřej Bílka  <neleai@seznam.cz>
39489
39490         [BZ #15073]
39491         * malloc/malloc.c (_int_free): Perform sanity check only if we
39492         have_lock.
39493
39494 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
39495
39496         [BZ #12986]
39497         * manual/stdio.texi (String Input Conversions): Clarify that character
39498         classes are not supported.
39499
39500 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39501
39502         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39503
39504 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
39505
39506         [BZ #16337]
39507         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39508         Calculate results for small negative arguments directly rather
39509         than using reflection formula with special underflow handling.
39510
39511         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
39512         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
39513         sysdeps/unix/bsd/bsd4.4/syscalls.list.
39514         (fchflags): Likewise.
39515         (revoke): Likewise.
39516         (setlogin): Likewise.
39517         (sigaltstack): Likewise.
39518         (wait4): Likewise.
39519         (sigblock): Remove.
39520         (sigsetmask): Likewise.
39521         (wait3): Likewise.
39522         (waitpid): Likewise.
39523         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
39524         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
39525         file.
39526         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
39527         * sysdeps/unix/bsd/Makefile: ... here.
39528         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
39529         * sysdeps/unix/bsd/Versions: ... here.
39530         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
39531         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
39532         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
39533         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
39534         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
39535         * sysdeps/unix/bsd/sigblock.c: ... here.
39536         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
39537         * sysdeps/unix/bsd/sigsetmask.c: ... here.
39538         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
39539         * sysdeps/unix/bsd/sigvec.c: ... here.
39540         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
39541         * sysdeps/unix/bsd/tcdrain.c: ... here.
39542         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
39543         * sysdeps/unix/bsd/tcgetattr.c: ... here.
39544         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
39545         * sysdeps/unix/bsd/tcsetattr.c: ... here.
39546         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
39547         * sysdeps/unix/bsd/wait.c: ... here.
39548         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
39549         * sysdeps/unix/bsd/wait3.c: ... here.
39550         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
39551         * sysdeps/unix/bsd/waitpid.c: ... here.
39552
39553 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
39554
39555         [BZ #16356]
39556         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
39557         round-to-nearest for [!USE_AS_EXPM1L].
39558         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
39559         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
39560         more tests of exp and exp10.  Expect some exp10 tests to miss
39561         exceptions or fail in directed rounding modes.
39562         * math/auto-libm-test-out: Regenerated.
39563         * math/libm-test.inc (exp10_tonearest_test_data): New array.
39564         (exp10_test_tonearest): New function.
39565         (exp10_towardzero_test_data): New array.
39566         (exp10_test_towardzero): New function.
39567         (exp10_downward_test_data): New array.
39568         (exp10_test_downward): New function.
39569         (exp10_upward_test_data): New array.
39570         (exp10_test_upward): New function.
39571         (main): Call the new functions.
39572         * sysdeps/i386/fpu/libm-test-ulps: Update.
39573         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39574
39575 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
39576
39577         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
39578         asinh, atan, atan2, atanh, cbrt, cos and cosh.
39579         * math/auto-libm-test-out: Regenerated.
39580         * math/libm-test.inc (acosh_test_data): Add more tests.
39581         (atanh_test_data): Likewise.
39582         (ceil_test_data): Likewise.
39583         (copysign_test_data): Likewise.
39584         * sysdeps/i386/fpu/libm-test-ulps: Update.
39585         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39586
39587         * timezone/checktab.awk: Update from tzcode 2013i.
39588         * timezone/private.h: Likewise.
39589         * timezone/scheck.c: Likewise.
39590         * timezone/tzfile.h: Likewise.
39591         * timezone/tzselect.ksh: Likewise.
39592         * timezone/zdump.c: Likewise.
39593         * timezone/zic.c: Likewise.
39594
39595         * math/auto-libm-test-in: Add tests of cpow.
39596         * math/auto-libm-test-out: Regenerated.
39597         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
39598         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39599         mpc_cc_c.
39600         (func_calc_desc): Add mpc_cc_c union field.
39601         (test_functions): Add cpow.
39602         (special_fill_2pi): New function.
39603         (special_real_inputs): Add 2pi.
39604         (calc_generic_results): Handle mpc_cc_c.
39605         * sysdeps/i386/fpu/libm-test-ulps: Update.
39606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39607
39608         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
39609         csqrt, ctan and ctanh.
39610         * math/auto-libm-test-out: Regenerated.
39611         * math/libm-test.inc (TEST_COND_x86_64): New macro.
39612         (TEST_COND_x86): Likewise.
39613         (ccos_test_data): Use AUTO_TESTS_c_c.
39614         (ccosh_test_data): Likewise.
39615         (cexp_test_data): Likewise.
39616         (clog_test_data): Likewise.
39617         (csqrt_test_data): Likewise.
39618         (ctan_test_data): Likewise.
39619         (ctan_tonearest_test_data): Likewise.
39620         (ctan_towardzero_test_data): Likewise.
39621         (ctan_downward_test_data): Likewise.
39622         (ctan_upward_test_data): Likewise.
39623         (ctanh_test_data): Likewise.
39624         (ctanh_tonearest_test_data): Likewise.
39625         (ctanh_towardzero_test_data): Likewise.
39626         (ctanh_downward_test_data): Likewise.
39627         (ctanh_upward_test_data): Likewise.
39628         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39629         mpc_c_c.
39630         (func_calc_desc): Add mpc_c_c union field.
39631         (FUNC_mpc_c_c): New macro.
39632         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
39633         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
39634         ctanh.
39635         (special_fill_min_subnorm_p120): New function.
39636         (special_real_inputs): Add min_subnorm_p120.
39637         (calc_generic_results): Handle mpc_c_c.
39638         * sysdeps/i386/fpu/libm-test-ulps: Update.
39639         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39640
39641 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
39642
39643         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
39644         (do_sin_slow): New functions.
39645         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
39646         (cslow2, csloww1, csloww2): Use the new functions.
39647
39648         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
39649         Use M to change sign of result instead of X.  Assume X is
39650         positive.
39651         (csloww1): Likewise.
39652         (__sin): Adjust.
39653         (__cos): Adjust.
39654
39655         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
39656         arguments A and DA.
39657         (__sin): Adjust.
39658         (__cos): Likewise.
39659
39660         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
39661         (__cos): Likewise.
39662         (sloww1): Don't adjust sign of DX.
39663         (csloww1): Likewise.
39664         (sloww2): Use X directly and don't adjust sign of DX.
39665         (csloww2): Likewise.
39666
39667 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39668
39669         * math/auto-libm-test-in: Add tests of cabs and carg.
39670         * math/auto-libm-test-out: Regenerated.
39671         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
39672         (carg_test_data): Likewise.
39673         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39674         mpc_c_f.
39675         (func_calc_desc): Add mpc_c_f union field.
39676         (test_functions): Add cabs and carg.
39677         (calc_generic_results): Handle mpc_c_f.
39678
39679         * sysdeps/powerpc/powerpc32/libgcc-compat.S
39680         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
39681         as a macro and a compat symbol.
39682         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39683         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39684         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39685         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39686         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
39687         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
39688         not use .hidden.
39689         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
39690         Likewise.
39691         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
39692         Likewise.
39693         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
39694         Likewise.
39695         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
39696         Likewise.
39697         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
39698         Likewise.
39699         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
39700         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
39701         from GLIBC_2.3.2.
39702
39703 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39704
39705         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39706
39707 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39708
39709         * manual/texinfo.tex: Update to version 2013-11-26.10 with
39710         trailing whitespace removed.
39711         * scripts/config.guess: Update to version 2013-11-29.
39712         * scripts/config.sub: Update to version 2013-10-01.
39713
39714         * math/auto-libm-test-in: Add tests of sincos.
39715         * math/auto-libm-test-out: Regenerated.
39716         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
39717         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39718         mpfr_f_11.
39719         (func_calc_desc): Add mpfr_f_11 union field.
39720         (test_functions): Add sincos.
39721         (calc_generic_results): Handle mpfr_f_11.
39722         * sysdeps/i386/fpu/libm-test-ulps: Update.
39723         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39724
39725 2013-12-19  Andreas Schwab  <schwab@suse.de>
39726
39727         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
39728         CALL_MCOUNT.
39729         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
39730         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
39731         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
39732
39733 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39734
39735         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
39736         * sysdeps/i386/fpu/libm-test-ulps: Update.
39737         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39738
39739         [BZ #16293]
39740         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
39741         round-to-nearest mode when using frndint.
39742         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
39743         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
39744         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
39745         Likewise.
39746         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
39747         sinh test to fail.
39748         * math/auto-libm-test-out: Regenerated.
39749         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
39750         (TEST_COND_x86): Likewise.
39751         (expm1_tonearest_test_data): New array.
39752         (expm1_test_tonearest): New function.
39753         (expm1_towardzero_test_data): New array.
39754         (expm1_test_towardzero): New function.
39755         (expm1_downward_test_data): New array.
39756         (expm1_test_downward): New function.
39757         (expm1_upward_test_data): New array.
39758         (expm1_test_upward): New function.
39759         (main): Run the new test functions.
39760         * sysdeps/i386/fpu/libm-test-ulps: Update.
39761         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39762
39763         * include/features.h: Update comment documenting feature test
39764         macros.  Mention _DEFAULT_SOURCE in comment.
39765         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
39766         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
39767         _BSD_SOURCE and _SVID_SOURCE.
39768         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
39769         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
39770         !_SVID_SOURCE]: Likewise.
39771         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39772         (__USE_POSIX_IMPLICITLY): Define.
39773         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39774         (_POSIX_SOURCE): Undefine and redefine.
39775         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39776         (_POSIX_C_SOURCE): Likewise.
39777         * manual/creature.texi (_DEFAULT_SOURCE): Document.
39778         (Feature Test Macros): Update documentation of default features.
39779
39780 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
39781
39782         * benchtests/Makefile: Add bench-strtok.
39783         * benchtests/bench-strtok.c: New file: strtok benchtest.
39784
39785 2013-12-19  Allan McRae  <allan@archlinux.org>
39786
39787         * manual/install.texi: Suppress menu for plain text output.
39788         * INSTALL: Regenerated.
39789
39790 2013-12-18  Brooks Moses  <bmoses@google.com>
39791
39792         [BZ #15846]
39793         * misc/getauxval.c: Include errno.h.
39794         (__getauxval): Set errno to ENOENT if the requested type is not
39795         found.
39796         * misc/sys/auxv.h (getauxval): Document that it may set errno;
39797         don't declare with __attribute_const__.
39798         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
39799         * manual/startup.texi: Document that getauxval sets errno.
39800
39801 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39802
39803         * math/auto-libm-test-in: Add tests of jn and yn.
39804         * math/auto-libm-test-out: Regenerated.
39805         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
39806         (yn_test_data): Likewise.
39807         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39808         mpfr_if_f.
39809         (func_calc_desc): Add mpfr_if_f union field.
39810         (FUNC_mpfr_if_f): New macro.
39811         (test_functions): Add jn and yn.
39812         (calc_generic_results): Assert type of second input for
39813         mpfr_ff_f.  Handle mpfr_if_f.
39814         (output_for_one_input_case): Disable all checking for arguments
39815         fitting floating-point types in case of an integer argument.
39816         * sysdeps/i386/fpu/libm-test-ulps: Update.
39817         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39818
39819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
39820         Don't expect fegetround reference in libm.so.
39821
39822 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39823
39824         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
39825         $(config-cflags-nofma).
39826
39827 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39828
39829         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
39830         * math/auto-libm-test-out: Regenerated.
39831
39832         [BZ #16338]
39833         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
39834         to determine exponent and adjust argument to have exponent of -1.
39835         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
39836         log2.
39837         * math/auto-libm-test-out: Regenerated.
39838         * sysdeps/i386/fpu/libm-test-ulps: Update.
39839         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39840
39841 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
39842
39843         * manual/probes.texi: Remove cases when per-thread arenas are
39844         disabled.
39845
39846 2013-12-18  Andreas Schwab  <schwab@suse.de>
39847
39848         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
39849         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
39850         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
39851         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
39852         * sysdeps/i386/i686/multiarch/Makefile: Update.
39853         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
39854
39855 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39856
39857         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
39858         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
39859
39860 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
39861
39862         [BZ #15968]
39863         Support TZ transition times < 00:00:00.
39864         This is needed for version-3 tz-format files; it supports time
39865         stamps past 2037 for America/Godthab (the only entry in the tz
39866         database for which this change is relevant).
39867         * manual/time.texi (TZ Variable): Document transition times
39868         from -167:59:59 through -00:00:01.
39869         * time/tzset.c (tz_rule): Time of day is now signed.
39870         (__tzset_parse_tz): Parse negative time of day.
39871
39872         Document TZ transition times >= 25:00:00.
39873         * manual/time.texi (TZ Variable): Document transition times from
39874         25:00:00 through 167:59:59.  These are already supported, and this
39875         support will help with version-3 tz-format files.
39876
39877         * manual/time.texi (TZ Variable): Modernize North America example
39878         to reflect current (i.e., 2007-and-later) daylight saving rules.
39879
39880         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
39881
39882 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39883
39884         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
39885         * sysdeps/unix/bsd/bits/stat.h: Likewise.
39886         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
39887         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
39888         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
39889         * sysdeps/unix/bsd/bsdstat.h: Likewise.
39890         * sysdeps/unix/bsd/clock.c: Likewise.
39891         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
39892         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
39893         * sysdeps/unix/bsd/init-posix.c: Likewise.
39894         * sysdeps/unix/bsd/poll.c: Likewise.
39895         * sysdeps/unix/bsd/ptsname.c: Likewise.
39896         * sysdeps/unix/bsd/seekdir.c: Likewise.
39897         * sysdeps/unix/bsd/setegid.c: Likewise.
39898         * sysdeps/unix/bsd/seteuid.c: Likewise.
39899         * sysdeps/unix/bsd/setgid.c: Likewise.
39900         * sysdeps/unix/bsd/setrgid.c: Likewise.
39901         * sysdeps/unix/bsd/setruid.c: Likewise.
39902         * sysdeps/unix/bsd/setsid.c: Likewise.
39903         * sysdeps/unix/bsd/setuid.c: Likewise.
39904         * sysdeps/unix/bsd/sigaction.c: Likewise.
39905         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
39906         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
39907         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
39908         * sysdeps/unix/bsd/telldir.c: Likewise.
39909         * sysdeps/unix/bsd/times.c: Likewise.
39910         * sysdeps/unix/bsd/usleep.c: Likewise.
39911
39912         * misc/Makefile (install-lib): Remove libbsd-compat.a.
39913         ($(objpfx)libbsd-compat.a): Remove rule.
39914
39915         * include/features.h (__FAVOR_BSD): Do not define.
39916         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
39917         features conflicting with POSIX.
39918         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
39919         (_BSD_SOURCE): Remove description of not being a subset of other
39920         feature test macros.
39921         * manual/job.texi (getpgrp): Do not document BSD version.
39922         (getpgid): Do not document by reference to BSD getpgrp.
39923         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
39924         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
39925         * signal/signal.h [__FAVOR_BSD]: Likewise.
39926         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
39927         instead of making contents conditional on [__FAVOR_BSD].
39928         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
39929
39930 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39931
39932         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39933
39934 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39935
39936         [BZ #16314]
39937         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
39938         values below 2**-450, not 2**-500.
39939         * math/auto-libm-test-in: Don't allow spurious underflow from
39940         hypot.
39941         * math/auto-libm-test-out: Regenerated.
39942
39943         [BZ #16316]
39944         [BZ #16330]
39945         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
39946         values of ha and hb and sort them after adjusting subnormal
39947         arguments.
39948         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
39949         Likewise.
39950         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
39951         values of ea and eb and sort them after adjusting subnormal
39952         arguments.
39953         * math/auto-libm-test-in: Do not expect some hypot tests of
39954         subnormals to fail.  Add more hypot tests.
39955         * math/auto-libm-test-out: Regenerated.
39956
39957 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39958
39959         [BZ #13304]
39960         * sysdeps/sh/s_fma.c: New file.
39961         * sysdeps/sh/s_fmaf.c: New file.
39962         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
39963         version.
39964         * sysdeps/sh/Implies: Add sh/soft-fp.
39965
39966 2013-12-16  Roland McGrath  <roland@hack.frob.com>
39967
39968         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
39969         level of indirection to members `objname', `errstring', `malloced'.
39970         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
39971         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
39972         it as the __longjmp argument (just pass 1 instead).
39973         (_dl_catch_error): Initialize C with argument pointers and address of
39974         volatile local ERRCODE rather than copying values out of C at return.
39975
39976 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
39977
39978         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
39979         * math/auto-libm-test-out: Regenerated.
39980         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
39981         (hypot_test_data): Likewise.
39982         (pow_test_data): Likewise.
39983         (pow_tonearest_test_data): Likewise.
39984         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39985         mpfr_ff_f.
39986         (func_calc_desc): Add mpfr_ff_f union field.
39987         (FUNC_mpfr_ff_f): New macro.
39988         (test_functions): Add atan2, hypot and pow.
39989         (special_fill_min): New function.
39990         (special_fill_minus_min): Likewise.
39991         (special_fill_min_subnorm): Likewise.
39992         (special_fill_minus_min_subnorm): Likewise.
39993         (special_real_inputs): Add min, -min, min_subnorm and
39994         -min_subnorm.
39995         (calc_generic_results): Handle mpfr_ff_f.
39996         * sysdeps/i386/fpu/libm-test-ulps: Update.
39997         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39998
39999 2013-12-16  Will Newton  <will.newton@linaro.org>
40000
40001         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
40002         (Aligned Memory Blocks): Add documentation for aligned_alloc
40003         and suggest it as an alternative to posix_memalign.
40004         (Hooks for Malloc): Document __memalign_hook is also called
40005         for aligned_alloc.  (Summary of Malloc): Add summary for
40006         aligned alloc.  Document __memalign_hook is also called
40007         for aligned_alloc.
40008
40009 2013-12-16  Will Newton  <will.newton@linaro.org>
40010
40011         * manual/memory.texi (Malloc Examples): Clarify default
40012         alignment documentation.  Suggest posix_memalign rather
40013         than memalign or valloc.
40014         (Aligned Memory Blocks): Remove suggestion to use memalign
40015         or valloc.  Remove obsolete comment about BSD.
40016         Document memalign errno values and mark the function obsolete.
40017         Document posix_memalign returned error codes.  Mark valloc
40018         as obsolete.  (Hooks for Malloc): __memalign_hook is also
40019         called for posix_memalign and valloc.
40020         (Summary of Malloc): Add posix_memalign to function summary.
40021         __memalign_hook is also called for posix_memalign and valloc.
40022
40023 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
40024
40025         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
40026         TAYLOR_SIN.
40027         (__sin): Adjust.
40028         (__cos): Likewise.
40029         (sloww): Use mynumber union.  Expand ternary operator into
40030         if-else statements.
40031         (cslow): use mynumber union.
40032
40033 2013-12-16  Allan McRae  <allan@archlinux.org>
40034
40035         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
40036         * configure: Regenerated.
40037
40038         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
40039
40040         [BZ #14120]
40041         * configure.ac: Added --enable-maintainer-mode. Check for
40042         autoconf when enabled.
40043         * configure: Regenerated.
40044
40045         * nscd/nscd.service: New file.
40046         * nscd/nscd.tmpfiles: New file.
40047
40048 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
40049
40050         [BZ #12100]
40051         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
40052         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
40053         * sysdeps/x86_64/multiarch/strstr.c: ... here.
40054         (strstr): Add __strstr_sse2_unaligned ifunc.
40055         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
40056         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
40057         (strcasestr): Remove __strcasestr_sse42 ifunc.
40058         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
40059         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
40060         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
40061
40062 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40063
40064         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
40065         * sysdeps/sh/bits/fenv.h: ... here.
40066         * sysdeps/sh/sh4/fpu/bits: Remove directory.
40067
40068 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40069
40070         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
40071
40072         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
40073         hypotf multiarch implementations.
40074         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
40075         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
40076         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
40077         multiarch hypot for PPC64.
40078         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
40079         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
40080         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
40081         multiarch hypotf for PPC64.
40082
40083         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
40084         modff multiarch implementations.
40085         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
40086         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
40087         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
40088         multiarch modf for PPC64.
40089         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
40090         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
40091         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
40092         multiarch modff for PPC64.
40093
40094         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
40095         and logl multiarch implementations.
40096         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
40097         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
40098         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
40099         multiarch logb for PPC64.
40100         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
40101         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
40102         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
40103         multiarch logb for PPC64.
40104         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
40105         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
40106         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
40107         multiarch logb for PPC64.
40108
40109         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
40110         isinff multiarch implementation.
40111         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
40112         file.
40113         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
40114         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
40115         multiarch isinf for PPC64.
40116         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
40117         file.
40118         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
40119         multiarch isinff for PPC64.
40120
40121         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
40122         finitef multiarch implementation.
40123         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
40124         file.
40125         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
40126         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
40127         multiarch finite for PPC64.
40128         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
40129         file.
40130         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
40131         multiarch finitef for PPC64.
40132
40133         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
40134         lrint multiarch implementation.
40135         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
40136         file.
40137         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
40138         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
40139         multiarch llrint for PPC64.
40140         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
40141         multiarch lrint for PPC64.
40142
40143         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
40144         copysignf multiarch implementation.
40145         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
40146         file.
40147         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
40148         file.
40149         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
40150         multiarch copysign for PPC64.
40151         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
40152         multiarch copysignf for PPC64.
40153
40154         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
40155         multiarch implementation.
40156         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
40157         file.
40158         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
40159         file.
40160         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
40161         file.
40162         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
40163         file.
40164         multiarch llround for PPC64.
40165         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
40166         multiarch trunc for PPC64.
40167         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
40168         multiarch truncf for PPC64.
40169
40170         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
40171         multiarch implementation.
40172         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
40173         file.
40174         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
40175         file.
40176         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
40177         file.
40178         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
40179         file.
40180         multiarch llround for PPC64.
40181         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
40182         multiarch round for PPC64.
40183         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
40184         multiarch roundf for PPC64.
40185
40186         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
40187         multiarch implementation.
40188         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
40189         file.
40190         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
40191         file.
40192         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
40193         file.
40194         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
40195         file.
40196         multiarch llround for PPC64.
40197         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
40198         multiarch floor for PPC64.
40199         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
40200         multiarch floorf for PPC64.
40201
40202         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
40203         multiarch implementation.
40204         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
40205         file.
40206         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
40207         file.
40208         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
40209         file.
40210         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
40211         file.
40212         multiarch llround for PPC64.
40213         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
40214         multiarch ceil for PPC64.
40215         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
40216         multiarch ceilf for PPC64.
40217
40218         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
40219         multiarch implementation.
40220         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
40221         file.
40222         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
40223         file.
40224         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
40225         file.
40226         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
40227         multiarch llround for PPC64.
40228         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
40229         multiarch lround for PPC64.
40230
40231         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
40232         multiarch implementation.
40233         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
40234         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
40235         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
40236         file.
40237         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
40238         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
40239         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
40240         multiarch isnan for PPC64.
40241         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
40242         multiarch isnanf for PPC64.
40243
40244         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
40245         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
40246         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
40247         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
40248         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
40249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
40250
40251         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
40252         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
40253         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
40254         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
40255
40256         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
40257         multiarch implementations.
40258         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40259         (__libc_ifunc_impl_list): Likewise.
40260         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
40261         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
40262         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
40263         multiarch stpcpy for PPC64.
40264
40265         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
40266         multiarch implementations.
40267         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40268         (__libc_ifunc_impl_list): Likewise.
40269         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
40270         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
40271         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
40272         multiarch strcpy for PPC64.
40273
40274         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
40275         redefine function name.
40276         (_wordcopy_fwd_dest_aligned): Likewise.
40277         (_wordcopy_bwd_aligned): Likewise.
40278         (_wordcopy_bwd_dest_aligned): Likewise.
40279         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
40280         multiarch implementations.
40281         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40282         (__libc_ifunc_impl_list): Likewise.
40283         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
40284         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
40285         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
40286         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
40287         multiarch wcscpy for PPC64.
40288
40289         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
40290         multiarch implementations.
40291         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40292         (__libc_ifunc_impl_list): Likewise.
40293         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
40294         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
40295         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
40296         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
40297         multiarch wcscpy for PPC64.
40298
40299         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
40300         multiarch implementations.
40301         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40302         (__libc_ifunc_impl_list): Likewise.
40303         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
40304         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
40305         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
40306         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
40307         multiarch wcsrchr for PPC64.
40308
40309         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
40310         multiarch implementations.
40311         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40312         (__libc_ifunc_impl_list): Likewise.
40313         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
40314         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
40315         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
40316         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
40317         multiarch wcschr for PPC64.
40318
40319         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
40320         multiarch implementations.
40321         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40322         (__libc_ifunc_impl_list): Likewise.
40323         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
40324         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
40325         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
40326         multiarch strchrnul for PPC64.
40327
40328         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
40329         implementations.
40330         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40331         (__libc_ifunc_impl_list): Likewise.
40332         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
40333         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
40334         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
40335         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
40336         strchr for PPC64.
40337
40338         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
40339         implementations.
40340         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40341         (__libc_ifunc_impl_list): Likewise.
40342         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
40343         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
40344         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
40345         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
40346         strncmp for PPC64.
40347
40348         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
40349         multiarch implementations.
40350         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40351         (__libc_ifunc_impl_list): Likewise.
40352         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
40353         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
40354         strncasecmp for PPC64.
40355         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
40356         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
40357         multiarch strncasecmp_l for PPC64.
40358
40359         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
40360         multiarch implementations.
40361         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
40362         (__libc_ifunc_impl_list): Likewise.
40363         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
40364         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
40365         multiarch strcasecmp for PPC64.
40366         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
40367         file.
40368         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
40369         multiarch strcasecmp_l for PPC64.
40370
40371         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
40372         implementations.
40373         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40374         (__libc_ifunc_impl_list): Likewise.
40375         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
40376         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
40377         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
40378         strnlen for PPC64.
40379
40380         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
40381         implementations.
40382         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40383         (__libc_ifunc_impl_list): Likewise.
40384         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
40385         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
40386         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
40387         strlen for PPC64.
40388
40389         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
40390         implementations.
40391         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40392         (__libc_ifunc_impl_list): Likewise.
40393         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
40394         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
40395         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
40396         rawmemrchr for PPC64.
40397
40398         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
40399         implementation.
40400         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40401         (__libc_ifunc_impl_list): Likewise.
40402         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
40403         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
40404         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
40405         memrchr for PPC64.
40406
40407         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
40408         implementation.
40409         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40410         (__libc_ifunc_impl_list): Likewise.
40411         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
40412         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
40413         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
40414         memchr for PPC64.
40415
40416         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
40417         implementation.
40418         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40419         (__libc_ifunc_impl_list): Likewise.
40420         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
40421         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
40422         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
40423         mempcpy for PPC64.
40424
40425         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
40426         avoid cretion of __bzero symbol.
40427         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
40428         Likewise.
40429         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
40430         Likewise.
40431         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
40432         Likewise.
40433         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
40434         multiarch implementations.
40435         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40436         (__libc_ifunc_impl_list): Likewise.
40437         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
40438         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
40439         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
40440         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
40441         bzero for PPC32.
40442         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
40443         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
40444         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
40445         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
40446         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
40447         memset for PPC64.
40448         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
40449
40450         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
40451         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
40452         implementations.
40453         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40454         (__libc_ifunc_impl_list): Likewise.
40455         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
40456         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
40457         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
40458         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
40459         memcmp for PPC64.
40460
40461         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
40462         multiarch for POWER/PPC64.
40463         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
40464         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
40465         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
40466         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
40467         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
40468         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
40469         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
40470         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
40471         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
40472         memcpy for PPC64.
40473
40474         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
40475         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
40476         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
40477         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
40478         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
40479         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
40480         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
40481         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
40482         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
40483         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
40484         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
40485         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
40486         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
40487         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
40488         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
40489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
40490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
40491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
40492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
40493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
40494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
40495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
40496
40497 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40498
40499         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
40500
40501 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40502
40503         * benchtests/Makefile (bench): Add exp2 and log2.
40504         (LDLIBS-bench-exp2): Add -lm.
40505         (LDLIBS-bench-log2): Likewise.
40506         * benchtests/exp2-inputs: New inputs file.
40507         * benchtests/log2-inputs: New inputs file.
40508         * benchtests/log-inputs: Add new inputs.
40509         * benchtests/tan-inputs: Likewise.
40510
40511 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
40512
40513         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
40514         definition...
40515         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
40516         (csloww2): ... from here.
40517
40518         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
40519         instead of structures.
40520         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
40521         (POLYNOMIAL): Likewise.
40522         (TAYLOR_SLOW): Likewise.
40523         (__sin): Likewise.
40524         (__cos): Likewise.
40525         (slow1): Likewise.
40526         (slow2): Likewise.
40527         (sloww): Likewise.
40528         (sloww1); Likewise.
40529         (sloww2): Likewise.
40530         (bsloww1): Likewise.
40531         (bsloww2): Likewise.
40532         (cslow2): Likewise.
40533         (csloww): Likewise.
40534         (csloww1): Likewise.
40535         (csloww2): Likewise.
40536
40537 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
40538
40539         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
40540         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
40541         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
40542         * malloc/hooks.c (realloc_check): Likewise.
40543
40544         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
40545         * malloc/arena.c: Remove PER_THREAD conditional.
40546         [!PER_THREAD]: Remove code.
40547         (ptmalloc_unlock_all2): Likewise.
40548         (ptmalloc_init): Likewise.
40549         (_int_new_arena): Likewise.
40550         (arena_get2): Likewise.
40551         * malloc/hooks.c (__malloc_get_state): Likewise.
40552         (__malloc_set_state): Likewise.
40553         * malloc/malloc.c: Likewise.
40554         (struct malloc_state): Likewise.
40555         (struct malloc_par): Likewise.
40556         (__libc_realloc): Likewise.
40557         (__libc_mallopt): Likewise.
40558
40559 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40560
40561         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
40562
40563 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
40564
40565         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
40566         macro to a function.  Check for zero perturb_byte.
40567         (_int_malloc, _int_free): Remove zero perturb_byte checks.
40568
40569         * malloc/malloc.c: (force_reg): Remove.
40570         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
40571         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
40572         force_reg by atomic_forced_read.
40573         * malloc/arena.c (ptmalloc_init): Likewise.
40574         * malloc/hooks.c (top_check): Likewise.
40575
40576 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40577
40578         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40579
40580 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
40581
40582         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
40583
40584 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
40585
40586         * math/auto-libm-test-in: Add tests of lgamma.
40587         * math/auto-libm-test-out: Regenerated.
40588         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
40589         (M_LOG_2_SQRT_PIl): Likewise.
40590         (lgamma_test_data): Use AUTO_TESTS_f_f1.
40591         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40592         mpfr_f_f1.
40593         (func_calc_desc): Add mpfr_f_f1 union field.
40594         (ARGS1): New macro.
40595         (ARGS2): Likewise.
40596         (ARGS3): Likewise.
40597         (ARGS4): Likewise.
40598         (RET1): Likewise.
40599         (RET2): Likewise.
40600         (CALC): Likewise.
40601         (FUNC): Likewise.
40602         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
40603         (test_functions): Add lgamma.
40604         (calc_generic_results): Handle mpfr_f_f1.
40605         * sysdeps/i386/fpu/libm-test-ulps: Update.
40606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40607
40608 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40609
40610         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
40611         __mpn_add_n for PowerPC64/POWER7.
40612         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
40613         __mpn_sub_n for PowerPC64/POWER7.
40614
40615         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
40616         __mpn_addmul_1 for PowerPC64.
40617         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
40618         __mpn_submul_1 for PowerPC64.
40619         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
40620         for PowerPC64.
40621         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
40622         for PowerPC64.
40623
40624 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
40625
40626         [BZ #15089]
40627         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
40628
40629 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40630
40631         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
40632
40633         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
40634         add multiarch folders.
40635         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
40636         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
40637         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
40638         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
40639         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
40640         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
40641         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
40642         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
40643         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
40644         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
40645         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
40646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
40647         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
40648         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
40649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
40650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
40651         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
40652
40653         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40654         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
40655         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
40656         New file.
40657         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
40658         New file.
40659         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
40660         multiarch __ieee754_hypot for PowerPC32.
40661         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
40662         New file.
40663         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
40664         New file.
40665         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
40666         multiarch __ieee754_hypotf for PowerPC32.
40667
40668         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
40669         long_double_symbol only if __logbl is defined.
40670         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
40671         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
40672         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
40673         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
40674         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
40675         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
40676         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
40677         path for implementation.
40678         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
40679         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
40680         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
40681         logb, and logbl multiarch implementations for PowerPC32.
40682         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
40683         file.
40684         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
40685         file.
40686         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
40687         multiarch logb for PowerPC32.
40688         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
40689         file.
40690         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
40691         file.
40692         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
40693         multiarch logbf for PowerPC32.
40694         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
40695         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
40696         file.
40697         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
40698         multiarch logbl implementation for PowerPC32.
40699
40700         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
40701         and modff multiarch implementations.
40702         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
40703         New file.
40704         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
40705         New file.
40706         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
40707         multiarch modf for PowerPC32.
40708         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
40709         New file.
40710         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
40711         New file.
40712         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
40713         multiarch modff for PowerPC32.
40714
40715         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
40716         and lrintf multiarch implementations.
40717         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
40718         New file.
40719         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
40720         New file.
40721         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
40722         multiarch lrint for PowerPC32.
40723         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
40724         file: multiarch lrintf for PowerPC32.
40725
40726         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
40727         and lroundf multiarch implementations.
40728         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
40729         New file.
40730         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
40731         New file.
40732         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
40733         New file.
40734         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
40735         multiarch lround for PowerPC32.
40736         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
40737         file: multiarch lroundf for PowerPC32.
40738
40739         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40740         copysign and copysignf multiarch implementations.
40741         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
40742         New file.
40743         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
40744         New file.
40745         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
40746         file: multiarch copysign for PowerPC32.
40747         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
40748         file: multiarch copysignf for PowerPC32.
40749
40750         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
40751         and truncf multiarch implementations.
40752         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
40753         New file.
40754         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
40755         file.
40756         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
40757         multiarch trunc for PowerPC32.
40758         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
40759         New file.
40760         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
40761         New file.
40762         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
40763         multiarch truncf for PowerPC32.
40764
40765         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
40766         and roundf multiarch implementations.
40767         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
40768         New file.
40769         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
40770         file.
40771         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
40772         multiarch round for PowerPC32.
40773         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
40774         New file.
40775         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
40776         New file.
40777         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
40778         multiarch roundf for PowerPC32.
40779
40780         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
40781         and floorf multiarch implementations.
40782         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
40783         New file.
40784         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
40785         file.
40786         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
40787         multiarch floor for PowerPC32.
40788         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
40789         New file.
40790         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
40791         New file.
40792         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
40793         multiarch floorf for PowerPC32.
40794
40795         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
40796         and ceilf multiarch implementations.
40797         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
40798         New file.
40799         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
40800         file.
40801         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
40802         multiarch ceil for PowerPC32.
40803         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
40804         New file.
40805         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
40806         file.
40807         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
40808         multiarch ceilf for PowerPC32.
40809
40810         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
40811         is defined.
40812         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
40813         FINITEF is defined.
40814         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
40815         and finitef multiarch implementations.
40816         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40817         New file.
40818         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
40819         file.
40820         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
40821         multiarch finite for PowerPC32.
40822         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
40823         New file.
40824         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
40825         file: multiarch finitef for PowerPC32.
40826
40827         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
40828         and isinff multiarch implementations.
40829         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
40830         file.
40831         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
40832         file.
40833         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
40834         multiarch isinf for PowerPC32.
40835         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
40836         New file.
40837         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
40838         multiarch isinff for PowerPC32.
40839
40840         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
40841         alias when __isnan is defined.
40842         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
40843         and isnanf multiarch implementations.
40844         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
40845         file.
40846         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
40847         file.
40848         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
40849         file.
40850         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
40851         file.
40852         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
40853         multiarch isnan for PowerPC32.
40854         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
40855         New file.
40856         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
40857         New file.
40858         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
40859         multiarch isnanf for PowerPC32.
40860
40861         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
40862         and sqrtf multiarch implementations.
40863         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
40864         file.
40865         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
40866         file.
40867         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
40868         multiarch sqrt for PowerPC32.
40869         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
40870         file.
40871         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
40872         file.
40873         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
40874         multiarch sqrtf for PowerPC32.
40875
40876         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
40877         and llroundf multiarch implementations.
40878         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
40879         New file.
40880         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
40881         New file.
40882         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
40883         New file.
40884         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
40885         file: multiarch llround for PowerPC32.
40886         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
40887         file: multiarch llroundf for PowerPC32.
40888
40889         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
40890         multiarch PowerPC32 fpu implementations.
40891         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
40892         New file.
40893         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
40894         New file.
40895         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
40896         multiarch llrint for PowerPC32.
40897         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
40898         New file.
40899         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
40900         New file.
40901         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
40902         file.
40903
40904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
40905
40906         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
40907         file.
40908         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
40909         file.
40910         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
40911         file.
40912         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
40913         multiarch wordcopy for PPC32.
40914         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40915         wordcopy objects.
40916         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40917         (__libc_ifunc_impl_list): Likewise.
40918         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
40919         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
40920         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
40921         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
40922         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
40923         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
40924
40925         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
40926         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
40927         file.
40928         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
40929         file.
40930         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
40931         file.
40932         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
40933         multiarch wcscpy for PPC32.
40934         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40935         multiarch objects.
40936         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40937         (__libc_ifunc_impl_list): Likewise.
40938         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40939         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40940         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
40941         sysdeps/powerpc/power6/wcscpy.c.
40942
40943         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
40944         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
40945         file.
40946         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
40947         file.
40948         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
40949         file.
40950         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
40951         multiarch wcsrchr for PPC32.
40952         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40953         multiarch objects.
40954         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40955         (__libc_ifunc_impl_list): Likewise.
40956         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40957         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40958         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
40959         sysdeps/powerpc/power6/wcsrchr.c.
40960
40961         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
40962         file.
40963         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
40964         file.
40965         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
40966         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
40967         multiarch wcschr for PPc32.
40968         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40969         multiarch objects.
40970         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40971         (__libc_ifunc_impl_list): Likewise.
40972         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
40973         * sysdeps/powerpc/power6/wcschr.c: ... to here.
40974         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
40975         sysdeps/powerpc/power6/wcschr.c.
40976
40977         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
40978         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
40979         file.
40980         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
40981         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
40982         file: multiarch strchr for PPC32.
40983         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
40984         multiarch objects.
40985         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40986         (__libc_ifunc_impl_list): Likewise.
40987
40988         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
40989         name.
40990         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
40991         file.
40992         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
40993         file.
40994         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
40995         multiarch strchrnul for PPC32.
40996         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
40997         multiarch objects.
40998         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40999         (__libc_ifunc_impl_list): Likewise.
41000
41001         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
41002         file.
41003         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
41004         multiarch strncasecmp for PPC32.
41005         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
41006         file.
41007         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
41008         multiarch strncasecmp_l for PPC32.
41009         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
41010         strncasecmp multiarch objects.
41011         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41012         (__libc_ifunc_impl_list): Likewise.
41013
41014         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
41015         file.
41016         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
41017         multiarch strncasecmp for PPC32.
41018         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
41019         New file.
41020         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
41021         multiarch strcasecmp_l for PPC32.
41022         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
41023         multiarch objects.
41024         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41025         (__libc_ifunc_impl_list): Likewise.
41026
41027         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
41028         file.
41029         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
41030         file.
41031         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
41032         multiarch strncmp for PPC32.
41033         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
41034         multiarch objects.
41035         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41036         (__libc_ifunc_impl_list): Likewise.
41037
41038         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
41039         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
41040         file.
41041         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
41042         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
41043         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
41044         multiarch objects.
41045         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41046         (__libc_ifunc_impl_list): Likewise.
41047
41048         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
41049         file.
41050         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
41051         file.
41052         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
41053         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
41054         multiarch objects.
41055         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41056         (__libc_ifunc_impl_list): Likewise.
41057
41058         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
41059         file.
41060         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
41061         file.
41062         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
41063         multiarch rawmemchr for PPC32.
41064         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
41065         multiarch objects.
41066         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41067         (__libc_ifunc_impl_list): Likewise.
41068
41069         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
41070         file.
41071         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
41072         file.
41073         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
41074         file: memrchr multiarch for PPC32.
41075         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
41076         multiarch objects.
41077         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41078         (__libc_ifunc_impl_list): Likewise.
41079
41080         * string/memchr.c (__memchr): Using macro to redefine symbol name.
41081         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
41082         file.
41083         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
41084         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
41085         multiarch memchr for PPC32.
41086         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
41087         multiarch objects.
41088         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41089         (__libc_ifunc_impl_list): Likewise.
41090
41091         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
41092         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
41093         file.
41094         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
41095         file.
41096         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
41097         file: multiarch mempcpy for PPC32.
41098         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
41099         multiarch objects.
41100         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41101         (__libc_ifunc_impl_list): Likewise.
41102
41103         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
41104         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
41105         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
41106         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
41107         multiarch bzero for PPC32.
41108         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
41109         file.
41110         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
41111         file.
41112         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
41113         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
41114         file: multiarch memset for PPC32.
41115         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
41116         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
41117         memset multiarch objects.
41118         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41119         (__libc_ifunc_impl_list): Likewise.
41120
41121         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
41122         file.
41123         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
41124         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
41125         memcmp for PPC32.
41126         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
41127         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
41128         multiarch objects.
41129         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41130         (__libc_ifunc_impl_list): Likewise.
41131
41132         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
41133         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
41134         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
41135         file.
41136         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
41137         file.
41138         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
41139         file.
41140         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
41141         multiarch memcpy for PPC32.
41142         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
41143         multiarch objects.
41144         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41145         (__libc_ifunc_impl_list): Likewise.
41146
41147         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
41148         support multiarch for POWER/PPC32.
41149         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
41150         Likewise.
41151         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
41152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
41153         Implies file to make multiarch folder appers before the fpu and
41154         default folder for power4 configuration.
41155
41156 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
41157
41158         * scripts/bench.pl: Append volatile keyword to type.
41159
41160 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
41161
41162         * sysdeps/sh/sotruss-lib.c: New file.
41163         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
41164
41165 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41166
41167         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41168
41169 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
41170
41171         [BZ #6810]
41172         * math/w_tgamma.c: Include <errno.h>.
41173         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
41174         * math/w_tgammaf.c: Include <errno.h>.
41175         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
41176         * math/w_tgammal.c: Include <errno.h>.
41177         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
41178         * math/auto-libm-test-in: Do not allow missing errno on tgamma
41179         underflow.  Add more tgamma tests.
41180         * math/auto-libm-test-out: Regenerated.
41181         * sysdeps/i386/fpu/libm-test-ulps: Update.
41182         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41183
41184         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
41185         sin, sinh, tan, tanh, tgamma, y0 and y1.
41186         * math/auto-libm-test-out: Regenerated.
41187         * math/libm-test.inc (TEST_COND_x86_64): New macro.
41188         (TEST_COND_x86): Likewise.
41189         (M_E2l): Remove macro.
41190         (M_E3l): Likewise.
41191         (M_2_SQRT_PIl): Likewise.
41192         (M_SQRT_PIl): Likewise.
41193         (M_1_DIV_El): Likewise.
41194         (log_test_data): Use AUTO_TESTS_f_f.
41195         (log10_test_data): Likewise.
41196         (log1p_test_data): Likewise.
41197         (log2_test_data): Likewise.
41198         (sin_test_data): Likewise.
41199         (sin_tonearest_test_data): Likewise.
41200         (sin_towardzero_test_data): Likewise.
41201         (sin_downward_test_data): Likewise.
41202         (sin_upward_test_data): Likewise.
41203         (sinh_test_data): Likewise.
41204         (sinh_tonearest_test_data): Likewise.
41205         (sinh_towardzero_test_data): Likewise.
41206         (sinh_downward_test_data): Likewise.
41207         (sinh_upward_test_data): Likewise.
41208         (tan_test_data): Likewise.
41209         (tan_tonearest_test_data): Likewise.
41210         (tan_towardzero_test_data): Likewise.
41211         (tan_downward_test_data): Likewise.
41212         (tan_upward_test_data): Likewise.
41213         (tanh_test_data): Likewise.
41214         (tgamma_test_data): Likewise.
41215         (y0_test_data): Likewise.
41216         (y1_test_data): Likewise.
41217         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
41218         (special_real_inputs): Add pi/4.
41219         * sysdeps/i386/fpu/libm-test-ulps: Update.
41220         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41221
41222 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41223
41224         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
41225         "longjmp_target" static probes.
41226         (__longjmp): Rename to __longjmp_symbol.
41227         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
41228         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
41229         on which longjmp to generate.
41230         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
41231         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
41232         probe.
41233         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41234         (__sigjmp_save): Rename to __sigjmp_save_symbol.
41235         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
41236         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
41237         and __sigjmp_save_symbol based on which sigsetjmp to generated.
41238         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
41239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
41240         __longjmp_symbol based on which __longjmp to generate.
41241         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
41242         probe.
41243         (setjmp): Rename to setjmp_symbol.
41244         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41245         (_setjmp): Rename to _setjmp_symbol.
41246         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41247         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
41248         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
41249         which setjmp to generate.
41250         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
41251         "longjmp_target" static probes.
41252
41253 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
41254
41255         * benchtests/README: Add note about output arguments.
41256         * benchtests/bench-sincos.c: Remove file.
41257         * benchtests/sincos-inputs: New file.
41258         * scripts/bench.pl: Identify output arguments and define
41259         static variables for them.
41260
41261         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
41262
41263         [BZ #15941]
41264         * Makefile (INSTALL): Add install-plain.texi as the primary
41265         dependency.
41266         * manual/install-plain.texi: New file.
41267         * manual/install.texi: Include node directive only for
41268         non-plaintext output.
41269
41270 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
41271
41272         * stdlib/longlong.h: Update from GCC.
41273
41274         [BZ #6807]
41275         [BZ #15901]
41276         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
41277         * math/w_j0f.c (y0f): Likewise.
41278         * math/w_j0l.c (__y0l): Likewise.
41279         * math/w_j1.c (y1): Likewise.
41280         * math/w_j1f.c (y1f): Likewise.
41281         * math/w_j1l.c (__y1l): Likewise.
41282         * math/w_jn.c (yn): Likewise.
41283         * math/w_jnf.c (ynf): Likewise.
41284         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
41285         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
41286         value for Bessel function domain errors outside _SVID_ mode.
41287         Adjust sign of return value for yn (negative integer, 0).
41288         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
41289         by zero in return for negative x and set sign appropriately for
41290         negative n.
41291         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
41292         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
41293         * math/libm-test.inc (y0_test_data): Add more tests and adjust
41294         expectations in error cases.
41295         (y1_test_data): Likewise.
41296         (yn_test_data): Likewise.
41297         * sysdeps/i386/fpu/libm-test-ulps: Update.
41298         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41299
41300 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41301
41302         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
41303         "64" to "64-v1".  Add "64-v2".
41304         (abi-64-options): Rename to ...
41305         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
41306         (abi-64-condition): Rename to ...
41307         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
41308         (abi-64-ld-soname): Rename to ...
41309         (abi-64-v1-ld-soname): ... this.
41310         (abi-64-v2-options): Define.
41311         (abi-64-v2-condition): Likewise.
41312         (abi-64-v2-ld-soname): Likewise.
41313         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
41314         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
41315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
41316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
41317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
41318
41319 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41320             Alan Modra  <amodra@gmail.com>
41321
41322         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
41323         New versions for use with the ELFv2 ABI.
41324         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
41325         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
41326         declaration.
41327         (struct La_ppc64v2_retval): Likewise.
41328         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
41329         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
41330         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
41331         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
41332         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
41333         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
41334         Do not save or restore CR.
41335         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
41336         (_dl_profile_resolve): Do no save or restore CR.  Support extended
41337         return values for ELFv2 ABI.  Fix location of FPR return registers.
41338         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
41339         updated values for _CALL_ELF == 2.
41340         (La_regs, La_retval, int_retval): Likewise.
41341
41342 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41343
41344         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
41345         (FRAME_MIN_SIZE_PARM): Likewise.
41346         (FRAME_BACKCHAIN): Likewise.
41347         (FRAME_CR_SAVE): Likewise.
41348         (FRAME_LR_SAVE): Likewise.
41349         (FRAME_TOC_SAVE): Likewise.
41350         (FRAME_PARM_SAVE): Likewise.
41351         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
41352         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
41353         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41354         (call_mcount_parm_offset): New macro.
41355         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
41356         (PROF): Use symbolic stack frame offsets.
41357         (TAIL_CALL_SYSCALL_ERROR): Likewise.
41358         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
41359         Redefine in terms of FRAME_MIN_SIZE.
41360         (_dl_runtime_resolve): Use symbolic stack frame offsets.
41361         (_dl_profile_resolve): Likewise.  Update comment.
41362         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
41363         symbols stack frame offsets.
41364         (__sigsetjmp): Likewise.
41365         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
41366         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
41367         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
41368         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
41369
41370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
41371         (FRAME_BACKCHAIN): Remove.
41372         (FRAME_CR_SAVE): Likewise.
41373         (FRAME_LR_SAVE): Likewise.
41374         (FRAME_COMPILER_DW): Likewise.
41375         (FRAME_LINKER_DW): Likewise.
41376         (FRAME_TOC_SAVE): Likewise.
41377         (FRAME_PARM_SAVE): Likewise.
41378         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
41379         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
41380         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
41382         (CHECK_SP): Use symbolic stack frame offsets.
41383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
41384         zone" instead of caller's parameter save area for temp storage.
41385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
41386         Likewise.  Also, use symbolic stack frame offsets.
41387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
41388         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
41389         our own stack frame instead of the caller's.
41390         (__socket): Use symbolic stack frame offsets.
41391
41392 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41393             Alan Modra  <amodra@gmail.com>
41394
41395         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
41396         Define.
41397         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
41398         (PPC64_LOCAL_ENTRY_OFFSET): Define.
41399         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
41400         New function.
41401         (elf_machine_fixup_plt): Call it.
41402         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
41403         reloc arguments.
41404         (elf_machine_rela): Update call to elf_machine_plt_conflict.
41405         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41406         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
41407         r2 before calling target.
41408
41409 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41410             Alan Modra  <amodra@gmail.com>
41411
41412         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
41413         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
41414         versions of macros to support ELFv2 ABI.
41415         (LOCALENTRY): New macro.
41416         (ENTRY, EALIGN): Use it.
41417         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
41418         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
41419         fall through into ENTRY entry point.
41420         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
41421         Only define if _CALL_ELF != 2.
41422
41423         (elf_machine_matches_host): Verify ABI version matches.
41424         (RTLD_START): Use LOCALENTRY.
41425         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
41426         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
41427         (PLT_ENTRY_WORDS): New macro.
41428         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
41429         (elf_machine_runtime_setup): Support ELFv2 ABI.
41430         (elf_machine_fixup_plt): Likewise.
41431         (elf_machine_plt_conflict): Likewise.
41432         (resolve_ifunc): Likewise.
41433         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
41434         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41435         Likewise.
41436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
41437         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
41438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41439         (makecontext): Support ELFv2 ABI.
41440         * elf/elf.h (EF_PPC64_ABI): Define.
41441
41442 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41443
41444         * sysdeps/powerpc/powerpc64/sysdep.h
41445         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
41446         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
41447         (ENTRY) [ASSEMBLER]: ... but instead here ...
41448         (EALIGN) [ASSEMBLER]: ... and here.
41449         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
41450         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
41451         (ENTRY_2) [!ASSEMBLER]: Use it.
41452         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
41453         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
41454         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41455         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
41456         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
41457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
41458         Use PPC64_LOAD_FUNCPTR.
41459
41460         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
41461
41462 2013-12-04  Alan Modra  <amodra@gmail.com>
41463
41464         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
41465         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
41466         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
41467         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
41468
41469         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
41470         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
41471         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
41472         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
41473         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
41474         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
41475
41476 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41477
41478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41479         (__makecontext): Fix incorrect CFI when backtracing out of
41480         context created via makecontext.
41481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
41482         (__setcontext): Fix incorrect CFI during switch to new context.
41483         (__novec_setcontext): Likewise.
41484
41485 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41486
41487         [BZ #4772]
41488         * time/strptime_l.c (__strptime_internal): Allow modifiers
41489         in strptime.
41490         * time/tst-strptime.c (day_tests): Add testcase.
41491
41492 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
41493
41494         * scripts/bench.pl: Skip over blank lines.
41495
41496 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41497
41498         [BZ #926]
41499         * manual/time.texi (Calendar Time): Clarify what timezone functions
41500         use.
41501
41502 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41503
41504         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41505
41506 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41507
41508         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
41509         implementation.
41510         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
41511         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
41512         * debug/memset_chk.c (__memset_chk): Likewise.
41513         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
41514         * debug/strncpy_chk.c: Likewise.
41515
41516 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41517
41518         [BZ #15268]
41519         [BZ #15425]
41520         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
41521         (__ieee754_exp): For possibly underflowing results, check size of
41522         result and force underflow exception if required.
41523         * math/auto-libm-test-in: Add more tests of exp.
41524         * math/auto-libm-test-out: Regenerated.
41525         * sysdeps/i386/fpu/libm-test-ulps: Update.
41526         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41527
41528         [BZ #16283]
41529         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
41530         * math/w_exp2f.c (__exp2f): Likewise.
41531         * math/w_exp2l.c (__exp2l): Likewise.
41532         * math/auto-libm-test-in: Do not allow missing errno on exp2
41533         underflow.
41534         * math/auto-libm-test-out: Regenerated.
41535
41536 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
41537
41538         [BZ #16274]
41539         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
41540         handle filename validation.
41541         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
41542         (do_open): Delete.
41543
41544 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41545
41546         [BZ #6786]
41547         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
41548         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
41549         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
41550         <float.h>.
41551         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
41552         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
41553         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41554         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
41555         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41556         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
41557         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41558         * math/auto-libm-test-in: Don't allow missing errno from erfc.
41559         Add more erfc tests.
41560         * math/auto-libm-test-out: Regenerated.
41561         * sysdeps/i386/fpu/libm-test-ulps: Update.
41562         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41563
41564         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
41565         exp2, expm1, j0 and j1.
41566         * math/auto-libm-test-out: Regenerated.
41567         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
41568         (erfc_test_data): Likewise.
41569         (exp_test_data): Likewise.
41570         (exp_tonearest_test_data): Likewise.
41571         (exp_towardzero_test_data): Likewise.
41572         (exp_downward_test_data): Likewise.
41573         (exp_upward_test_data): Likewise.
41574         (exp10_test_data): Likewise.
41575         (exp2_test_data): Likewise.
41576         (expm1_test_data): Likewise.
41577         (j0_test_data): Likewise.
41578         (j1_test_data): Likewise.
41579         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
41580         (input_flag_type): Add flag_xfail_rounding.
41581         (input_flags): Add xfail-rounding.
41582         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
41583         (output_for_one_input_case): Handle flag_xfail_rounding.
41584         * sysdeps/i386/fpu/libm-test-ulps: Update.
41585         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41586
41587 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
41588
41589         [BZ #16289]
41590         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
41591         division by 0.
41592
41593 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
41594
41595         [BZ #16195]
41596         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
41597         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
41598         (STAP_PROBE0): New macro.
41599         (STAP_PROBE1): Likewise.
41600         (STAP_PROBE2): Likewise.
41601         (STAP_PROBE3): Likewise.
41602         (STAP_PROBE4): Likewise.
41603
41604 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
41605
41606         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
41607
41608 2013-12-02  Steve Ellcey  <sellcey@mips.com>
41609
41610         * benchtests/Makefile (bench): Add sqrt.
41611         (LDLIBS-bench-sqrt): New.
41612         * benchtests/sqrt-input: New.
41613
41614 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
41615
41616         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
41617         (GAIH_EAI): Likewise.
41618         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
41619         (gaih_inet): Likewise.
41620         (getaddrinfo): Don't use GAIH_EAI.
41621
41622         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
41623         (struct gaih): Remove definition.
41624
41625 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41626
41627         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
41628         Use HERRNOP directly.
41629
41630 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41631
41632         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41633
41634 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
41635
41636         * math/gen-auto-libm-tests.c (test_functions): Add more
41637         single-argument functions.
41638         (special_fill_pi_2): New function.
41639         (special_fill_minus_pi_2): Likewise.
41640         (special_fill_pi_6): Likewise.
41641         (special_fill_minus_pi_6): Likewise.
41642         (special_fill_pi_3): Likewise.
41643         (special_fill_2pi_3): Likewise.
41644         (special_fill_e): Likewise.
41645         (special_fill_1_e): Likewise.
41646         (special_fill_e_minus_1): Likewise.
41647         (special_real_inputs): Add more special inputs.
41648         (output_for_one_input_case): Do not require ERANGE on underflow to
41649         zero if round-to-nearest result does not underflow to zero, unless
41650         exact results required.
41651         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
41652         atan, atanh, cbrt, cos and cosh.
41653         * math/auto-libm-test-out: Regenerated.
41654         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
41655         (acos_tonearest_test_data): Likewise.
41656         (acos_towardzero_test_data): Likewise.
41657         (acos_downward_test_data): Likewise.
41658         (acos_upward_test_data): Likewise.
41659         (acosh_test_data): Likewise.
41660         (asin_test_data): Likewise.
41661         (asin_tonearest_test_data): Likewise.
41662         (asin_towardzero_test_data): Likewise.
41663         (asin_upward_test_data): Likewise.
41664         (asinh_test_data): Likewise.
41665         (atan_test_data): Likewise.
41666         (atanh_test_data): Likewise.
41667         (cbrt_test_data): Likewise.
41668         (cos_test_data): Likewise.
41669         (cos_tonearest_test_data): Likewise.
41670         (cos_towardzero_test_data): Likewise.
41671         (cos_downward_test_data): Likewise.
41672         (cos_upward_test_data): Likewise.
41673         (cosh_test_data): Likewise.
41674         (cosh_tonearest_test_data): Likewise.
41675         (cosh_towardzero_test_data): Likewise.
41676         (cosh_downward_test_data): Likewise.
41677         (cosh_upward_test_data): Likewise.
41678         * sysdeps/i386/fpu/libm-test-ulps: Update.
41679         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41680
41681 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
41682
41683         [BZ #6787]
41684         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
41685         * math/w_exp10f.c (__exp10f): Likewise.
41686         * math/w_exp10l.c (__exp10l): Likewise.
41687         * math/libm-test.inc (exp10_test_data): Add more tests and expect
41688         errno settings in existing tests.
41689
41690         [BZ #14032]
41691         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
41692         precision control set to double precision.
41693         * sysdeps/i386/fpu/w_sqrt.c: New file.
41694         * math/auto-libm-test-in: Add more tests.
41695         * math/auto-libm-test-out: Update.
41696
41697         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
41698         (sqrt_test_tonearest): New function.
41699         (sqrt_towardzero_test_data): New variable.
41700         (sqrt_test_towardzero): New function.
41701         (sqrt_downward_test_data): New variable.
41702         (sqrt_test_downward): New function.
41703         (sqrt_upward_test_data): New variable.
41704         (sqrt_test_upward): New function.
41705         (main): Call the new functions.
41706
41707         * math/gen-auto-libm-tests.c: New file.
41708         * math/auto-libm-test-in: Likewise.
41709         * math/auto-libm-test-out: New generated file.
41710         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
41711         variables.
41712         (%beautify): Add generated representations of zero.
41713         (top level): Set $auto_input and call parse_auto_input.
41714         (beautify): Remove trailing "f" from hex float constants.
41715         (parse_args): Handle XFAIL_TEST.
41716         (convert_condition): New function.
41717         (or_value): Likewise.
41718         (or_cond_value): Likewise.
41719         (generate_testfile): Handle AUTO_TESTS_* lines.
41720         (parse_auto_input): New function.
41721         * math/libm-test.inc (XFAIL_TEST): New macro.
41722         (ERRNO_UNCHANGED): Update value.
41723         (ERRNO_EDOM): Likewise.
41724         (ERRNO_ERANGE): Likewise.
41725         (IGNORE_RESULT): Likewise.
41726         (TEST_COND_flt_32): New macro.
41727         (TEST_COND_dbl_64): Likewise.
41728         (TEST_COND_ldbl_96_intel): Likewise.
41729         (TEST_COND_ldbl_96_m68k): Likewise.
41730         (TEST_COND_ldbl_128): Likewise.
41731         (TEST_COND_ldbl_128ibm): Likewise.
41732         (TEST_COND_long32): Likewise.
41733         (TEST_COND_long64): Likewise.
41734         (TEST_COND_before_rounding): Likewise.
41735         (TEST_COND_after_rounding): Likewise.
41736         (enable_test): Handle XFAIL_TEST flag.
41737         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
41738         with finite results.
41739         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
41740         auto-libm-test-out.
41741
41742 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
41743             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41744
41745         [BZ #16214]
41746         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
41747         __tls_get_addr_internal instead of __tls_get_offset in order to
41748         avoid GOT pointer dependency.  Make rtld export
41749         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
41750         __tls_get_addr since we are a __tls_get_offset platform.
41751         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
41752         GOT pointer being set up before.
41753         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
41754
41755 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
41756
41757         * manual/math.texi (Errors in Math Functions): Document accuracy
41758         goals.
41759
41760         [BZ #15004]
41761         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
41762         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
41763         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41764         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
41765         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
41766         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
41767         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
41768         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
41769         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
41770         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
41771         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
41772         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
41773         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
41774         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
41775         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
41776         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
41777
41778         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
41779         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
41780         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
41781         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
41782         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
41783         Likewise.
41784         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
41785         Likewise.
41786         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
41787         Likewise.
41788         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
41789         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
41790         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
41791         atomic-feupdateenv and flt-rounds.
41792         * sysdeps/powerpc/nofpu/Versions (libc): Add
41793         __atomic_feholdexcept, __atomic_feclearexcept,
41794         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
41795         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
41796         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
41797         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
41798         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
41799         here.
41800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
41801         Update.
41802
41803         * manual/arith.texi (FP Exceptions): Document that exceptions may
41804         not be raised when matherr is used.
41805         (Math Error Reporting): Document overflow in directed rounding
41806         modes.  Document that errno may not be set when finite values are
41807         returned on overflow.  Document intent to set errno on underflow
41808         only for underflow to zero.
41809
41810         [BZ #16271]
41811         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
41812         round-to-nearest then adjust result for other rounding modes.
41813         * include/fenv.h (fegetround): Use libm_hidden_proto.
41814         * math/fegetround.c (fegetround): Use libm_hidden_def.
41815         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
41816         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
41817         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41818         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
41819         Likewise.
41820         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
41821         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
41822         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
41823         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
41824
41825 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41826
41827         [BZ #16077]
41828         * nss/Versions (libnss_files): Add
41829         _nss_files_gethostbyname3_r.
41830         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
41831         New function.
41832         (HOST_DB_LOOKUP): Remove macro.
41833         (_nss_files_gethostbyname_r): Implement function without the
41834         HOST_DB_LOOKUP macro.
41835         (_nss_files_gethostbyname2_r): Likewise.
41836
41837 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
41838
41839         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
41840
41841 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
41842
41843         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
41844         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
41845         warning.
41846
41847 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41848
41849         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
41850         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
41851         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41852         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
41853         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
41854         __fe_nomask_env_priv and attribute_hidden.
41855         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
41856         (libc_feupdateenv_test_ppc): Likewise.
41857         (libc_feresetround_ppc): Likewise.
41858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41859         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
41860         compat_symbol macro.
41861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41862         (__fe_nomask_env): Likewise.
41863         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
41864
41865 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41866
41867         * string/Makefile: Remove ifunc tests.
41868         * string/test-string.h: Define TEST_IFUNC.
41869         * string/test-bcopy-ifunc.c: Remove.
41870         * string/test-bzero-ifunc.c: Likewise.
41871         * string/test-memccpy-ifunc.c: Likewise.
41872         * string/test-memchr-ifunc.c: Likewise.
41873         * string/test-memcmp-ifunc.c: Likewise.
41874         * string/test-memcpy-ifunc.c: Likewise.
41875         * string/test-memmem-ifunc.c: Likewise.
41876         * string/test-memmove-ifunc.c: Likewise.
41877         * string/test-mempcpy-ifunc.c: Likewise.
41878         * string/test-memrchr-ifunc.c: Likewise.
41879         * string/test-memset-ifunc.c: Likewise.
41880         * string/test-rawmemchr-ifunc.c: Likewise.
41881         * string/test-stpcpy-ifunc.c: Likewise.
41882         * string/test-stpncpy-ifunc.c: Likewise.
41883         * string/test-strcasecmp-ifunc.c: Likewise.
41884         * string/test-strcasestr-ifunc.c: Likewise.
41885         * string/test-strcat-ifunc.c: Likewise.
41886         * string/test-strchr-ifunc.c: Likewise.
41887         * string/test-strchrnul-ifunc.c: Likewise.
41888         * string/test-strcmp-ifunc.c: Likewise.
41889         * string/test-strcpy-ifunc.c: Likewise.
41890         * string/test-strcspn-ifunc.c: Likewise.
41891         * string/test-strlen-ifunc.c: Likewise.
41892         * string/test-strncasecmp-ifunc.c: Likewise.
41893         * string/test-strncat-ifunc.c: Likewise.
41894         * string/test-strncmp-ifunc.c: Likewise.
41895         * string/test-strncpy-ifunc.c: Likewise.
41896         * string/test-strnlen-ifunc.c: Likewise.
41897         * string/test-strpbrk-ifunc.c: Likewise.
41898         * string/test-strrchr-ifunc.c: Likewise.
41899         * string/test-strspn-ifunc.c: Likewise.
41900         * string/test-strstr-ifunc.c: Likewise.
41901
41902 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41903
41904         * benchtests/Makefile: Remove ifunc tests.
41905         * benchtests/bench-string.h: Define TEST_IFUNC.
41906         * benchtests/bench-bcopy-ifunc.c: Remove.
41907         * benchtests/bench-bzero-ifunc.c: Likewise.
41908         * benchtests/bench-memccpy-ifunc.c: Likewise.
41909         * benchtests/bench-memchr-ifunc.c: Likewise.
41910         * benchtests/bench-memcmp-ifunc.c: Likewise.
41911         * benchtests/bench-memcpy-ifunc.c: Likewise.
41912         * benchtests/bench-memmem-ifunc.c: Likewise.
41913         * benchtests/bench-memmove-ifunc.c: Likewise.
41914         * benchtests/bench-mempcpy-ifunc.c: Likewise.
41915         * benchtests/bench-memrchr-ifunc.c: Likewise.
41916         * benchtests/bench-memset-ifunc.c: Likewise.
41917         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
41918         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
41919         * benchtests/bench-stpcpy-ifunc.c: Likewise.
41920         * benchtests/bench-stpncpy-ifunc.c: Likewise.
41921         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
41922         * benchtests/bench-strcasestr-ifunc.c: Likewise.
41923         * benchtests/bench-strcat-ifunc.c: Likewise.
41924         * benchtests/bench-strchr-ifunc.c: Likewise.
41925         * benchtests/bench-strchrnul-ifunc.c: Likewise.
41926         * benchtests/bench-strcmp-ifunc.c: Likewise.
41927         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
41928         * benchtests/bench-strcpy-ifunc.c: Likewise.
41929         * benchtests/bench-strcspn-ifunc.c: Likewise.
41930         * benchtests/bench-strlen-ifunc.c: Likewise.
41931         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
41932         * benchtests/bench-strncat-ifunc.c: Likewise.
41933         * benchtests/bench-strncmp-ifunc.c: Likewise.
41934         * benchtests/bench-strncpy-ifunc.c: Likewise.
41935         * benchtests/bench-strnlen-ifunc.c: Likewise.
41936         * benchtests/bench-strpbrk-ifunc.c: Likewise.
41937         * benchtests/bench-strrchr-ifunc.c: Likewise.
41938         * benchtests/bench-strsep-ifunc.c: Likewise.
41939         * benchtests/bench-strspn-ifunc.c: Likewise.
41940         * benchtests/bench-strstr-ifunc.c: Likewise.
41941
41942 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41943
41944         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
41945
41946 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41947
41948         * resolv/netdb.h: Use __glibc_reserved instead __unused.
41949         * rt/aio.h: Likewise.
41950         * sysdeps/gnu/bits/utmp.h: Likewise.
41951         * sysdeps/gnu/bits/utmpx.h: Likewise.
41952         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
41953         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
41954         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
41955         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
41956         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
41957         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
41958         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
41959         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
41960         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
41961         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
41962         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
41963         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
41964         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
41965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
41966         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
41967         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
41968         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
41969         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
41970         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
41971         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
41972         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
41973         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
41974         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
41975         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
41976         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
41977         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
41978         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
41979         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
41980         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
41981         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
41982         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
41983         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
41984         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
41985         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
41986         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
41987         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
41988         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
41989         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
41990         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
41991         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
41992         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
41993         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
41994
41995 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
41996
41997         [BZ #16245]
41998         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
41999         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
42000
42001 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
42002
42003         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
42004         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
42005         Likewise.
42006
42007 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42008
42009         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
42010         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
42011         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
42012         (__fesetround): Remove define.
42013         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
42014         rounding and exceptions handling.
42015         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
42016         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
42017         (__fe_nomask_env): Likewise.
42018         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
42019         __fegetround instead of fegetround.
42020         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
42021         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
42022
42023 2013-11-21  Roland McGrath  <roland@hack.frob.com>
42024
42025         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
42026         it's there.
42027
42028         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
42029
42030 2013-11-21  Meador Inge  <meadori@codesourcery.com>
42031
42032         [BZ #11157]
42033         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
42034         (encrypt_r): Likewise.
42035         * malloc/obstack.h (obstack_free): Likewise.
42036         * posix/unistd.h (encrypt): Likewise.
42037
42038 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
42039
42040         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
42041         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
42042         DL_CALL_DT_FINI() that call the functions directly.
42043         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
42044         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
42045         * elf/dl-fini.c: Likewise.
42046
42047 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
42048
42049         * malloc/hooks.c (memalign_check): Add alignment rounding.
42050         * malloc/malloc.c (_mid_memalign): New function.
42051         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
42052         Implement by calling _mid_memalign.
42053         * manual/probes.texi (Memory Allocation Probes): Remove
42054         memory_valloc_retry and memory_pvalloc_retry.
42055
42056 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
42057
42058         * locale/programs/locarchive.c (open_archive): Add const
42059         qualifier to ARCHIVEFNAME and copy default fname to
42060         DEFAULT_FNAME.
42061
42062         [BZ #15601]
42063         * libio/tst-widetext.input: Rename Oriya to Odia.
42064         * locale/iso-639.def: Likewise.
42065
42066         * manual/probes.texi (Mathematical Function Probes): Add
42067         documentation for sin, cos, asin and acos probes.
42068         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
42069         (__sin32): Add slowasin probe.
42070         (__cos32): Add slowacos probe.
42071         (__mpsin): Add slowsin probe.
42072         (__mpcos): Add slowcos probe.
42073
42074 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
42075
42076         [BZ #15483]
42077         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
42078         thread-local __sim_exceptions_thread and global
42079         __sim_exceptions_global.
42080         (__sim_disabled_exceptions): Change to thread-local
42081         __sim_disabled_exceptions_thread and global
42082         __sim_disabled_exceptions_global.
42083         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
42084         and global __sim_round_mode_global.
42085         (__simulate_exceptions): Use thread-local floating-point state and
42086         set global state from it as needed.
42087         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
42088         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
42089         __sim_round_mode_thread.
42090         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
42091         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
42092         and global __sim_exceptions_global.
42093         (__sim_disabled_exceptions): Change to thread-local
42094         __sim_disabled_exceptions_thread and global
42095         __sim_disabled_exceptions_global.
42096         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
42097         and global __sim_round_mode_global.
42098         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
42099         (SIM_SET_GLOBAL): Likewise.
42100         * sysdeps/powerpc/soft-fp/sfp-machine.h
42101         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
42102         __sim_round_mode_thread.
42103         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
42104         __sim_disabled_exceptions_thread.
42105         (__sim_exceptions): Change to __sim_exceptions_thread.
42106         (__sim_disabled_exceptions): Change to
42107         __sim_disabled_exceptions_thread.
42108         (__sim_round_mode): Change to __sim_round_mode_thread.
42109         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
42110         thread-local floating-point state and set global state from it as
42111         needed.
42112         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
42113         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
42114         (__sim_disabled_exceptions): Remove extern declaration.
42115         (feenableexcept): Use thread-local floating-point state and set
42116         global state from it as needed.
42117         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
42118         extern declaration.
42119         (__sim_disabled_exceptions): Likewise.
42120         (__sim_round_mode): Likewise.
42121         (__fegetenv): Use thread-local floating-point state.
42122         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
42123         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
42124         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
42125         floating-point state and set global state from it as needed.
42126         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
42127         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
42128         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
42129         Likewise.
42130         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
42131         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
42132         Likewise.
42133         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
42134         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
42135         Use __sim_round_mode_thread.
42136         * math/test-fenv-tls.c: New file.
42137         * math/Makefile (tests): Add test-fenv-tls.
42138         ($(objpfx)test-fenv-tls): Depend on
42139         $(common-objpfx)nptl/libpthread.so.
42140
42141 2013-11-19  Andreas Schwab  <schwab@suse.de>
42142
42143         * locale/programs/locale.c (show_info): Decode wordarray elements.
42144         * locale/categories.def (LC_MONETARY): Add element for
42145         _NL_MONETARY_CRNCYSTR.
42146         * locale/C-monetary.c (conversion_rate): New variable.
42147         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
42148         element.
42149
42150 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
42151
42152         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
42153         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
42154
42155 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
42156
42157         * elf/Makefile (tst-auxv): New test.
42158         * elf/tst-auxv.c: New
42159         * elf/rtld.c (dl_main): Adjust AT_EXECFN
42160
42161 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
42162
42163         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
42164         (hidden_proto): Caller changed.
42165         (hidden_tls_proto): New macro.
42166         (libc_hidden_tls_proto): Likewise.
42167         (rtld_hidden_tls_proto): Likewise.
42168         (libm_hidden_tls_proto): Likewise.
42169         (libresolv_hidden_tls_proto): Likewise.
42170         (librt_hidden_tls_proto): Likewise.
42171         (libdl_hidden_tls_proto): Likewise.
42172         (libnss_files_hidden_tls_proto): Likewise.
42173         (libnsl_hidden_tls_proto): Likewise.
42174         (libnss_nisplus_hidden_tls_proto): Likewise.
42175         (libutil_hidden_tls_proto): Likewise.
42176
42177 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
42178
42179         [BZ #10253]
42180         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
42181         (decompose_rpath): Defer expansion to fillin_rpath.
42182         (_dl_init_paths): Pass linkmap to fillin_rpath.
42183
42184 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
42185
42186         * benchtests/Makefile: Add strsep.
42187         * benchtests/bench-strsep.c: New file: strsep benchtest.
42188         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
42189
42190 2013-11-18  Andreas Schwab  <schwab@suse.de>
42191
42192         * locale/programs/locale.c (show_info) [case byte]: Check for
42193         '\377' instead of '\177'.
42194         * locale/C-monetary.c (not_available): Always use "\377".
42195         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
42196         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
42197         detect unavailable sign_posn locale elements.
42198         * locale/localeconv.c (__localeconv): For grouping and
42199         mon_grouping handle "\177" and "\377" like no grouping.
42200         (INT_ELEM): New macro.  Use it to set all numeric members.
42201         * locale/programs/ld-monetary.c (monetary_read)
42202         <tok_mon_grouping>: Normalize single -1 to the empty string.
42203         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
42204         Likewise.
42205
42206 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42207
42208         [BZ #16055]
42209         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
42210         when we match (nil).
42211         * stdio-common/tst-sscanf.c (struct test): Add testcase.
42212
42213 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
42214
42215         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
42216         (NO_TEST_INLINE): Update value.
42217         (ERRNO_UNCHANGED): Likewise.
42218         (ERRNO_EDOM): Likewise.
42219         (ERRNO_ERANGE): Likewise.
42220         (IGNORE_RESULT): Likewise.
42221         (check_float_internal): Check signs of NaN results if
42222         TEST_NAN_SIGN used.
42223         (check_complex): Pass TEST_NAN_SIGN flag through to second
42224         check_float_internal call.
42225         (copysign_test_data): Add tests with quiet NaNs as second
42226         argument.  Use TEST_NAN_SIGN.
42227         (fabs_test_data): Add test of negative quiet NaN argument.  Use
42228         TEST_NAN_SIGN.
42229         (signbit_test_data): Add tests of quiet NaN argument.
42230         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
42231
42232         * math/gen-libm-test.pl (show_exceptions): Take extra argument
42233         $ignore_result.
42234         (parse_args): Handle function results specified as IGNORE.
42235         * math/libm-test.inc (IGNORE_RESULT): New macro.
42236         (check_float_internal): Do not check numerical result if flag
42237         IGNORE_RESULT set.
42238         (check_complex): Pass through IGNORE_RESULT to second
42239         check_float_internal call.
42240         (check_int): Do not check numerical result if flag IGNORE_RESULT
42241         set.
42242         (check_long): Likewise.
42243         (check_bool): Likewise.
42244         (check_longlong): Likewise.
42245         (lrint_test_data): Add tests of infinite and NaN arguments.
42246         (lrint_tonearest_test_data): Likewise.
42247         (lrint_towardzero_test_data): Likewise.
42248         (lrint_downward_test_data): Likewise.
42249         (lrint_upward_test_data): Likewise.
42250         (llrint_test_data): Likewise.
42251         (llrint_tonearest_test_data): Likewise.
42252         (llrint_towardzero_test_data): Likewise.
42253         (llrint_downward_test_data): Likewise.
42254         (llrint_upward_test_data): Likewise.
42255         (lround_test_data): Likewise.
42256         (llround_test_data): Likewise.
42257
42258         * math/libm-test.inc (NO_TEST_INLINE): New macro.
42259         (ERRNO_UNCHANGED): Update value.
42260         (ERRNO_EDOM): Likewise.
42261         (ERRNO_ERANGE): Likewise.
42262         (NO_TEST_INLINE_FLOAT): New macro.
42263         (NO_TEST_INLINE_DOUBLE): Likewise.
42264         (enable_test): New function.
42265         (RUN_TEST_f_f): Check enable_test before running test.
42266         (RUN_TEST_2_f): Likewise.
42267         (RUN_TEST_fff_f): Likewise.
42268         (RUN_TEST_c_f): Likewise.
42269         (RUN_TEST_f_f1): Likewise.
42270         (RUN_TEST_fF_f1): Likewise.
42271         (RUN_TEST_fI_f1): Likewise.
42272         (RUN_TEST_ffI_f1): Likewise.
42273         (RUN_TEST_c_c): Likewise.
42274         (RUN_TEST_cc_c): Likewise.
42275         (RUN_TEST_f_i): Likewise.
42276         (RUN_TEST_f_i_tg): Likewise.
42277         (RUN_TEST_ff_i_tg): Likewise.
42278         (RUN_TEST_f_b): Likewise.
42279         (RUN_TEST_f_b_tg): Likewise.
42280         (RUN_TEST_f_l): Likewise.
42281         (RUN_TEST_f_L): Likewise.
42282         (RUN_TEST_fFF_11): Likewise.
42283         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
42284         conditionals.
42285         (cosh_test_data): Likewise.
42286         (exp_test_data): Likewise.
42287         (expm1_test_data): Likewise.
42288         (hypot_test_data): Likewise.
42289         (pow_test_data): Likewise.
42290         (sinh_test_data): Likewise.
42291         (tanh_test_data): Likewise.
42292         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
42293         flags argument.
42294
42295         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
42296         tests with quiet NaN input and output.
42297         (acosh_test_data): Likewise.
42298         (asin_test_data): Likewise.
42299         (asinh_test_data): Likewise.
42300         (atan_test_data): Likewise.
42301         (atanh_test_data): Likewise.
42302         (atan2_test_data): Likewise.
42303         (cbrt_test_data): Likewise.
42304         (cos_test_data): Likewise.
42305         (cosh_test_data): Likewise.
42306         (erf_test_data): Likewise.
42307         (erfc_test_data): Likewise.
42308         (exp_test_data): Likewise.
42309         (exp10_test_data): Likewise.
42310         (exp2_test_data): Likewise.
42311         (expm1_test_data): Likewise.
42312         (hypot_test_data): Likewise.
42313         (j0_test_data): Likewise.
42314         (j1_test_data): Likewise.
42315         (jn_test_data): Likewise.
42316         (lgamma_test_data): Likewise.
42317         (log_test_data): Likewise.
42318         (log10_test_data): Likewise.
42319         (log1p_test_data): Likewise.
42320         (log2_test_data): Likewise.
42321         (pow_test_data): Likewise.
42322         (scalb_test_data): Likewise.
42323         (sin_test_data): Likewise.
42324         (sincos_test_data): Likewise.
42325         (sinh_test_data): Likewise.
42326         (tan_test_data): Likewise.
42327         (tanh_test_data): Likewise.
42328         (tgamma_test_data): Likewise.
42329         (y0_test_data): Likewise.
42330         (y1_test_data): Likewise.
42331         (yn_test_data): Likewise.
42332
42333         [BZ #16167]
42334         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
42335         argument being NaN and avoid computations with second argument in
42336         that case.
42337         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
42338         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
42339         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
42340
42341 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
42342
42343         * locale/iso-639.def: Add Chitwani Tharu (the).
42344
42345 2013-11-14  Andreas Schwab  <schwab@suse.de>
42346
42347         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
42348         word instead of empty string.
42349
42350 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42351
42352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42353         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
42354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42355         (__fe_nomask_env): Likewise.
42356
42357 2013-11-13  Steve Ellcey  <sellcey@mips.com>
42358
42359         * benchtests/bench-timing.h: Include time.h.
42360
42361 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
42362
42363         [BZ #15997]
42364         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
42365         to 3.4.0 for x32.
42366         * sysdeps/unix/sysv/linux/configure: Regenerated.
42367
42368 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
42369
42370         [BZ #16151]
42371         * stdlib/strtod_l.c (round_and_return): Do not consider
42372         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
42373         exponent one less than half the least subnormal exponent.
42374         * stdlib/test-strtod-round-data: Add more tests.
42375         * stdlib/tst-strtod-round.c (tests): Regenerated.
42376
42377 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42378
42379         [BZ #14143]
42380         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
42381         (__fe_mask_env): Likewise.
42382         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
42383         libm_hidden_proto and add function prototype.
42384         (__fe_mask_env): Add function prototype.
42385         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42386         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
42387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
42388         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
42389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42390         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
42391
42392 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42393
42394         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
42395         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
42396
42397 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42398
42399         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
42400         of htab_find_slot().
42401
42402 2013-11-11  David S. Miller  <davem@davemloft.net>
42403
42404         [BZ #16150]
42405         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
42406         symbol in the non-vis3 case in static builds.
42407         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
42408         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
42409         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
42410         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
42411
42412 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
42413
42414         [BZ #387]
42415         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
42416         it is empty.
42417
42418 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42419
42420         * benchtests/Makefile: Add bench-strtod.
42421         * benchtests/bench-strtod.c: New file: strtod benchtest
42422
42423 2013-11-11  Andreas Schwab  <schwab@suse.de>
42424
42425         [BZ #16153]
42426         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
42427         terminating NUL in key length.
42428
42429 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42430
42431         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
42432         Add artificial ODP entry for vDSO symbol for PPC64.
42433         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
42434         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
42435
42436 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42437
42438         [BZ #15374]
42439         * nss/getent.c (services_keys): Recognize services starting with digit.
42440
42441 2013-11-06  David S. Miller  <davem@davemloft.net>
42442
42443         [BZ #15985]
42444         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
42445         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
42446
42447 2013-11-06  Will Newton  <will.newton@linaro.org>
42448
42449         * manual/memory.texi (Malloc Examples): Remove register
42450         keyword from examples.
42451
42452 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
42453
42454         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
42455
42456 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
42457
42458         [BZ #6981]
42459         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
42460         depending on [__GCC_IEC_559 > 0].
42461         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
42462         depending on [__GCC_IEC_559_COMPLEX > 0].
42463
42464 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
42465
42466         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
42467         to iso-639.def.
42468
42469 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
42470
42471         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
42472
42473 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
42474
42475         [BZ #16112]
42476         * malloc/malloc (malloc_info): Do not handle first bin as
42477         special case.
42478
42479 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
42480
42481         * locale/iso-639.def: Add Central Nahuatl (nhn).
42482
42483 2013-11-01  Bruno Haible  <bruno@clisp.org>
42484
42485         [BZ #7003]
42486         * manual/math.texi (BSD Random): Specify range upper bound as
42487         in POSIX.
42488
42489 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
42490
42491         * locale/iso-639.def: Add Meadow Mari (mhr).
42492
42493 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
42494
42495         [BZ #14752], [BZ #15763]
42496         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
42497         Validate name.
42498         * rt/tst_shm.c: Add test for escaping directory.
42499
42500 2013-10-31  Andreas Schwab  <schwab@suse.de>
42501
42502         [BZ #15917]
42503         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
42504         followed by 'x' as part of digit sequence.
42505         * stdio-common/tst-sscanf.c (double_tests2): New tests.
42506
42507 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
42508
42509         [BZ #16037]
42510         * configure.ac: allow GNU Make 4.0 and greater.
42511         * configure: Regenerated.
42512
42513 2013-10-30  Will Newton  <will.newton@linaro.org>
42514
42515         [BZ #16038]
42516         * malloc/hooks.c (memalign_check): Limit alignment to the
42517         maximum representable power of two.
42518         * malloc/malloc.c (__libc_memalign): Likewise.
42519         * malloc/tst-memalign.c (do_test): Add test for very
42520         large alignment values.
42521         * malloc/tst-posix_memalign.c (do_test): Likewise.
42522
42523 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42524
42525         [BZ #11087]
42526         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
42527         (munmap_chunk): Likewise.
42528         (mremap_chunk): Likewise.
42529
42530 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42531
42532         [BZ #15799]
42533         * stdlib/div.c (div): Remove obsolete code.
42534         * stdlib/ldiv.c (ldiv): Likewise.
42535         * stdlib/lldiv.c (lldiv): Likewise.
42536
42537 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
42538
42539         [BZ #16071]
42540         * nss/nss_files/files-XXX.c (get_contents_ret): New
42541         enumerator.
42542         (get_contents): New function.
42543         (internal_getent): Use it.  Expand size of LINEBUFLEN.
42544
42545 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
42546
42547         * configure.in: Moved to ...
42548         * configure.ac: ... here. Change reference to configure.in
42549         to configure.ac.
42550         * sysdeps/arm/preconfigure.ac: ... here.
42551         configure.in to configure.ac.
42552         * sysdeps/gnu/configure.in: Moved to ...
42553         * sysdeps/gnu/configure.ac: ... here.
42554         * sysdeps/i386/configure.in: Moved to ...
42555         * sysdeps/i386/configure.ac: ... here.
42556         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
42557         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
42558         * sysdeps/mach/configure.in: Moved to ...
42559         * sysdeps/mach/configure.ac: ... here.
42560         * sysdeps/mach/hurd/configure.in: Moved to ...
42561         * sysdeps/mach/hurd/configure.ac: ... here.
42562         * sysdeps/powerpc/configure.in: Moved to ...
42563         * sysdeps/powerpc/configure.ac: ... here.
42564         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
42565         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
42566         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
42567         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
42568         * sysdeps/s390/s390-32/configure.in: Moved to ...
42569         * sysdeps/s390/s390-32/configure.ac: ... here.
42570         * sysdeps/s390/s390-64/configure.in: Moved to ...
42571         * sysdeps/s390/s390-64/configure.ac: ... here.
42572         * sysdeps/sh/configure.in: Moved to ...
42573         * sysdeps/sh/configure.ac: ... here.
42574         * sysdeps/sparc/configure.in: Moved to ...
42575         * sysdeps/sparc/configure.ac: ... here.
42576         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
42577         * sysdeps/unix/sysv/linux/configure.ac: ... here.
42578         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
42579         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
42580         * sysdeps/x86_64/configure.in: Moved to ...
42581         * sysdeps/x86_64/configure.ac: ... here.
42582         * sysdeps/x86_64/preconfigure.in: Moved to ...
42583         * sysdeps/x86_64/preconfigure.ac: ... here.
42584         * aclocal.m4: Change reference to configure.in to configure.ac.
42585         * config.h.in: Likewise.
42586         * manual/install.texi: Likewise.
42587         * manual/maint.texi: Likewise.
42588         * Makefile: Likewise.
42589         * malloc/Makefile: Likewise.
42590         * nscd/Makefile: Likewise.
42591         * Makeconfig: Change reference to configure.in and
42592         preconfigure.in to configure.ac and preconfigure.ac
42593         respectively.
42594         * INSTALL: Regenerated.
42595         * configure: Likewise.
42596         * sysdeps/gnu/configure: Likewise.
42597         * sysdeps/i386/configure: Likewise.
42598         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
42599         * sysdeps/mach/configure: Likewise.
42600         * sysdeps/mach/hurd/configure: Likewise.
42601         * sysdeps/powerpc/configure: Likewise.
42602         * sysdeps/powerpc/powerpc32/configure: Likewise.
42603         * sysdeps/powerpc/powerpc64/configure: Likewise.
42604         * sysdeps/s390/s390-32/configure: Likewise.
42605         * sysdeps/s390/s390-64/configure: Likewise.
42606         * sysdeps/sh/configure: Likewise.
42607         * sysdeps/sparc/configure: Likewise.
42608         * sysdeps/unix/sysv/linux/configure: Likewise.
42609         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
42610         * sysdeps/x86_64/configure: Likewise.
42611         * sysdeps/x86_64/preconfigure: Likewise.
42612
42613 2013-10-29  Andreas Schwab  <schwab@suse.de>
42614
42615         * stdio-common/Makefile (tst-swscanf-ENV): Define.
42616
42617 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42618
42619         * benchtests/pow-inputs: Add new inputs.
42620
42621         * benchtests/exp-inputs: Add new inputs.
42622
42623         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
42624         conditional check for return value.
42625         (__cos32): Likewise.
42626
42627 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42628
42629         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
42630         to provide a boost for large inputs with word alignment.
42631         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
42632         implementation based on optimized PPC64 strcpy.
42633         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
42634         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
42635         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
42636         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
42637
42638 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42639
42640         [BZ #2801]
42641         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
42642
42643 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42644
42645         [BZ #14876]
42646         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
42647         * time/tst-strptime.c (day_tests): Add testcase.
42648
42649 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42650
42651         [BZ #14029]
42652         * manual/pattern.texi: Acknowledge that fnmatch can fail.
42653
42654 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
42655
42656         [BZ #16074]
42657         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
42658         MAP_FAILED on error.
42659
42660 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
42661
42662         [BZ #16072]
42663         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
42664         heap for large requests.
42665
42666 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
42667
42668         [BZ #9954]
42669         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
42670         result if the result has no associated interface.
42671         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
42672         interface for all 127.X.Y.Z addresses.
42673
42674 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
42675
42676         * locale/iso-639.def: Add Ligurian (lij)
42677
42678 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
42679
42680         [BZ #15825]
42681         * sunrpc/rpc_main.c: Document rpcgen -5.
42682
42683 2013-10-19  Michael Stahl  <mstahl@redhat.com>
42684
42685         * elf/rtld.c (do_preload): Print the reason why preloading failed.
42686
42687 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42688
42689         [BZ #10278]
42690         * posix/glob.c: Match only directories when trailing slash is present.
42691         * posix/tst-gnuglob.c (my_opendir): Do not open files.
42692         (main): Add testcase.
42693
42694 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42695
42696         [BZ #15670]
42697         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
42698
42699 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
42700
42701         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
42702         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
42703         AUTH_DES and cindex for FIPS 140-2.
42704         (DES Encryption): Add cindex FIPS 46-3.
42705
42706         * locale/locarchive.h (struct locarhandle): Add fname.
42707         * locale/programs/localedef.c (main): Pass ARGV[remaining]
42708         if an optional argument was specified to --list-archive,
42709         otherwise NULL.
42710         * locale/programs/locarchive.c (show_archive_content): Take new
42711         argument fname and pass it via ah.fname to open_archive.
42712         * locale/programs/localedef.h: Update decl.
42713         (open_archive): If AH->fname is non-null, open that file
42714         rather than the default file name, and don't ignore ENOENT.
42715         (create_archive): Set AH.fname to NULL.
42716         (delete_locales_from_archive): Likewise.
42717         (add_locales_to_archive): Likewise.
42718         * locale/programs/locfile.c (write_all_categories): Likewise.
42719
42720 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
42721             Aldy Hernandez  <aldyh@redhat.com>
42722
42723         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
42724         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
42725         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
42726         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
42727         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
42728         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
42729         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
42730         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
42731         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
42732         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
42733         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
42734         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
42735         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
42736         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
42737         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
42738         Likewise.
42739         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
42740         Likewise.
42741         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
42742         Likewise.
42743         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
42744         Likewise.
42745         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
42746         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
42747         Likewise.
42748         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
42749         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
42750         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
42751         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
42752         Likewise.
42753         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
42754         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
42755         * sysdeps/powerpc/preconfigure: Likewise.
42756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
42757         Likewise.
42758         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
42759         Replace contents of file by #include of <fenv_libc.h>.
42760         * sysdeps/powerpc/soft-fp/sfp-machine.h
42761         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
42762         and <sys/prctl.h>.
42763         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
42764         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
42765         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
42766         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
42767         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
42768         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
42769         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
42770         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
42771         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
42772         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
42773         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
42774         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
42775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
42776         Allow copysignl PLT reference to be missing.
42777
42778 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
42779             Joseph Myers  <joseph@codesourcery.com
42780
42781         [BZ #15948]
42782         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
42783         single character.
42784         (add_to_tablewc): Assert sequence of wide characters is nonempty.
42785
42786 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
42787
42788         * elf/tst-tls-dlinfo.c: Don't include tls.h.
42789         * elf/tst-tls1.c: Likewise.
42790         * elf/tst-tls10.h: Likewise.
42791         * elf/tst-tls14.c: Likewise.
42792         * elf/tst-tls2.c: Likewise.
42793         * elf/tst-tls3.c: Likewise.
42794         * elf/tst-tls4.c: Likewise.
42795         * elf/tst-tls5.c: Likewise.
42796         * elf/tst-tls6.c: Likewise.
42797         * elf/tst-tls7.c: Likewise.
42798         * elf/tst-tls8.c: Likewise.
42799         * elf/tst-tls9.c: Likewise.
42800         * elf/tst-tlsmod1.c: Likewise.
42801         * elf/tst-tlsmod13.c: Likewise.
42802         * elf/tst-tlsmod13a.c: Likewise.
42803         * elf/tst-tlsmod14a.c: Likewise.
42804         * elf/tst-tlsmod16a.c: Likewise.
42805         * elf/tst-tlsmod16b.c: Likewise.
42806         * elf/tst-tlsmod2.c: Likewise.
42807         * elf/tst-tlsmod3.c: Likewise.
42808         * elf/tst-tlsmod4.c: Likewise.
42809         * elf/tst-tlsmod5.c: Likewise.
42810         * elf/tst-tlsmod6.c: Likewise.
42811
42812 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
42813
42814         [BZ #12486]
42815         * malloc/malloc.c: remove checks for statistics.
42816
42817 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42818
42819         [BZ #15277]
42820         * inet/inet_net.c (inet_network): Detect additional invalid strings.
42821         * inet/tst-network.c: Add testcase.
42822
42823 2013-10-17  Andreas Schwab  <schwab@suse.de>
42824
42825         [BZ #15218]
42826         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
42827         to determine canonical name.
42828
42829 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42830
42831         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
42832         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
42833         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42834         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42835         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42836         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42837         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42838         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42839         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42840         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42841         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42842         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42843         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42844         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42845         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42846         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42847         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42848         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42849         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
42850         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42851         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42852         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42853         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
42854         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
42855         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
42856         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42857         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42858         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
42859         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42860         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
42861         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42862         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42863         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
42864         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42865         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
42866         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
42867         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42868         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
42869         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
42870         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42871         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
42872         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
42873         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
42874         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
42875         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
42876         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
42877         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
42878         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
42879         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
42880         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
42881         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
42882         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
42883         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
42884         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
42885         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42886         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
42887         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42888         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
42889
42890 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
42891
42892         [BZ #16041]
42893         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
42894         make result into a quiet NaN.
42895
42896 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
42897
42898         * soft-fp/adddf3.c: Fix horizontal whitespace.
42899         * soft-fp/addsf3.c: Likewise.
42900         * soft-fp/addtf3.c: Likewise.
42901         * soft-fp/divdf3.c: Likewise.
42902         * soft-fp/divsf3.c: Likewise.
42903         * soft-fp/divtf3.c: Likewise.
42904         * soft-fp/double.h: Likewise.
42905         * soft-fp/eqdf2.c: Likewise.
42906         * soft-fp/eqsf2.c: Likewise.
42907         * soft-fp/eqtf2.c: Likewise.
42908         * soft-fp/extenddftf2.c: Likewise.
42909         * soft-fp/extended.h: Likewise.
42910         * soft-fp/extendsfdf2.c: Likewise.
42911         * soft-fp/extendsftf2.c: Likewise.
42912         * soft-fp/extendxftf2.c: Likewise.
42913         * soft-fp/fixdfdi.c: Likewise.
42914         * soft-fp/fixdfsi.c: Likewise.
42915         * soft-fp/fixdfti.c: Likewise.
42916         * soft-fp/fixsfdi.c: Likewise.
42917         * soft-fp/fixsfsi.c: Likewise.
42918         * soft-fp/fixsfti.c: Likewise.
42919         * soft-fp/fixtfdi.c: Likewise.
42920         * soft-fp/fixtfsi.c: Likewise.
42921         * soft-fp/fixtfti.c: Likewise.
42922         * soft-fp/fixunsdfdi.c: Likewise.
42923         * soft-fp/fixunsdfsi.c: Likewise.
42924         * soft-fp/fixunsdfti.c: Likewise.
42925         * soft-fp/fixunssfdi.c: Likewise.
42926         * soft-fp/fixunssfsi.c: Likewise.
42927         * soft-fp/fixunssfti.c: Likewise.
42928         * soft-fp/fixunstfdi.c: Likewise.
42929         * soft-fp/fixunstfsi.c: Likewise.
42930         * soft-fp/fixunstfti.c: Likewise.
42931         * soft-fp/floatdidf.c: Likewise.
42932         * soft-fp/floatdisf.c: Likewise.
42933         * soft-fp/floatditf.c: Likewise.
42934         * soft-fp/floatsidf.c: Likewise.
42935         * soft-fp/floatsisf.c: Likewise.
42936         * soft-fp/floatsitf.c: Likewise.
42937         * soft-fp/floattidf.c: Likewise.
42938         * soft-fp/floattisf.c: Likewise.
42939         * soft-fp/floattitf.c: Likewise.
42940         * soft-fp/floatundidf.c: Likewise.
42941         * soft-fp/floatundisf.c: Likewise.
42942         * soft-fp/floatunditf.c: Likewise.
42943         * soft-fp/floatunsidf.c: Likewise.
42944         * soft-fp/floatunsisf.c: Likewise.
42945         * soft-fp/floatunsitf.c: Likewise.
42946         * soft-fp/floatuntidf.c: Likewise.
42947         * soft-fp/floatuntisf.c: Likewise.
42948         * soft-fp/floatuntitf.c: Likewise.
42949         * soft-fp/fmadf4.c: Likewise.
42950         * soft-fp/fmasf4.c: Likewise.
42951         * soft-fp/fmatf4.c: Likewise.
42952         * soft-fp/gedf2.c: Likewise.
42953         * soft-fp/gesf2.c: Likewise.
42954         * soft-fp/getf2.c: Likewise.
42955         * soft-fp/ledf2.c: Likewise.
42956         * soft-fp/lesf2.c: Likewise.
42957         * soft-fp/letf2.c: Likewise.
42958         * soft-fp/muldf3.c: Likewise.
42959         * soft-fp/mulsf3.c: Likewise.
42960         * soft-fp/multf3.c: Likewise.
42961         * soft-fp/negdf2.c: Likewise.
42962         * soft-fp/negsf2.c: Likewise.
42963         * soft-fp/negtf2.c: Likewise.
42964         * soft-fp/op-1.h: Likewise.
42965         * soft-fp/op-2.h: Likewise.
42966         * soft-fp/op-4.h: Likewise.
42967         * soft-fp/op-8.h: Likewise.
42968         * soft-fp/op-common.h: Likewise.
42969         * soft-fp/quad.h: Likewise.
42970         * soft-fp/single.h: Likewise.
42971         * soft-fp/soft-fp.h: Likewise.
42972         * soft-fp/sqrtdf2.c: Likewise.
42973         * soft-fp/sqrtsf2.c: Likewise.
42974         * soft-fp/sqrttf2.c: Likewise.
42975         * soft-fp/subdf3.c: Likewise.
42976         * soft-fp/subsf3.c: Likewise.
42977         * soft-fp/subtf3.c: Likewise.
42978         * soft-fp/truncdfsf2.c: Likewise.
42979         * soft-fp/trunctfdf2.c: Likewise.
42980         * soft-fp/trunctfsf2.c: Likewise.
42981         * soft-fp/trunctfxf2.c: Likewise.
42982         * soft-fp/unorddf2.c: Likewise.
42983         * soft-fp/unordsf2.c: Likewise.
42984         * soft-fp/unordtf2.c: Likewise.
42985
42986 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
42987
42988         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
42989         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
42990
42991 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
42992
42993         * elf/dl-libc.c: Clear initfini list after freeing.
42994
42995 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
42996
42997         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
42998         * soft-fp/addsf3.c: Likewise.
42999         * soft-fp/addtf3.c: Likewise.
43000         * soft-fp/divdf3.c: Likewise.
43001         * soft-fp/divsf3.c: Likewise.
43002         * soft-fp/divtf3.c: Likewise.
43003         * soft-fp/double.h: Likewise.
43004         * soft-fp/eqdf2.c: Likewise.
43005         * soft-fp/eqsf2.c: Likewise.
43006         * soft-fp/eqtf2.c: Likewise.
43007         * soft-fp/extenddftf2.c: Likewise.
43008         * soft-fp/extended.h: Likewise.
43009         * soft-fp/extendsfdf2.c: Likewise.
43010         * soft-fp/extendsftf2.c: Likewise.
43011         * soft-fp/extendxftf2.c: Likewise.
43012         * soft-fp/fixdfdi.c: Likewise.
43013         * soft-fp/fixdfsi.c: Likewise.
43014         * soft-fp/fixdfti.c: Likewise.
43015         * soft-fp/fixsfdi.c: Likewise.
43016         * soft-fp/fixsfsi.c: Likewise.
43017         * soft-fp/fixsfti.c: Likewise.
43018         * soft-fp/fixtfdi.c: Likewise.
43019         * soft-fp/fixtfsi.c: Likewise.
43020         * soft-fp/fixtfti.c: Likewise.
43021         * soft-fp/fixunsdfdi.c: Likewise.
43022         * soft-fp/fixunsdfsi.c: Likewise.
43023         * soft-fp/fixunsdfti.c: Likewise.
43024         * soft-fp/fixunssfdi.c: Likewise.
43025         * soft-fp/fixunssfsi.c: Likewise.
43026         * soft-fp/fixunssfti.c: Likewise.
43027         * soft-fp/fixunstfdi.c: Likewise.
43028         * soft-fp/fixunstfsi.c: Likewise.
43029         * soft-fp/fixunstfti.c: Likewise.
43030         * soft-fp/floatdidf.c: Likewise.
43031         * soft-fp/floatdisf.c: Likewise.
43032         * soft-fp/floatditf.c: Likewise.
43033         * soft-fp/floatsidf.c: Likewise.
43034         * soft-fp/floatsisf.c: Likewise.
43035         * soft-fp/floatsitf.c: Likewise.
43036         * soft-fp/floattidf.c: Likewise.
43037         * soft-fp/floattisf.c: Likewise.
43038         * soft-fp/floattitf.c: Likewise.
43039         * soft-fp/floatundidf.c: Likewise.
43040         * soft-fp/floatundisf.c: Likewise.
43041         * soft-fp/floatunsidf.c: Likewise.
43042         * soft-fp/floatunsisf.c: Likewise.
43043         * soft-fp/floatuntidf.c: Likewise.
43044         * soft-fp/floatuntisf.c: Likewise.
43045         * soft-fp/floatuntitf.c: Likewise.
43046         * soft-fp/fmadf4.c: Likewise.
43047         * soft-fp/fmasf4.c: Likewise.
43048         * soft-fp/fmatf4.c: Likewise.
43049         * soft-fp/gedf2.c: Likewise.
43050         * soft-fp/gesf2.c: Likewise.
43051         * soft-fp/getf2.c: Likewise.
43052         * soft-fp/ledf2.c: Likewise.
43053         * soft-fp/lesf2.c: Likewise.
43054         * soft-fp/letf2.c: Likewise.
43055         * soft-fp/muldf3.c: Likewise.
43056         * soft-fp/mulsf3.c: Likewise.
43057         * soft-fp/multf3.c: Likewise.
43058         * soft-fp/negdf2.c: Likewise.
43059         * soft-fp/negsf2.c: Likewise.
43060         * soft-fp/negtf2.c: Likewise.
43061         * soft-fp/op-1.h: Likewise.
43062         * soft-fp/op-2.h: Likewise.
43063         * soft-fp/op-4.h: Likewise.
43064         * soft-fp/op-8.h: Likewise.
43065         * soft-fp/op-common.h: Likewise.
43066         * soft-fp/quad.h: Likewise.
43067         * soft-fp/single.h: Likewise.
43068         * soft-fp/soft-fp.h: Likewise.
43069         * soft-fp/sqrtdf2.c: Likewise.
43070         * soft-fp/sqrtsf2.c: Likewise.
43071         * soft-fp/sqrttf2.c: Likewise.
43072         * soft-fp/subdf3.c: Likewise.
43073         * soft-fp/subsf3.c: Likewise.
43074         * soft-fp/subtf3.c: Likewise.
43075         * soft-fp/truncdfsf2.c: Likewise.
43076         * soft-fp/trunctfdf2.c: Likewise.
43077         * soft-fp/trunctfsf2.c: Likewise.
43078         * soft-fp/trunctfxf2.c: Likewise.
43079         * soft-fp/unorddf2.c: Likewise.
43080         * soft-fp/unordsf2.c: Likewise.
43081         * soft-fp/unordtf2.c: Likewise.
43082
43083 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
43084
43085         [BZ #15672]
43086         * misc/error.c (error_tail): Fix possible buffer overflow.
43087
43088 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
43089
43090         [BZ #13028]
43091         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
43092         address.
43093
43094 2013-10-14  P. J. McDermott  <pj@pehjota.net>
43095
43096         [BZ #832]
43097         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
43098         testing pipefail option.
43099
43100 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
43101
43102         * soft-fp/double.h: Indent preprocessor directives inside #if.
43103         * soft-fp/extended.h: Likewise.
43104         * soft-fp/op-2.h: Likewise.
43105         * soft-fp/op-4.h: Likewise.
43106         * soft-fp/op-common.h: Likewise.
43107         * soft-fp/quad.h: Likewise.
43108         * soft-fp/single.h: Likewise.
43109         * soft-fp/soft-fp.h: Likewise.
43110
43111 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
43112
43113         * iconv/iconv_prog.c: Fix typos.
43114         * stdio-common/psiginfo-data.h: Likewise.
43115
43116 2013-10-12   Reuben Thomas <rrt@sc3d.org>
43117
43118         [BZ #15764]
43119         * locale/setlocale.c: Fix typo.
43120
43121 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
43122
43123         [BZ #16036]
43124         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
43125         signaling NaN arguments.
43126         * soft-fp/unordsf2.c (__unordsf2): Likewise.
43127         * soft-fp/unordtf2.c (__unordtf2): Likewise.
43128
43129         [BZ #14910]
43130         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
43131         unordered operands.
43132         * soft-fp/gesf2.c (__gesf2): Likewise.
43133         * soft-fp/getf2.c (__getf2): Likewise.
43134         * soft-fp/ledf2.c (__ledf2): Likewise.
43135         * soft-fp/lesf2.c (__lesf2): Likewise.
43136         * soft-fp/letf2.c (__letf2): Likewise.
43137
43138         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
43139         * soft-fp/eqsf2.c (__eqsf2): Likewise.
43140         * soft-fp/eqtf2.c (__eqtf2): Likewise.
43141         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
43142         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
43143         * soft-fp/fixdfti.c (__fixdfti): Likewise.
43144         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
43145         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
43146         * soft-fp/fixsfti.c (__fixsfti): Likewise.
43147         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
43148         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
43149         * soft-fp/fixtfti.c (__fixtfti): Likewise.
43150         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
43151         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
43152         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
43153         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
43154         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
43155         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
43156         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
43157         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
43158         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
43159         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
43160         * soft-fp/floatdisf.c (__floatdisf): Likewise.
43161         * soft-fp/floatsisf.c (__floatsisf): Likewise.
43162         * soft-fp/floattidf.c (__floattidf): Likewise.
43163         * soft-fp/floattisf.c (__floattisf): Likewise.
43164         * soft-fp/floattitf.c (__floattitf): Likewise.
43165         * soft-fp/floatundidf.c (__floatundidf): Likewise.
43166         * soft-fp/floatundisf.c (__floatundisf): Likewise.
43167         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
43168         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
43169         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
43170         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
43171         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
43172         * soft-fp/gesf2.c (__gesf2): Likewise.
43173         * soft-fp/getf2.c (__getf2): Likewise.
43174         * soft-fp/ledf2.c (__ledf2): Likewise.
43175         * soft-fp/lesf2.c (__lesf2): Likewise.
43176         * soft-fp/letf2.c (__letf2): Likewise.
43177
43178         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
43179         Undefine and redefine.
43180         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
43181         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
43182         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
43183         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
43184         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43185         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
43186         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43187         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
43188         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43189         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
43190         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43191         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
43192         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43193         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
43194         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43195
43196         [BZ #16032]
43197         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
43198         without decrementing exponent if mantissa >= that for the
43199         denominator, not >.
43200         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
43201         denominator, not >.  Decrement exponent in < case instead of
43202         incrementing in >= case.
43203         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
43204         without decrementing exponent if mantissa >= that for the
43205         denominator, not >.
43206
43207         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
43208         computing saturated result for unsigned overflow.
43209
43210 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
43211             Jeff Law  <law@redhat.com>
43212
43213         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
43214         (atan2Mp): Add systemtap probe marker.
43215         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
43216         (__ieee754_log): Add systemtap probe marker.
43217         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
43218         (atanMp): Add systemtap probe marker.
43219         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
43220         (tanMp): Add systemtap probe marker.
43221         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
43222         (__slowexp): Add systemtap probe marker.
43223         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
43224         (__slowpow): Add systemtap probe marker.
43225         * manual/probes.texi: Document probes.
43226
43227 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
43228
43229         [BZ #15362]
43230         * libio/fileops.c (_IO_new_file_write): Return count of bytes
43231         written.
43232         (_IO_new_file_xsputn): Don't return EOF if nothing has been
43233         written.
43234         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
43235         written to buffer but not flushed.
43236         * libio/iofwrite_u.c:  Likewise.
43237         * libio/iopadn.c:  Return bytes returned even if EOF was
43238         encountered.
43239         * libio/iowpadn.c:  Likewise.
43240         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
43241         if _IO_padn does not write the whole buffer.
43242         [!COMPILE_WPRINTF] (PAD): Likewise.
43243
43244 2013-10-10  David S. Miller  <davem@davemloft.net>
43245
43246         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
43247         directory block.
43248
43249 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
43250
43251         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
43252         instead of FSF address.
43253         * soft-fp/fixdfti.c: Likewise.
43254         * soft-fp/fixsfti.c: Likewise.
43255         * soft-fp/fixtfti.c: Likewise.
43256         * soft-fp/fixunsdfti.c: Likewise.
43257         * soft-fp/fixunssfti.c: Likewise.
43258         * soft-fp/fixunstfti.c: Likewise.
43259         * soft-fp/floattidf.c: Likewise.
43260         * soft-fp/floattisf.c: Likewise.
43261         * soft-fp/floattitf.c: Likewise.
43262         * soft-fp/floatuntidf.c: Likewise.
43263         * soft-fp/floatuntisf.c: Likewise.
43264         * soft-fp/floatuntitf.c: Likewise.
43265         * soft-fp/trunctfxf2.c: Likewise.
43266
43267         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
43268         * soft-fp/fixdfti.c: Likewise.
43269         * soft-fp/fixsfti.c: Likewise.
43270         * soft-fp/fixtfti.c: Likewise.
43271         * soft-fp/fixunsdfti.c: Likewise.
43272         * soft-fp/fixunssfti.c: Likewise.
43273         * soft-fp/fixunstfti.c: Likewise.
43274         * soft-fp/floattidf.c: Likewise.
43275         * soft-fp/floattisf.c: Likewise.
43276         * soft-fp/floattitf.c: Likewise.
43277         * soft-fp/floatuntidf.c: Likewise.
43278         * soft-fp/floatuntisf.c: Likewise.
43279         * soft-fp/floatuntitf.c: Likewise.
43280         * soft-fp/trunctfxf2.c: Likewise.
43281
43282 2013-10-10  David S. Miller  <davem@davemloft.net>
43283
43284         * sysdeps/sparc/fpu/libm-test-ulps: Update.
43285
43286 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
43287
43288         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
43289         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
43290         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
43291         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
43292         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
43293         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
43294         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
43295
43296         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
43297         for NaNs before doing comparisons on argument.
43298         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
43299         Likewise.
43300
43301 2013-10-10  Will Newton  <will.newton@linaro.org>
43302
43303         * malloc/hooks.c (memalign_check): Ensure the value of bytes
43304         passed to _int_memalign does not overflow.
43305
43306 2013-10-10  Torvald Riegel  <triegel@redhat.com>
43307
43308         * scripts/bench.pl: Add include-sources directive.
43309         * benchtests/README: Update documentation.
43310
43311 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
43312
43313         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
43314         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
43315         instead of FP_INIT_ROUNDMODE.
43316         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
43317         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
43318
43319         [BZ #16034]
43320         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
43321         copy class of input value.
43322         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
43323         not handle exceptions.
43324         * soft-fp/negsf2.c (__negsf2): Likewise.
43325         * soft-fp/negtf2.c (__negtf2): Likewise.
43326         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
43327
43328 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
43329
43330         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
43331         semicolon.  From Linux kernel.
43332
43333 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
43334
43335         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
43336
43337 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
43338
43339         [BZ #156]
43340         * manual/socket.texi: Added statement about buffer
43341         for gethostbyname2_r.
43342
43343 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
43344
43345         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
43346         Use .p2align directive instead, throughout.
43347         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
43348         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
43349         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
43350         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
43351         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
43352         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
43353         * sysdeps/x86_64/strchr.S: Likewise.
43354         * sysdeps/x86_64/strrchr.S: Likewise.
43355
43356 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
43357
43358         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
43359
43360         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
43361
43362         * sysdeps/generic/math_private.h (__mpsin1): Remove
43363         declaration.
43364         (__mpcos1): Likewise.
43365         (__mpsin): New argument __range_reduce.
43366         (__mpcos): Likewise.
43367         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
43368         (slow): Use __mpsin and __mpcos.
43369         (slow1): Likewise.
43370         (slow2): Likewise.
43371         (sloww): Likewise.
43372         (sloww1): Likewise.
43373         (sloww2): Likewise.
43374         (bsloww): Likewise.
43375         (bsloww1): Likewise.
43376         (bsloww2): Likewise.
43377         (cslow2): Likewise.
43378         (csloww): Likewise.
43379         (csloww1): Likewise.
43380         (csloww2): Likewise.
43381         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
43382         range_reduce.  Merge in __mpsin1.
43383         (__mpcos): Likewise.
43384         (__mpsin1): Remove.
43385         (__mpcos1): Likewise.
43386
43387 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
43388
43389         * locale/loadlocale.c (_nl_intern_locale_data): Use
43390         LOCFILE_ALIGNED_P.
43391         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
43392         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
43393         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
43394         obstack data is appropriately aligned.
43395         (obstack_int32_grow_fast): Likewise.
43396         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
43397         * locale/programs/locfile.c (add_locale_uint32): Likewise.
43398         (add_locale_uint32_array): Likewise.
43399
43400 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
43401
43402         * benchtests/Makefile: Remove ARGLIST and RET variables.
43403         ($(objpfx)bench-%.c): Pass only function name to the script.
43404         * benchtests/README: Update documentation.
43405         * benchtests/acos-inputs: Add new directives.
43406         * benchtests/acosh-inputs: Likewise.
43407         * benchtests/asin-inputs: Likewise.
43408         * benchtests/asinh-inputs: Likewise.
43409         * benchtests/atan-inputs: Likewise.
43410         * benchtests/atanh-inputs: Likewise.
43411         * benchtests/cos-inputs: Likewise.
43412         * benchtests/cosh-inputs: Likewise.
43413         * benchtests/exp-inputs: Likewise.
43414         * benchtests/log-inputs: Likewise.
43415         * benchtests/pow-inputs: Likewise.
43416         * benchtests/rint-inputs: Likewise.
43417         * benchtests/sin-inputs: Likewise.
43418         * benchtests/sinh-inputs: Likewise.
43419         * benchtests/tan-inputs: Likewise.
43420         * benchtests/tanh-inputs: Likewise.
43421         * scripts/bench.pl: Add support for new directives.
43422
43423 2013-10-07  Alan Modra  <amodra@gmail.com>
43424
43425         * README: Fix careless merge.
43426
43427 2013-10-05  Alan Modra  <amodra@gmail.com>
43428
43429         * NEWS: Mention powerpc64le support and bugs fixed.
43430         * README: Both big-endian and little-endian powerpc64 supported.
43431
43432 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43433
43434         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
43435         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
43436         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
43437         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
43438
43439 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
43440
43441         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
43442         match prototype.
43443
43444 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
43445
43446         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
43447         Move -mhard-float appending from
43448         ports/sysdeps/powerpc/powerpc32/Makefile.
43449         [$(with-fp) = yes] (ASFLAGS): Likewise.
43450         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
43451         * sysdeps/powerpc/nofpu: Move directory from
43452         ports/sysdeps/powerpc/nofpu.
43453         * sysdeps/powerpc/soft-fp: Move directory from
43454         ports/sysdeps/powerpc/soft-fp.
43455         * sysdeps/powerpc/powerpc32/405: Move directory from
43456         ports/sysdeps/powerpc/powerpc32/405.
43457         * sysdeps/powerpc/powerpc32/440: Move directory from
43458         ports/sysdeps/powerpc/powerpc32/440.
43459         * sysdeps/powerpc/powerpc32/464: Move directory from
43460         ports/sysdeps/powerpc/powerpc32/464.
43461         * sysdeps/powerpc/powerpc32/476: Move directory from
43462         ports/sysdeps/powerpc/powerpc32/476.
43463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
43464         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
43465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
43466         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
43467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
43468         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
43469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
43470         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
43471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
43472         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
43473         * README: Update for powerpc-*-linux-gnu software floating point
43474         support in libc.
43475
43476         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
43477         case to powerpc/powerpc32*.
43478         * sysdeps/unix/sysv/linux/configure: Regenerated.
43479
43480         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
43481         (_FPU_MASK_OM): Define as 0x04.
43482         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
43483         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
43484         0x00c10080.
43485         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
43486         0x0000003c.
43487         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
43488
43489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
43490         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43491         getcontext_e500.
43492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
43493         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43494         setcontext_e500.
43495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
43496         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
43497         and setcontext_e500.
43498
43499 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
43500
43501         * locale/iso-3166.def: Update iso-1366.def and related occurrences
43502
43503 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
43504
43505         * manual/threads.texi (Default Thread Attributes): Fix typo.
43506
43507 2013-10-04  Will Newton  <will.newton@linaro.org>
43508
43509         * malloc/Makefile: Add tst-memalign.
43510         * malloc/tst-memalign.c: New file.
43511
43512         * malloc/tst-posix_memalign.c: Add comments.
43513         (do_test): Add comments and call free on all potentially
43514         allocated pointers. Add space after cast.
43515
43516         * malloc/tst-pvalloc.c: Add comments.
43517         (do_test): Add comments and call free on all potentially
43518         allocated pointers. Remove duplicate check for NULL pointer.
43519         Add space after cast.
43520
43521         * malloc/tst-valloc.c: Add comments.
43522         (do_test): Add comments and call free on all potentially
43523         allocated pointers. Remove duplicate check for NULL pointer.
43524         Add space after cast.
43525
43526 2013-10-04  Alan Modra  <amodra@gmail.com>
43527
43528         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43529         Use stdint types in rather than __attribute__((mode())).
43530         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43531
43532 2013-10-04  Alan Modra  <amodra@gmail.com>
43533
43534         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43535         Correct handling of unaligned relocs for little-endian.
43536         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43537
43538 2013-10-04  Alan Modra  <amodra@gmail.com>
43539
43540         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
43541         * configure: Regenerate.
43542         * nptl/shlib-versions: Powerpc*le starts at 2.18.
43543         * shlib-versions: Likewise.
43544
43545 2013-10-04  Alan Modra  <amodra@gmail.com>
43546
43547         * string/tester.c (test_memrchr): Increment reported test cycle.
43548
43549 2013-10-04  Alan Modra  <amodra@gmail.com>
43550
43551         * string/test-memcpy.c (do_one_test): When reporting errors, print
43552         string address and don't overrun end of string.
43553
43554 2013-10-04  Alan Modra  <amodra@gmail.com>
43555
43556         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
43557         insrdi.  Make better use of reg selection to speed exit slightly.
43558         Schedule entry path a little better.  Remove useless "are we done"
43559         checks on entry to main loop.  Handle wrapping around zero address.
43560         Correct main loop count.  Handle single left-over word from main
43561         loop inline rather than by using loop_small.  Remove extra word
43562         case in loop_small caused by wrong loop count.  Add little-endian
43563         support.
43564         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
43565         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
43566         cache hint.
43567         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
43568         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
43569         support.  Avoid rlwimi.
43570         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
43571
43572 2013-10-04  Alan Modra  <amodra@gmail.com>
43573
43574         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
43575         insrdi.  Formatting.
43576         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
43577         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
43578         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
43579         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
43580         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
43581         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
43582
43583 2013-10-04  Alan Modra  <amodra@gmail.com>
43584
43585         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
43586         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
43587         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
43588         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
43589         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
43590         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
43591         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
43592         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43593         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
43594         use of regs.  Use power7 mtocrf.  Tidy function tails.
43595
43596 2013-10-04  Alan Modra  <amodra@gmail.com>
43597
43598         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
43599         Formatting.  Consistently use rXXX register defines or rN defines.
43600         Use early exit labels that avoid restoring unused non-volatile regs.
43601         Make cr field use more consistent with rWORDn compares.  Rename
43602         regs used as shift registers for unaligned loop, using rN defines
43603         for short lifetime/multiple use regs.
43604         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
43605         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
43606         addi 1,1,64 to pop stack frame.  Simplify return value code.
43607         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
43608
43609 2013-10-04  Alan Modra  <amodra@gmail.com>
43610
43611         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
43612         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
43613         rather than rlwimi.
43614         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
43615         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
43616         little-endian support.  Correct typos.
43617         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
43618         rather than rlwimi.
43619         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
43620         in loop and entry code to keep "and." results.
43621         (strchr): Add little-endian support.  Comment.  Move cntlzd
43622         earlier in tail.
43623         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
43624
43625 2013-10-04  Alan Modra  <amodra@gmail.com>
43626
43627         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
43628         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
43629         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
43630         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
43631
43632 2013-10-04  Alan Modra  <amodra@gmail.com>
43633
43634         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
43635         (rTMP): Define as r11.
43636         (strcmp): Add little-endian support.  Optimise tail.
43637         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
43638         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
43639         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
43640         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
43641         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
43642         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43643         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
43644
43645 2013-10-04  Alan Modra  <amodra@gmail.com>
43646
43647         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
43648         little-endian support.  Remove unnecessary "are we done" tests.
43649         Handle "s" wrapping around zero and extremely large "size".
43650         Correct main loop count.  Handle single left-over word from main
43651         loop inline rather than by using small_loop.  Correct comments.
43652         Delete "zero" tail, use "end_max" instead.
43653         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
43654
43655 2013-10-04  Alan Modra  <amodra@gmail.com>
43656
43657         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
43658         support.  Don't branch over align.
43659         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
43660         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
43661         support.  Rearrange tmp reg use to suit.  Comment.
43662         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
43663
43664 2013-10-04  Alan Modra  <amodra@gmail.com>
43665
43666         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
43667
43668 2013-10-04  Alan Modra  <amodra@gmail.com>
43669
43670         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
43671         conditional form of branch and link when obtaining pc.
43672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43673
43674 2013-10-04  Alan Modra  <amodra@gmail.com>
43675
43676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
43677         HIWORD/LOWORD.
43678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
43679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
43680
43681 2013-10-04  Alan Modra  <amodra@gmail.com>
43682
43683         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
43684         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
43685         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
43686         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
43687         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
43688         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
43689         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
43690         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
43691         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
43692         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
43693
43694 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43695             Alistair Popple <alistair@ozlabs.au.ibm.com>
43696             Alan Modra <amodra@gmail.com>
43697
43698         [BZ #15723]
43699         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
43700         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
43701         _dl_hwcap access for little-endian.
43702         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
43703         destroy vmx regs when saving unaligned.
43704         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
43705         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
43706         destroy vmx regs when saving unaligned.
43707
43708 2013-10-04  Alan Modra  <amodra@gmail.com>
43709
43710         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
43711         Don't use a union to pack hi/low value.
43712
43713 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43714
43715         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
43716         for little-endian.
43717         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
43718         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
43719         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
43720         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
43721         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
43722
43723 2013-10-04  Alan Modra  <amodra@gmail.com>
43724
43725         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
43726         constants to usual value for .cst8 section, and remove redundant
43727         high address load.
43728         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
43729         constant for 0x1p52.  Load little-endian words of double from
43730         correct stack offsets.
43731
43732 2013-10-04  Alan Modra  <amodra@gmail.com>
43733
43734         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
43735         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
43736         words of double from correct stack offsets.
43737         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
43738         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
43739         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
43740         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
43741         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
43742         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
43743         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
43744         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
43745         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
43746         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
43747         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
43748         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
43749         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
43750         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
43751         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
43752         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
43753         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
43754
43755 2013-10-04  Alan Modra  <amodra@gmail.com>
43756
43757         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
43758         64-bit int/double union.
43759         (_FPU_SETCW): Likewise.
43760         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
43761         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
43762
43763 2013-10-04  Alan Modra  <amodra@gmail.com>
43764
43765         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
43766         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
43767
43768 2013-10-04  Alan Modra  <amodra@gmail.com>
43769
43770         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
43771         use vector int constants.
43772         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
43773
43774 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43775
43776         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
43777         array with long long.
43778         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
43779         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
43780         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
43781         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
43782         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
43783         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
43784         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
43785         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
43786         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
43787         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
43788         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
43789         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
43790         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
43791
43792 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43793
43794         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
43795         (__signbit): Likewise.  Correct for little-endian.
43796         (__signbitl): Call __signbit.
43797         (lrint): Correct for little-endian.
43798         (lrintf): Call lrint.
43799
43800 2013-10-04  Alan Modra  <amodra@gmail.com>
43801
43802         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
43803         union 32-bit int array member with 64-bit int array.
43804         (t515, tm256): Double rather than long double.
43805         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
43806
43807 2013-10-04  Alan Modra  <amodra@gmail.com>
43808
43809         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
43810         Delete.
43811         (IEEE854_LONG_DOUBLE_BIAS): Delete.
43812         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
43813         version of math_ldbl.h.
43814
43815 2013-10-04  Alan Modra  <amodra@gmail.com>
43816
43817         [BZ #15734], [BZ #15735]
43818         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
43819         all uses of ieee875 long double macros and unions.  Simplify test
43820         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
43821         ldbl_extract_mantissa value for ix,iy exponents.  Properly
43822         normalize after ldbl_extract_mantissa, and don't add hidden bit
43823         already handled.  Don't treat low word of ieee854 mantissa like
43824         low word of IBM long double and mask off bit when testing for
43825         zero.
43826         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
43827         all uses of ieee875 long double macros and unions.  Simplify tests
43828         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
43829         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
43830         two1022, instead use their values.  Recognise that tests for large
43831         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
43832         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
43833         Rewrite all uses of ieee875 long double macros and unions.  Simplify
43834         test for 0.0L and nan.  Correct negation.
43835         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
43836         ieee875 long double macros and unions.  Correct output for large
43837         magnitude x.  Correct absolute value calculation.
43838         (__erfcl): Likewise.
43839         * math/libm-test.inc: Add tests for errors discovered in IBM long
43840         double versions of fmodl, remainderl, erfl and erfcl.
43841
43842 2013-10-04  Alan Modra  <amodra@gmail.com>
43843
43844         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
43845         all uses of ieee854 long double macros and unions.  Simplify tests
43846         for long doubles that are fully specified by the high double.
43847         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
43848         Likewise.
43849         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
43850         Remove dead code too.
43851         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
43852         (__ieee754_ynl): Likewise.
43853         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
43854         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
43855         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
43856         Remove dead code too.
43857         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
43858         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
43859         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
43860         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
43861         Simplify.
43862         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
43863         Simplify.
43864         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
43865         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
43866         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
43867         Comment on variable precision.
43868         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
43869         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
43870         Likewise.
43871         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
43872         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
43873         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
43874         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
43875         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
43876
43877 2013-10-04  Alan Modra  <amodra@gmail.com>
43878
43879         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
43880         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
43881         all uses of ieee854 long double macros and unions.
43882         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
43883         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
43884         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
43885         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
43886         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
43887         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
43888         Likewise.
43889         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
43890         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
43891         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
43892         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
43893         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
43894         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
43895         Simplify sign and nan test too.
43896         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
43897         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
43898         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
43899         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
43900         Likewise.
43901         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
43902         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
43903         Likewise.
43904         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
43905         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
43906         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
43907         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
43908         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
43909         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
43910
43911 2013-10-04  Alan Modra  <amodra@gmail.com>
43912
43913         * stdio-common/printf_size.c (__printf_size): Don't use
43914         union ieee854_long_double in fpnum union.
43915         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
43916         signbit macro to retrieve sign from long double.
43917         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
43918         retrieve sign from long double.
43919         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
43920         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
43921         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
43922         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
43923         * math/test-misc.c (main): Don't use union ieee854_long_double.
43924
43925 2013-10-04  Alan Modra  <amodra@gmail.com>
43926
43927         [BZ #15680]
43928         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
43929         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
43930         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
43931         calculation.  Remove unnecessary test for denormal exponent.
43932         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
43933         Correct handling of denormals.  Avoid undefined shift behaviour.
43934         Correct normalisation of low mantissa when low double is denormal.
43935         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
43936         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
43937         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
43938         Correct normalisation of low mantissa.  Test for overflow of high
43939         mantissa and normalise.
43940         (ldbl_nearbyint): Use more readable constant for two52.
43941         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
43942         (__mpn_construct_long_double): Fix test for overflow of high
43943         mantissa and correct normalisation.  Avoid undefined shift.
43944
43945 2013-10-04  Alan Modra  <amodra@gmail.com>
43946
43947         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
43948         (union ibm_extended_long_double): Define as an array of ieee754_double.
43949         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
43950         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
43951         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
43952         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
43953         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
43954         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
43955         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
43956         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
43957         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
43958         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
43959         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
43960
43961 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
43962
43963         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
43964         page size instead of calling getpagesize.
43965
43966         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
43967         (LOCFILE_ALIGN_MASK): Likewise.
43968         (LOCFILE_ALIGN_UP): Likewise.
43969         (LOCFILE_ALIGNED_P): Likewise.
43970         * locale/programs/ld-collate.c (collate_output): Use the new
43971         macros instead of __alignof__ (int32_t).
43972         * locale/weight.h (findidx): Likewise.
43973
43974 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
43975
43976         [BZ #431]
43977         * manual/string.texi: Fix strncat and wcsncat.
43978
43979 2013-10-03  Brooks Moses  <bmoses@google.com>
43980
43981         [BZ #15915]
43982         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
43983         * Makerules: ...here, and adjust associated comments.
43984
43985 2013-10-02  Will Newton  <will.newton@linaro.org>
43986
43987         * malloc/Makefile: Add tst-pvalloc.
43988         * malloc/tst-pvalloc.c: New file.
43989
43990 2013-10-02  Will Newton  <will.newton@linaro.org>
43991
43992         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
43993         improve test coverage.
43994
43995 2013-10-02  Will Newton  <will.newton@linaro.org>
43996
43997         * malloc/Makefile: Add tst-posix_memalign.
43998         * malloc/tst-posix_memalign.c: New file.
43999
44000 2013-10-01  Eric Blake  <eblake@redhat.com>
44001
44002         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
44003         Use __THROWNL rather than __THROW on static functions.
44004
44005 2013-09-30  Petr Machata  <pmachata@redhat.com>
44006
44007         * elf/elf.h (R_AARCH64_ABS16): New macro.
44008         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
44009         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
44010         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
44011         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
44012         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
44013         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
44014         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
44015         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
44016         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
44017         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
44018         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
44019         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
44020         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
44021         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
44022         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
44023         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
44024         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
44025         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
44026         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
44027         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
44028         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
44029         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
44030         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
44031         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
44032         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
44033         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
44034         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
44035         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
44036         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
44037         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
44038         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
44039         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
44040         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
44041         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
44042         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
44043         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
44044         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
44045         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
44046         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
44047         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
44048         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
44049         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
44050         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
44051         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
44052         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
44053         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
44054         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
44055         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
44056         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
44057         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
44058         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
44059         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
44060         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
44061         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
44062         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
44063         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
44064         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
44065         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
44066         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
44067         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
44068         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
44069         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
44070         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
44071         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
44072         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
44073         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
44074         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
44075         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
44076         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
44077         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
44078         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
44079         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
44080         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
44081         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
44082         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
44083         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
44084         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
44085         (R_AARCH64_TLSDESC_LDR): Likewise.
44086         (R_AARCH64_TLSDESC_ADD): Likewise.
44087         (R_AARCH64_TLSDESC_CALL): Likewise.
44088
44089 2013-09-30  Andreas Schwab  <schwab@suse.de>
44090
44091         [BZ #15048]
44092         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
44093         the nss database lookup.
44094         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44095         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44096
44097 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
44098
44099         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
44100
44101 2013-09-28  P. J. McDermott  <pj@pehjota.net>
44102
44103         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
44104         ${Bash-specific parameter/pattern/string} parameter expansion.
44105         * sysdeps/unix/make-syscalls.sh: Likewise.
44106
44107 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44108
44109         * sysdeps/sh/stackguard-macros.h: New file.
44110
44111 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
44112
44113         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
44114         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
44115         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
44116         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
44117         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
44118         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
44119
44120 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44121
44122         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
44123         Fix thread ID register.
44124
44125 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
44126
44127         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
44128         [POSIX || UNIX98]: Require rather than permitting all symbols from
44129         <time.h>.
44130         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
44131         element of struct sched_param.
44132         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
44133         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
44134         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
44135         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
44136         constant.
44137
44138 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
44139
44140         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
44141         argument calculation.
44142
44143 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
44144
44145         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
44146         Expect macro.
44147         [POSIX] (pthread_attr_t): Do not require type.
44148         [POSIX] (pthread_cond_t): Likewise.
44149         [POSIX] (pthread_condattr_t): Likewise.
44150         [POSIX] (pthread_key_t): Likewise.
44151         [POSIX] (pthread_mutex_t): Likewise.
44152         [POSIX] (pthread_mutexattr_t): Likewise.
44153         [POSIX] (pthread_once_t): Likewise.
44154         [POSIX] (pthread_t): Likewise.
44155         [POSIX-based standards] (pthread_atfork): Expect function.
44156
44157 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
44158             Richard Sandiford  <richard@codesourcery.com>
44159
44160         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
44161         (swap_endianness_p): New extern variable.
44162         (set_big_endian): New inline function.
44163         (maybe_swap_uint32): Likewise.
44164         (maybe_swap_uint32_array): Likewise.
44165         (maybe_swap_uint32_obstack): Likewise.
44166         * locale/programs/locfile.c: Include <stdbool.h>.
44167         (swap_endianness_p): New variable.
44168         (add_locale_uint32): Call maybe_swap_uint32.
44169         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
44170         (write_locale_data): Call maybe_swap_uint32_array.
44171         * locale/programs/ld-collate.c (obstack_int32_grow): Call
44172         maybe_swap_uint32.
44173         (obstack_int32_grow_fast): Likewise.
44174         (output_weightwc): Call maybe_swap_uint32_obstack.
44175         (collate_output): Likewise.
44176         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
44177         (OPT_LITTLE_ENDIAN): Likewise.
44178         (options): Add --little-endian and --big-endian options.
44179         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
44180         * locale/programs/locarchive.c: Include "locfile.h".
44181         (GET): New macro.
44182         (SET): Likewise.
44183         (INC): Likewise.
44184         (create_archive): Use the new macros to access fields of
44185         structures directly mapped from or written to locale archives.
44186         (oldlocrecentcmp): Likewise.
44187         (enlarge_archive): Likewise.
44188         (insert_name): Likewise.
44189         (add_alias): Likewise.
44190         (add_locale): Likewise.
44191         (delete_locales_from_archive): Likewise.
44192         (show_archive_content): Likewise.
44193         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
44194         locale data.
44195
44196 2013-09-24  Roland McGrath  <roland@hack.frob.com>
44197
44198         * manual/freemanuals.texi: Updated from (newly) canonical copy at
44199         http://www.gnu.org/doc/freemanuals.texi.
44200         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
44201
44202 2013-09-24  Will Newton  <will.newton@linaro.org>
44203
44204         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
44205         macro.
44206
44207 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
44208
44209         * locale/hashval.h (compute_hashval): Interpret bytes of key as
44210         unsigned char.
44211
44212 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
44213
44214         * manual/threads.texi (POSIX Threads): Fix a typo.
44215
44216 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
44217
44218         [BZ #14547]
44219         * string/tst-strcoll-overflow.c: New test case.
44220         * string/Makefile (xtests): Add tst-strcoll-overflow.
44221         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
44222         cache if string sizes may cause integer overflow.
44223
44224         [BZ #14547]
44225         * string/strcoll_l.c (coll_seq): New members rule, idx,
44226         save_idx and back_us.
44227         (get_next_seq_nocache): New function.
44228         (do_compare_nocache): New function.
44229         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
44230         when malloc fails.
44231
44232 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
44233
44234         [BZ #15754]
44235         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
44236         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
44237         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
44238
44239         [BZ #15754]
44240         * elf/Makefile (tests): Add tst-ptrguard1.
44241         (tests-static): Add tst-ptrguard1-static.
44242         (tst-ptrguard1-ARGS): Define.
44243         (tst-ptrguard1-static-ARGS): Define.
44244         * elf/tst-ptrguard1.c: New file.
44245         * elf/tst-ptrguard1-static.c: New file.
44246         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
44247         * sysdeps/i386/stackguard-macros.h: Likewise.
44248         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
44249         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
44250         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
44251         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
44252         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
44253         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
44254
44255 2013-09-23  Hector Marco  <hecmargi@upv.es>
44256             Ismael Ripoll  <iripoll@disca.upv.es>
44257             Carlos O'Donell  <carlos@redhat.com>
44258
44259         [BZ #15754]
44260         * sysdeps/generic/stackguard-macros.h: Define
44261         __pointer_chk_guard_local and POINTER_CHK_GUARD.
44262         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
44263         Define __pointer_chk_guard_local.
44264         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
44265         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
44266
44267 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
44268
44269         [BZ #15859]
44270         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
44271
44272 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
44273
44274         * include/string.h (__ffs): Declare as hidden.
44275         * string/ffs.c (__ffs): Define as hidden.
44276         * sysdeps/i386/ffs.c (__ffs): Likewise.
44277         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
44278         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
44279         * sysdeps/s390/ffs.c (__ffs): Likewise.
44280         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
44281
44282 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
44283
44284         * NEWS: Mention malloc probes.
44285
44286         * malloc/arena.c (new_heap): New memory_heap_new probe.
44287         (grow_heap): New memory_heap_more probe.
44288         (shrink_heap): New memory_heap_less probe.
44289         (heap_trim): New memory_heap_free probe.
44290         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
44291         (systrim): New memory_sbrk_less probe.
44292         * manual/probes.texi: Document them.
44293
44294         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
44295         * manual/probes.texi: Document it.
44296
44297         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
44298         (__libc_realloc): Add memory_realloc_retry probe.
44299         (__libc_memalign): Add memory_memalign_retry probe.
44300         (__libc_valloc): Add memory_valloc_retry probe.
44301         (__libc_pvalloc): Add memory_pvalloc_retry probe.
44302         (__libc_calloc): Add memory_calloc_retry probe.
44303         * manual/probes.texi: Document them.
44304
44305         * malloc/arena.c (get_free_list): Add probe
44306         memory_arena_reuse_free_list.
44307         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
44308         and memory_arena_reuse.
44309         (arena_get2) [!PER_THREAD]: Likewise.
44310         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
44311         memory_arena_reuse_realloc.
44312         * manual/probes.texi: Document them.
44313
44314         * malloc/malloc.c (__libc_free): Add
44315         memory_mallopt_free_dyn_thresholds probe.
44316         (__libc_mallopt): Add multiple memory_mallopt probes.
44317         * manual/probes.texi: Document them.
44318
44319         * malloc/malloc.c: Include stap-probe.h.
44320         (__libc_mallopt): Add memory_mallopt probe.
44321         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
44322         * manual/probes.texi: New.
44323         * manual/Makefile (chapters): Add probes.
44324         * manual/threads.texi: Set next node.
44325
44326 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
44327
44328         [BZ #15963, #13985]
44329         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
44330         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
44331         Add `Chinese' to `nan' entry name.
44332
44333 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44334
44335         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
44336         (POLYNOMIAL): Likewise.
44337         (TAYLOR_SINCOS): Likewise.
44338         (TAYLOR_SLOW): Likewise.
44339         (__sin): Use TAYLOR_SINCOS.
44340         (__cos): Likewise.
44341         (slow): Use TAYLOR_SLOW.
44342         (sloww): Likewise.
44343         (bsloww): Likewise.
44344         (csloww): Likewise.
44345
44346 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44347
44348         * stdlib/strtod_l.c: Fix buffer overrun.
44349
44350 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44351
44352         * benchtests/Makefile (bench): Add sincos.
44353         * benchtests/bench-sincos.c: New file.
44354
44355         * math/libm-test.inc (cos_test_data): New test inputs.
44356         (sin_test_data): Likewise.
44357
44358         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
44359         macro.
44360         (__sin): Use it.
44361         (__cos): Likewise.
44362         (slow1): Likewise.
44363         (slow2): Likewise.
44364         (sloww1): Likewise.
44365         (sloww2): Likewise.
44366         (bsloww1): Likewise.
44367         (bsloww2): Likewise.
44368         (cslow2): Likewise.
44369         (csloww1): Likewise.
44370         (csloww2): Likewise.
44371
44372         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
44373         function.
44374         (__sin): Use it.
44375         (__cos): Likewise.
44376
44377         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
44378         gotos.
44379         (__cos): Likewise.
44380
44381 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
44382
44383         * config.h.in (HAVE_MIPS_NAN2008): New macro.
44384         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
44385         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
44386         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
44387         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
44388         * elf/cache.c (print_entry): Handle the new cache flags.
44389
44390 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44391             Aldy Hernandez  <aldyh@redhat.com>
44392
44393         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
44394         Change condition to [_SOFT_FLOAT].
44395         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
44396         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
44397         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
44398         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
44399         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
44400         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
44401         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
44402         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
44403         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
44404         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
44405         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
44406         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
44407         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
44408         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
44409         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
44410         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
44411         declaration.
44412
44413 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44414
44415         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
44416         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44417         (__longjmp): Use LOAD_GP to load saved GPRs.
44418         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
44419         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44420         (__sigsetjmp): Use SAVE_GP to save GPRs.
44421
44422         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
44423         Do not append -msoft-float.
44424         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
44425
44426 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
44427
44428         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
44429
44430 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
44431
44432         [BZ #15966]
44433         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
44434         (_FPU_GETCW): Use initial "__" on variable and field names but not
44435         on macro parameter name.
44436         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
44437         parentheses around reference to macro parameter.
44438
44439 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
44440
44441         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
44442         prototype.
44443         (ctype_startup): Use uint32_t in cast and sizeof for
44444         ctype->charnames.
44445
44446 2013-09-11  Jia Liu  <proljc@gmail.com>
44447
44448         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
44449         __daddr_t_defined.
44450         [__FreeBSD__]: Likewise.
44451
44452 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
44453
44454         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
44455         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
44456         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
44457         (strchr): Remove __strchr_sse42 ifunc selection.
44458         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
44459         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
44460
44461 2013-09-11  Will Newton  <will.newton@linaro.org>
44462
44463         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
44464         parameter to RES. Remove hardcoded 1000 value.
44465         * benchtests/bench-skeleton.c (main): Pass RES parameter
44466         to TIMING_INIT and multiply result by 1000.
44467
44468 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44469
44470         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44471
44472 2013-09-11  Andreas Schwab  <schwab@suse.de>
44473
44474         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
44475         if not defined.
44476         (O_TMPFILE) [__USE_GNU]: Define.
44477         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
44478         Define.
44479
44480 2013-09-11  Will Newton  <will.newton@linaro.org>
44481
44482         [BZ #15857]
44483         * malloc/malloc.c (__libc_memalign): Check the value of bytes
44484         does not overflow.
44485
44486 2013-09-11  Will Newton  <will.newton@linaro.org>
44487
44488         [BZ #15856]
44489         * malloc/malloc.c (__libc_valloc): Check the value of bytes
44490         does not overflow.
44491
44492 2013-09-11  Will Newton  <will.newton@linaro.org>
44493
44494         [BZ #15855]
44495         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
44496         does not overflow.
44497
44498 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
44499
44500         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
44501         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
44502         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
44503         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
44504         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
44505
44506 2013-09-10  Allan McRae  <allan@archlinux.org>
44507
44508         [BZ #15748]
44509         * manual/arith.texi (Parsing of Floats): Clarify
44510         cross-reference.
44511
44512         [BZ #15849]
44513         * manual/install.texi (Running make install): Mention
44514         --enable-pt-chown.
44515         * INSTALL: Regenerated.
44516
44517 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
44518
44519         * csu/init-first.c (_init): Remove the !SHARED condition around
44520         FPU control word initialization.
44521         * elf/dl-support.c (_dl_fpu_control): New variable.
44522         (_dl_aux_init) <AT_FPUCW>: Initialize it.
44523         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
44524         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
44525         * math/test-fpucw-static.c: New file.
44526         * math/test-fpucw-ieee.c: New file.
44527         * math/test-fpucw-ieee-static.c: New file.
44528         * math/Makefile (tests): Add `test-fpucw-ieee' and
44529         `$(tests-static)'.
44530         (tests-static): New variable.
44531         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
44532         dependency to...
44533         [($(build-shared),yes)]
44534         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
44535         ... this.
44536         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
44537         New dependency.
44538
44539 2013-09-09  Allan McRae  <allan@archlinux.org>
44540
44541         [BZ #15939]
44542         * manual/string.texi (Collation Functions): Fix typo in
44543         strcoll example.
44544         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
44545
44546         [BZ #15893]
44547         * stdlib/isomac.c (get_null_defines): Fix memory leak.
44548
44549         [BZ #15892]
44550         * libio/memstream.c (open_memstream): Fix memory leak.
44551         * libio/wmemstream.c (open_wmemstream): Likewise.
44552
44553         [BZ #15895]
44554         * nscd/netgroupcache.c: Fix nesting of ifdefs.
44555
44556 2013-09-09  Will Newton  <will.newton@linaro.org>
44557
44558         * malloc/Makefile: Add tst-realloc to tests.
44559         * malloc/tst-realloc.c: New file.
44560
44561 2013-09-09  Allan McRae  <allan@archlinux.org>
44562
44563         [BZ #15844]
44564         * COPYING: Update from GNU website to fix FSF address.
44565         * COPYING.LIB: Likewise.
44566
44567 2013-09-06  David S. Miller  <davem@davemloft.net>
44568
44569         * po/zh_TW.po: Update Chinese (traditional) translation from
44570         translation project.
44571
44572 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
44573             Joseph Myers  <joseph@codesourcery.com>
44574
44575         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
44576         "localeinfo.h".
44577         (obstack_chunk_alloc): New macro.
44578         (obstack_chunk_free): Likewise.
44579         (record_offset): New function.
44580         (init_locale_data): Likewise.
44581         (align_locale_data): Likewise.
44582         (add_locale_empty): Likewise.
44583         (add_locale_raw_data): Likewise.
44584         (add_locale_raw_obstack): Likewise.
44585         (add_locale_string): Likewise.
44586         (add_locale_wstring): Likewise.
44587         (add_locale_uint32): Likewise.
44588         (add_locale_uint32_array): Likewise.
44589         (add_locale_char): Likewise.
44590         (start_locale_structure): Likewise.
44591         (end_locale_structure): Likewise.
44592         (start_locale_prelude): Likewise.
44593         (end_locale_prelude): Likewise.
44594         (write_locale_data): Take locale_file structure rather than an
44595         iovec.
44596         * locale/programs/locfile.h: Include "obstack.h".
44597         (struct locale_file): Change to store locale file contents instead
44598         of header.
44599         (init_locale_data): New prototype.
44600         (align_locale_data): Likewise.
44601         (add_locale_empty): Likewise.
44602         (add_locale_raw_data): Likewise.
44603         (add_locale_raw_obstack): Likewise.
44604         (add_locale_string): Likewise.
44605         (add_locale_wstring): Likewise.
44606         (add_locale_uint32): Likewise.
44607         (add_locale_uint32_array): Likewise.
44608         (add_locale_char): Likewise.
44609         (start_locale_structure): Likewise.
44610         (end_locale_structure): Likewise.
44611         (start_locale_prelude): Likewise.
44612         (end_locale_prelude): Likewise.
44613         (write_locale_data): Update prototype.
44614         * locale/programs/3level.h (struct TABLE): Remove result field.
44615         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
44616         Use new locale_file interface.
44617         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
44618         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
44619         * locale/programs/ld-address.c (address_output): Use new
44620         locale_file interface.
44621         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
44622         NO_ADD_LOCALE.
44623         (collate_finish): Don't call collseq_table_finalize.
44624         (collate_output): Use new locale_file interface.
44625         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
44626         in file.
44627         (NO_FINALIZE): Change to NO_ADD_LOCALE.
44628         (TABLE): Move defines earlier in file.
44629         (ELEMENT): Likewise.
44630         (DEFAULT): Likewise.
44631         (wctrans_table_add): Move macro and inline function earlier in
44632         file.
44633         (struct wctype_table): Move type earlier in file.
44634         (add_locale_wctype_table): New static prototype.
44635         (struct locale_ctype_t): Use logical types instead of struct iovec
44636         pointers for members.
44637         (ctype_output): Use new locale_file interface.
44638         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
44639         new locale_file interface.
44640         (allocate_arrays): Update for use of new locale_file interface.
44641         * locale/programs/ld-identification.c (identification_output): Use
44642         new locale_file interface.
44643         * locale/programs/ld-measurement.c (measurement_output): Likewise.
44644         * locale/programs/ld-messages.c (messages_output): Likewise.
44645         * locale/programs/ld-monetary.c (monetary_output): Likewise.
44646         * locale/programs/ld-name.c (name_output): Likewise.
44647         * locale/programs/ld-numeric.c (numeric_output): Likewise.
44648         * locale/programs/ld-paper.c (paper_output): Likewise.
44649         * locale/programs/ld-telephone.c (telephone_output): Likewise.
44650         * locale/programs/ld-time.c (time_output): Likewise.
44651
44652 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44653
44654         * benchtests/Makefile: Add memrchr benchmark.
44655         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
44656         benchmark as memrchr.
44657         * benchtests/bench-memrchr-ifunc.c: New file.
44658         * benchtests/bench-memrchr.c: New file.
44659
44660 2013-09-06   Will Newton  <will.newton@linaro.org>
44661
44662         * benchtests/Makefile (string-bench): Add memcpy.
44663
44664 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
44665             Cong Wang  <amwang@redhat.com>
44666
44667         [BZ #15850]
44668         * sysdeps/unix/sysv/linux/bits/in.h
44669         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
44670         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
44671         before __USE_KERNEL_IPV6_DEFS uses.
44672         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
44673         IPPROTO_BEETPH.
44674         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
44675         sockaddr_in6, or ipv6_mreq.
44676
44677 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44678
44679         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
44680         memory access for final bytes in some large inputs.
44681         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
44682
44683 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44684
44685         * string/test-memrchr.c: New file.
44686         * string/test-memrchr-ifunc.c: New file.
44687         * string/Makefile: Add new memrchr testcase.
44688
44689 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
44690
44691         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
44692         fanotify_init returns EPERM.
44693
44694 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44695
44696         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
44697         errors.
44698         (top level): Treat second token from macro or constant entries for
44699         allowed headers as allowed.
44700         * include/complex.h: Condition internal declarations on
44701         [!_ISOMAC].
44702         * include/fenv.h: Condition include of <stdbool.h> and internal
44703         declarations on [!_ISOMAC].
44704
44705 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
44706
44707         [BZ #15923]
44708         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
44709
44710 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44711
44712         * configure.in (--enable-versioning): Remove configure option.
44713         (libc_cv_asm_symver_directive): Remove configure test.
44714         (libc_cv_ld_version_script_option): Likewise.
44715         (VERSIONING): Remove variable and AC_SUBST.
44716         (DO_VERSIONING): Remove AC_DEFINE.
44717         * configure: Regenerated.
44718         * config.h.in (DO_VERSIONING): Remove macro.
44719         * Makerules [$(versioning) = yes]: Change conditionals to
44720         [$(build-shared) = yes].
44721         * config.make.in (versioning): Remove variable.
44722         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
44723         [$(build-shared) = yes].
44724         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
44725         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
44726         * elf/Makefile [$(versioning) = yes]: Change conditionals to
44727         [$(build-shared) = yes].
44728         * extra-lib.mk [$(versioning) = yes]: Likewise.
44729         * hurd/Makefile [$(versioning) = yes]: Likewise.
44730         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
44731         [SHARED].
44732         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
44733         [SHARED].
44734         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44735         [SHARED && !NO_HIDDEN].
44736         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
44737         [SHARED].
44738         [SHARED && DO_VERSIONING]: Likewise..
44739         * libio/Makefile [$(versioning) = yes]: Change conditionals to
44740         [$(build-shared) = yes].
44741         * manual/install.texi (--disable-versioning): Remove
44742         documentation.
44743         * INSTALL: Regenerated.
44744         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
44745         to [SHARED].
44746         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
44747         [$(build-shared) = yes].
44748         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
44749         * sysdeps/i386/i686/multiarch/strstr-c.c
44750         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44751         [SHARED && !NO_HIDDEN].
44752         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
44753         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
44754         * sysdeps/powerpc/powerpc32/dl-machine.c
44755         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
44756         * sysdeps/powerpc/powerpc32/sysdep.h
44757         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
44758         to [SHARED && PIC && !NO_HIDDEN].
44759         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
44760         conditional to [SHARED].
44761
44762 2013-09-04   Will Newton  <will.newton@linaro.org>
44763
44764         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
44765         * benchtests/bench-string.h: Include bench-timing.h instead
44766         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
44767         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
44768         call to HP_TIMING_DIFF_INIT.
44769         * benchtests/bench-memccpy.c: Use bench-timing.h macros
44770         instead of hp-timing.h macros.
44771         * benchtests/bench-memchr.c: Likewise.
44772         * benchtests/bench-memcmp.c: Likewise.
44773         * benchtests/bench-memcpy.c: Likewise.
44774         * benchtests/bench-memmem.c: Likewise.
44775         * benchtests/bench-memmove.c: Likewise.
44776         * benchtests/bench-memset.c: Likewise.
44777         * benchtests/bench-rawmemchr.c: Likewise.
44778         * benchtests/bench-strcasecmp.c: Likewise.
44779         * benchtests/bench-strcasestr.c: Likewise.
44780         * benchtests/bench-strcat.c: Likewise.
44781         * benchtests/bench-strchr.c: Likewise.
44782         * benchtests/bench-strcmp.c: Likewise.
44783         * benchtests/bench-strcpy.c: Likewise.
44784         * benchtests/bench-strcpy_chk.c: Likewise.
44785         * benchtests/bench-strlen.c: Likewise.
44786         * benchtests/bench-strncasecmp.c: Likewise.
44787         * benchtests/bench-strncat.c: Likewise.
44788         * benchtests/bench-strncmp.c: Likewise.
44789         * benchtests/bench-strncpy.c: Likewise.
44790         * benchtests/bench-strnlen.c: Likewise.
44791         * benchtests/bench-strpbrk.c: Likewise.
44792         * benchtests/bench-strrchr.c: Likewise.
44793         * benchtests/bench-strspn.c: Likewise.
44794         * benchtests/bench-strstr.c: Likewise.
44795
44796 2013-09-04  Will Newton  <will.newton@linaro.org>
44797
44798         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
44799
44800 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
44801
44802         [BZ #15427]
44803         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
44804         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
44805         * math/libm-test.inc (lgamma_test_data): Add more tests.
44806         * sysdeps/i386/fpu/libm-test-ulps: Update.
44807         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44808
44809 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
44810
44811         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
44812         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44813         Add ifunc.
44814         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
44815         Add strcmp-sse2-unaligned
44816         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
44817
44818 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44819
44820         * Versions.def (libc): Add GLIBC_2.19.
44821
44822 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44823
44824         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
44825         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
44826
44827 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
44828
44829         [BZ #14155]
44830         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
44831         intermediate calculations in recurrence.
44832         (__ieee754_ynf): Likewise.
44833         * math/libm-test.inc (jn_test_data): Do not allow spurious
44834         underflow exception.  Add more tests.
44835         (yn_test_data): Add more tests.
44836         * sysdeps/i386/fpu/libm-test-ulps: Update.
44837         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44838
44839 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
44840
44841         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
44842
44843 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44844
44845         * csu/init-first.c: Fix then/than typos.
44846         * locale/programs/ld-collate.c: Likewise.
44847         * locale/programs/linereader.h: Likewise.
44848         * manual/charset.texi: Likewise.
44849         * manual/filesys.texi: Likewise.
44850         * manual/stdio.texi: Likewise.
44851         * manual/string.texi: Likewise.
44852         * stdlib/fmtmsg.c: Likewise.
44853         * sysdeps/i386/stpncpy.S: Likewise.
44854         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
44855         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
44856         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
44857         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44858
44859 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44860
44861         * elf/dl-open.c: Fix typos.
44862         * iconvdata/gbbig5.c: Likewise.
44863         * iconvdata/iso-2022-jp.c: Likewise.
44864         * iconv/gconv_int.h: Likewise.
44865         * iconv/loop.c: Likewise.
44866         * nis/rpcsvc/nis.h: Likewise.
44867         * resolv/ns_name.c: Likewise.
44868         * stdio-common/vfscanf.c: Likewise.
44869         * streams/stropts.h: Likewise.
44870         * sunrpc/rpc_thread.c: Likewise.
44871         * sysdeps/i386/strpbrk.S: Likewise.
44872         * sysdeps/ieee754/k_standard.c: Likewise.
44873         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
44874         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44875         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
44876         * sysdeps/mach/hurd/profil.c: Likewise.
44877         * sysdeps/s390/dl-procinfo.h: Likewise.
44878         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
44879         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
44880         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
44881         * sysdeps/x86_64/dl-trampoline.S: Likewise.
44882         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
44883
44884 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
44885
44886         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
44887         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
44888
44889 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
44890
44891         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
44892         aix specific files.
44893         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
44894         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
44895         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
44896         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
44897         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
44898         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
44899         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
44900         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
44901
44902 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44903             Roland McGrath  <roland@hack.frob.com>
44904
44905         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
44906         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
44907
44908 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44909
44910         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
44911         __executable_start symbol instead of _start.
44912
44913 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44914
44915         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
44916         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
44917         Move macros to...
44918         * sysdeps/gnu/ldsodefs.h: ... this new file.
44919
44920         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
44921         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
44922         instead of ELFOSABI_LINUX.
44923
44924         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
44925         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
44926         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
44927         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
44928         Likewise.
44929         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
44930         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
44931         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
44932         Likewise.
44933         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44934         (ibm_extended_long_double): Add ieee_nan member.
44935         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
44936         (do_test): New function.
44937
44938         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
44939         TEST_TRUNC.
44940         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
44941         functions, renamed from truncdfsf_test, trunctfsf_test,
44942         trunctfdf_test.
44943         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
44944         functions.
44945         (do_test): Run all these.
44946
44947 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
44948
44949         * argp/argp-help.c: Fix typos.
44950         * argp/argp-parse.c: Likewise.
44951         * debug/backtracesyms.c: Likewise.
44952         * elf/elf.h: Likewise.
44953         * malloc/malloc.c: Likewise.
44954         * nis/nis_print.c: Likewise.
44955         * resolv/res_comp.c: Likewise.
44956         * stdlib/stdlib.h: Likewise.
44957         * sunrpc/clnt_tcp.c: Likewise.
44958         * sunrpc/clnt_udp.c: Likewise.
44959         * sunrpc/clnt_unix.c: Likewise.
44960         * sysdeps/unix/bsd/ptsname.c: Likewise.
44961         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
44962         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
44963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
44964         Likewise.
44965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
44966         Likewise.
44967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
44968         Likewise.
44969         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
44970
44971 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
44972
44973         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
44974         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44975
44976 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
44977
44978         [BZ #15897]
44979         * dlfcn/Makefile (tests): Add bug-dl-leaf.
44980         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
44981         ($(objpfx)bug-dl-leaf): New rule.
44982         ($(objpfx)bug-dl-leaf.so): Likewise.
44983         ($(objpfx)bug-dl-leaf.out): Likewise.
44984         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
44985         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
44986         * dlfcn/bug-dl-leaf.c: New test.
44987         * dlfcn/bug-dl-leaf-lib.c: Likewise.
44988         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
44989         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
44990         (dlclose): Likewise.
44991         (dlmopen): Likewise.
44992
44993 2013-08-27  Roland McGrath  <roland@hack.frob.com>
44994
44995         * include/netdb.h [!_ISOMAC]:
44996         Don't include <tls.h>.
44997         (h_errno, __libc_h_errno): Move declaration and macros out of
44998         [_LIBC_REENTRANT].
44999
45000         * include/resolv.h [_RESOLV_H_]:
45001         Don't include <tls.h>.
45002         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
45003         * resolv/res_libc.c: Don't include <tls.h>.
45004         (_res): Use __attribute__ ((nocommon)) in place of
45005         __attribute__ ((section (".bss"))).
45006
45007         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
45008         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
45009
45010         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
45011
45012         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
45013         only under [SIOCGIFCONF && SIOCGIFNETMASK].
45014
45015         * resolv/res_mkquery.c: Include <sys/time.h>.
45016
45017         * inet/ifreq.c: Moved to ...
45018         * sysdeps/unix/ifreq.c: ... here.
45019         * inet/ifreq.c: New file, true stub version.
45020
45021         * socket/sa_len.c: New file.
45022         * socket/Makefile (aux): Add it.
45023         * sysdeps/unix/sysv/linux/Makefile
45024         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
45025         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
45026         and #include <socket/sa_len.c>.
45027         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
45028         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
45029
45030         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
45031         * bits/socket.h: ... here.
45032
45033         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
45034         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
45035         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
45036
45037 2013-08-27  Andreas Schwab  <schwab@suse.de>
45038
45039         [BZ #15736]
45040         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
45041         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
45042         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
45043         * string/test-strcasecmp.c (test_main): Run tests in several
45044         locales.
45045         * string/test-strncasecmp.c (test_main): Likewise.
45046
45047         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
45048         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
45049         to __strcasecmp_nonascii and __strncasecmp_nonascii.
45050         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
45051         (__strncasecmp_ssse3) [PIC]: Likewise.
45052
45053 2013-08-26  Roland McGrath  <roland@hack.frob.com>
45054
45055         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
45056
45057         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
45058         instead of explicitly declaring xdecrypt.
45059         * nis/nss_nis/nis-publickey.c: Likewise.
45060
45061 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45062
45063         [BZ #15890]
45064         * nscd/aicache.c: Include res_hconf.h.
45065         (addhstaiX): Initialize res_hconf.
45066
45067 2013-08-26  Andreas Schwab  <schwab@suse.de>
45068
45069         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
45070         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
45071
45072 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45073
45074         * nscd/aicache.c (addhstaiX): Fix indentation.
45075
45076 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
45077
45078         * configure.ac: Quote $build_pt_chown test.
45079         * configure: Regenerated.
45080
45081 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
45082
45083         [BZ #15532]
45084         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
45085         * math/s_cexpf.c (__cexpf): Likewise.
45086         * math/s_cexpl.c (__cexpl): Likewise.
45087         * math/libm-test.inc (cexp_test_data): Correct expected return
45088         value for NaN + i0.  Add another test.
45089
45090 2013-08-22  David S. Miller  <davem@davemloft.net>
45091
45092         * po/ca.po: Update Catalan translation from translation project.
45093         * po/uk.po: Add Ukrainian translations from translation project.
45094
45095 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
45096
45097         [BZ #15797]
45098         * math/s_fdim.c (__fdim): Check for infinite arguments if result
45099         is infinite, not alongside NaN test.
45100         * math/s_fdimf.c (__fdimf): Likewise.
45101         * math/s_fdiml.c (__fdiml): Likewise.
45102         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
45103         errno is unchanged.
45104
45105 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
45106
45107         * argp/argp-help.c: Fix typos.
45108         * crypt/speeds.c: Likewise.
45109         * csu/check_fds.c: Likewise.
45110         * elf/dl-load.c: Likewise.
45111         * elf/dl-open.c: Likewise.
45112         * elf/reldep3.c: Likewise.
45113         * elf/reldep.c: Likewise.
45114         * elf/sprof.c: Likewise.
45115         * iconv/iconv_charmap.c: Likewise.
45116         * iconv/skeleton.c: Likewise.
45117         * iconv/strtab.c: Likewise.
45118         * io/lockf64.c: Likewise.
45119         * libio/libioP.h: Likewise.
45120         * resolv/gai_notify.c: Likewise.
45121         * resolv/ns_name.c: Likewise.
45122         * resolv/ns_samedomain.c: Likewise.
45123         * resolv/res_send.c: Likewise.
45124         * stdlib/random.c: Likewise.
45125         * sunrpc/rpc/xdr.h: Likewise.
45126         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
45127         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
45128         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
45129         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
45130         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
45131         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
45132         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
45133         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
45134         * sysdeps/mach/hurd/check_fds.c: Likewise.
45135         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
45136         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
45137         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
45138         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
45139         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
45140         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
45141         * sysdeps/pthread/aio_notify.c: Likewise.
45142         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
45143         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
45144         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
45145         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
45146         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
45147
45148 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45149
45150         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
45151         version if bit_Slow_SSE4_2 is set.
45152         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
45153         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
45154
45155 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45156
45157         [BZ #15867]
45158         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
45159         trampoline stack frame information.
45160         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
45161         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
45162         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
45163         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
45164         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
45165         * sysdeps/unix/sysv/linux/powerpc/init-first.c
45166         (_libc_vdso_platform_setup): Initialize the signal trampolines.
45167         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
45168         sa_flags value.
45169         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
45170         interrupting a syscall and set with option SA_SIGINFO.
45171
45172 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
45173
45174         [BZ #15531]
45175         * math/s_cproj.c (__cproj): Only return an infinity if one part of
45176         argument is infinite.
45177         * math/s_cprojf.c (__cprojf): Likewise.
45178         * math/s_cprojl.c (__cprojl): Likewise.
45179         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
45180         * math/libm-test.inc (cproj_test_data): Add more tests.
45181
45182         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
45183
45184         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
45185         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
45186         size.  Use __ffs to determine corresponding shift.
45187
45188 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
45189             Roland McGrath  <roland@hack.frob.com>
45190
45191         * Makefile (INSTALL): Remove trailing blank lines from output of
45192         makeinfo.
45193
45194 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45195
45196         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
45197         Align 32 bit compat elf_greg to 8 bytes.
45198
45199 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
45200
45201         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
45202
45203 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
45204
45205         * string/strcoll_l.c (coll_seq): New structure.
45206         (get_next_seq_cached): New function.
45207         (get_next_seq): New function.
45208         (do_compare): New function.
45209         (STRCOLL): Use GNU style definition.  Simplify implementation
45210         by using get_next_seq, get_next_seq_cached and do_compare.
45211
45212 2013-08-16  Florian Weimer  <fweimer@redhat.com>
45213
45214         [BZ #14699]
45215         CVE-2013-4237
45216         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
45217         member.
45218         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
45219         member.
45220         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
45221         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
45222         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
45223         conditional.
45224         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
45225         GETDENTS_64BIT_ALIGNED.
45226         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
45227         * manual/filesys.texi (Reading/Closing Directory): Document
45228         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
45229         strongly.
45230         * manual/conf.texi (Limits for Files): Add portability note to
45231         NAME_MAX, PATH_MAX.
45232         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
45233
45234 2013-08-13  Andreas Schwab  <schwab@suse.de>
45235
45236         [BZ #15749]
45237         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
45238         of fabs.
45239         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
45240         LDBL_MAX_EXP >= 16384]: Add tests for it.
45241
45242 2013-08-12  David S. Miller  <davem@davemloft.net>
45243
45244         * version.h (RELEASE): Set to "development".
45245         (VERSION): Set to "2.18.90".
45246         * NEWS: Add 2.19 section.
45247
45248 2013-08-03  David S. Miller  <davem@davemloft.net>
45249
45250         * po/ko.po: Update Korean translation from translation project.
45251
45252 2013-08-01  David S. Miller  <davem@davemloft.net>
45253
45254         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
45255         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
45256         Bilka.
45257
45258 2013-07-30  David S. Miller  <davem@davemloft.net>
45259
45260         * po/fr.po: Update French translation from translation project.
45261
45262 2013-07-28  David S. Miller  <davem@davemloft.net>
45263
45264         * po/cs.po: Update Czech translation from translation project.
45265
45266         * po/sv.po: Update Swedish translation from translation project.
45267
45268 2013-07-27  David S. Miller  <davem@davemloft.net>
45269
45270         * po/eo.po: Update Esperanto translation from translation project.
45271
45272         * po/vi.po: Update Vietnamese translation from translation project.
45273
45274         * po/de.po: Update German translation from translation project.
45275
45276 2013-07-26  David S. Miller  <davem@davemloft.net>
45277
45278         * po/bg.po: Update Bulgarian translation from translation project.
45279
45280         * po/nl.po: Update Dutch translation from translation project.
45281         * po/pl.po: Update Polish translation from translation project.
45282         * po/ru.po: Update Russian translation from translation project.
45283
45284 2013-07-24  David S. Miller  <davem@davemloft.net>
45285
45286         * po/libc.pot: Update.
45287
45288 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45289
45290         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
45291         variable page size.
45292         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
45293         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
45294         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
45295
45296 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45297
45298         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
45299
45300 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
45301             Andreas Schwab  <schwab@suse.de>
45302             Roland McGrath  <roland@hack.frob.com>
45303             Joseph Myers  <joseph@codesourcery.com>
45304             Carlos O'Donell  <carlos@redhat.com>
45305
45306         [BZ #15755]
45307         * config.h.in: Define HAVE_PT_CHOWN.
45308         * config.make.in (build-pt-chown): New variable.
45309         * configure.in (--enable-pt_chown): New configure option.
45310         * configure: Regenerate.
45311         * login/Makefile: Include Makeconfig.  Build pt_chown only if
45312         build-pt-chown is enabled.
45313         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
45314         pt_chown to fix pty ownership.
45315         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
45316         CLOSE_ALL_FDS.
45317         * manual/install.texi (Configuring and compiling): Mention
45318         --enable-pt_chown. Add @findex for grantpt.
45319         * INSTALL: Regenerate.
45320
45321 2013-07-20  David S. Miller  <davem@davemloft.net>
45322
45323         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
45324         difference between 32-bit and 64-bit.
45325
45326 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
45327
45328         [BZ #15711]
45329         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
45330         Avoid system header dependency with -ffreestanding.
45331         ($(objpfx)bits/syscall%d): Likewise.
45332
45333 2013-07-13  David S. Miller  <davem@davemloft.net>
45334
45335         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
45336         underflows from atanl/atan2l due to bug 15319.
45337         (casinh_test_data): Likewise.
45338
45339 2013-07-07  David S. Miller  <davem@davemloft.net>
45340
45341         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
45342
45343 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
45344
45345         * sysdeps/i386/fpu/libm-test-ulps: Update.
45346         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45347
45348 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
45349
45350         * configure.in (--enable-lock-elision): Fix message text.
45351         * INSTALL: Regenerate.
45352         * configure: Regenerate.
45353
45354 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45355
45356         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45357
45358 2013-07-03  Andreas Jaeger  <aj@suse.de>
45359
45360         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
45361         define.
45362         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
45363         (ptrace_peeksiginfo_args): Add.
45364         (__ptrace_peeksiginfo_flags): Add.
45365         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
45366         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
45367         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
45368
45369 2013-07-03  Allan McRae  <allan@archlinux.org>
45370
45371         * sysdeps/i386/fpu/libm-test-ulps: Update.
45372
45373 2013-07-02  David S. Miller  <davem@davemloft.net>
45374
45375         * sysdeps/sparc/fpu/libm-test-ulps: Update.
45376
45377 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
45378
45379         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
45380
45381 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45382
45383         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
45384         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45385
45386 2013-07-02  Andi Kleen <ak@linux.intel.com>
45387
45388         * config.h.in (ENABLE_LOCK_ELISION): Add.
45389         * configure.in (--enable-lock-elision): Add option.
45390         * manual/install.texi: Document --enable lock elision.
45391         * configure: Regenerate
45392         * INSTALL: Regenerate.
45393
45394 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
45395
45396         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
45397         SSE4.2 strcasecmp for libc.a.
45398         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
45399
45400 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45401
45402         [BZ #13304]
45403         * soft-fp/op-common.h (_FP_FMA): New macro.
45404         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
45405         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
45406         (_FP_MUL_MEAT_1_imm): ... here.
45407         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
45408         (_FP_MUL_MEAT_1_wide): ... here.
45409         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
45410         (_FP_MUL_MEAT_1_hard): ... here.
45411         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
45412         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
45413         (_FP_MUL_MEAT_2_wide): ... here.
45414         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
45415         (_FP_MUL_MEAT_2_wide_3mul): ... here.
45416         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
45417         (_FP_MUL_MEAT_2_gmp): ... here.
45418         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
45419         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
45420         (_FP_MUL_MEAT_4_wide): ... here.
45421         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
45422         (_FP_MUL_MEAT_4_gmp): ... here.
45423         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
45424         (_FP_WFRACBITS_DW_S): Likewise.
45425         (_FP_WFRACXBITS_DW_S): Likewise.
45426         (_FP_HIGHBIT_DW_S): Likewise.
45427         (FP_FMA_S): Likewise.
45428         (_FP_FRAC_HIGH_DW_S): Likewise.
45429         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
45430         (_FP_WFRACBITS_DW_D): Likewise.
45431         (_FP_WFRACXBITS_DW_D): Likewise.
45432         (_FP_HIGHBIT_DW_D): Likewise.
45433         (FP_FMA_D): Likewise.
45434         (_FP_FRAC_HIGH_DW_D): Likewise.
45435         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
45436         (_FP_WFRACBITS_DW_E): Likewise.
45437         (_FP_WFRACXBITS_DW_E): Likewise.
45438         (_FP_HIGHBIT_DW_E): Likewise.
45439         (FP_FMA_E): Likewise.
45440         (_FP_FRAC_HIGH_DW_E): Likewise.
45441         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
45442         (_FP_WFRACBITS_DW_Q): Likewise.
45443         (_FP_WFRACXBITS_DW_Q): Likewise.
45444         (_FP_HIGHBIT_DW_Q): Likewise.
45445         (FP_FMA_Q): Likewise.
45446         (_FP_FRAC_HIGH_DW_Q): Likewise.
45447         * soft-fp/fmasf4.c: New file.
45448         * soft-fp/fmadf4.c: Likewise.
45449         * soft-fp/fmatf4.c: Likewise.
45450
45451 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45452
45453         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
45454         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
45455         Silvermont.
45456         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
45457         macro.
45458         (index_Slow_SSE4_2): Likewise.
45459         (index_Prefer_PMINUB_for_stringop): Likewise.
45460         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
45461         bit_Slow_SSE4_2 is set.
45462         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
45463         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
45464
45465 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45466
45467         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
45468         rtld_global._dl_hwcap2.
45469         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
45470         POWER8.
45471         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
45472         POWER8 feature descriptions defined in _dl_hwcap2.
45473         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
45474         string handling for POWER8 feature bits.
45475         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
45476         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
45477         _dl_powerpc_cap_flags.
45478         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
45479         * sysdeps/powerpc/rtld-global-offsets.sym
45480         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
45481         _dl_hwcap2 in the rtld_global_ro structure.
45482
45483 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45484
45485         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
45486         hardware capabilities in support of AT_HWCAP2.
45487         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
45488         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
45489         GLRO(dl_hwcap2).
45490         (_dl_show_auxv): Add support for calling _dl_procinfo to display
45491         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
45492         explicitly the unknown a_type display mechanism is used.
45493         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
45494         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
45495         struct member.
45496         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
45497         to macro prototype for AT_HWCAP2 support.
45498         * sysdeps/i386/dl-procinfo.h: Likewise.
45499         * sysdeps/s390/dl-procinfo.h: Likewise.
45500         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
45501         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
45502         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
45503         return -1 for unknown a_type display fallback.
45504         * sysdeps/sparc/dl-procinfo.h: Likewise.
45505         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
45506         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
45507
45508 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
45509
45510         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
45511         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
45512
45513 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
45514
45515         [BZ #12492]
45516         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
45517         mprotect making __stack_prot writable.
45518
45519 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
45520             Joseph Myers  <joseph@codesourcery.com>
45521
45522         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
45523         as being properly aligned.
45524
45525 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
45526
45527         * dlfcn/modstatic5.c: New file.
45528         * dlfcn/tststatic5.c: New file.
45529         * dlfcn/Makefile (tests): Add tststatic5.
45530         (tests-static): Likewise.
45531         (modules-names): Add modstatic5.
45532         (tststatic5-ENV): New variable.
45533         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
45534
45535         [BZ #15022]
45536         * elf/dl-support.c (_dl_main_map): New variable.
45537         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
45538         (_dl_nns, _dl_load_adds): Set to 1.
45539         (_dl_initial_searchlist): Refer to _dl_main_map.
45540         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
45541         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
45542         call to _dl_get_origin.
45543         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
45544         around call_map.
45545         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
45546         * dlfcn/modstatic3.c: New file.
45547         * dlfcn/tststatic3.c: New file.
45548         * dlfcn/tststatic4.c: New file.
45549         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
45550         (tests-static): Likewise.
45551         (modules-names): Add modstatic3.
45552         (tststatic3-ENV, tststatic4-ENV): New variables.
45553         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
45554         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
45555
45556 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
45557
45558         * configure.in (CC): Require GCC version 4.4 or later.
45559         * configure: Regenerated.
45560         * manual/install.texi (Tools for Compilation): Update GCC version
45561         requirement.
45562         * INSTALL: Regenerated.
45563
45564 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45565
45566         [BZ #15674]
45567         * string/test-memcmp.c (check2): New.
45568         (main): Call check2.
45569
45570         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
45571
45572 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
45573
45574         [BZ #15022]
45575         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
45576         over to...
45577         (dl_open_worker) [!SHARED]: ... here.
45578
45579 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45580
45581         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
45582
45583 2013-06-25  Richard Henderson  <rth@redhat.com>
45584
45585         * locale/programs/locarchive.c: Include <libc-internal.h>
45586
45587 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
45588
45589         * manual/texinfo.tex: Update to version 2013-06-21.17, with
45590         trailing whitespace removed.
45591
45592 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45593
45594         [BZ #10283]
45595         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
45596         * locale/programs/locarchive.c: Include libc-mmap.h.
45597         (prepare_address_space): Take two new outputs (the mmap base and len).
45598         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
45599         values.
45600         (create_archive): Declare new mmap base and len values for
45601         prepare_address_space, and store the result in ah.
45602         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
45603         (enlarge_archive): If ah->mmap_base is not NULL, use that and
45604         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45605         Declare new mmap base and len values for
45606         prepare_address_space, and store the result in new_ah.
45607         (open_archive): Declare new mmap base and len values for
45608         prepare_address_space, and store the result in ah.
45609         (close_archive): If ah->mmap_base is not NULL, use that and
45610         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45611         * sysdeps/generic/libc-mmap.h: New file.
45612
45613 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45614
45615         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
45616         (ALIGN_UP): Likewise.
45617         (PTR_ALIGN_DOWN): Likewise.
45618         (PTR_ALIGN_UP): Likewise.
45619
45620 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45621
45622         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
45623         entry mapped to PPC_PLATFORM_POWER8.
45624         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
45625         POWER8.
45626         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
45627         (_dl_string_platform): Add case for exporting platform position for
45628         POWER8.
45629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
45630         search path to sysdeps/powerpc/powerpc32/power8 directory.
45631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
45632         search path to sysdeps/powerpc/powerpc64/power8 directory.
45633         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
45634         power7 directories.
45635         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
45636         power7 directories.
45637
45638 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45639
45640         * INSTALL: Regenerate.
45641
45642         * nscd/connections.c (nscd_init): Fix comment.
45643
45644 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
45645
45646         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
45647
45648         [BZ #15667]
45649         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
45650         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
45651
45652 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45653
45654         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
45655         DL_DST_REQ_STATIC.
45656         (DL_DST_REQ_STATIC): Remove macro.
45657
45658 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
45659
45660         [BZ #7006]
45661         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
45662         with a shift of 0 bits.
45663
45664 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45665
45666         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
45667         $(tststatic-ENV).
45668
45669 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45670
45671         [BZ #15655]
45672         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
45673
45674 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45675
45676         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
45677         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
45678         accepts -fno-tree-loop-distribute-patterns.
45679         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
45680         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
45681         recursive call.
45682         * string/memset.c (memset): Likewise.
45683         * string/test-memmove.c (simple_memmove): Disable loop transformation
45684         to library calls.
45685         * string/test-memset.c (simple_memset): Likewise.
45686         * benchtests/bench-memmove.c (simple_memmove): Likewise.
45687         * benchtests/bench-memset.c (simple_memset): Likewise.
45688         * configure: Regenerated.
45689
45690 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
45691
45692         * math/test-misc.c (main): Ignore fesetround failure when failures
45693         of subsequent rounding tests would be ignored.
45694
45695         [BZ #15654]
45696         * math/fedisblxcpt.c (fedisableexcept): Return 0.
45697         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
45698         * math/fegetenv.c (__fegetenv): Return 0.
45699         * math/fegetexcept.c (fegetexcept): Return 0.
45700         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
45701         FE_TONEAREST.
45702         * math/feholdexcpt.c (feholdexcept): Return 0.
45703         * math/fesetenv.c (__fesetenv): Return 0.
45704         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
45705         argument FE_TONEAREST.
45706         * math/feupdateenv.c (__feupdateenv): Return 0.
45707         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
45708
45709 2013-06-18  Roland McGrath  <roland@hack.frob.com>
45710
45711         * elf/rtld-Rules (rtld-compile-command.S): New variable.
45712         (rtld-compile-command.s, rtld-compile-command.c): New variables.
45713         ($(objpfx)rtld-%.os rules): Use them.
45714
45715 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45716
45717         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
45718         fields.
45719
45720 2013-06-17  Roland McGrath  <roland@hack.frob.com>
45721
45722         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
45723         length of target pattern, then descending length of dependency pattern.
45724         * configure.in (AWK): Require gawk 3.1.2 or newer.
45725         * manual/install.texi (Tools for Compilation): Say that we do.
45726         * configure: Regenerated.
45727
45728         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
45729         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
45730         * scripts/sysd-rules.awk: ... this new script.
45731         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
45732         than a glob-style pattern.
45733
45734 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
45735
45736         * math/test-misc.c (main): Do not treat incorrectly rounded
45737         conversions as failure unless ROUNDING_TESTS passes.
45738
45739 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
45740
45741         [BZ #15631]
45742         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
45743         restore exception state around main square root computation, then
45744         check for inexactness explicitly.
45745
45746         * math/libm-test.inc (fma_test_data): Add another test.
45747
45748 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
45749
45750         * manual/threads.texi (Non-POSIX Extensions): New document
45751         node.  Document pthread_getattr_default_np and
45752         pthread_setattr_default_np.
45753
45754         * Versions.def (libpthread): Add GLIBC_2.18.
45755         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
45756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
45757         Likewise.
45758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
45759         Likewise.
45760         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45761         Likewise.
45762         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45763         Likewise.
45764         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
45765         Likewise.
45766         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
45767         Likewise.
45768         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
45769         Likewise.
45770         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
45771         Likewise.
45772         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
45773         Likewise.
45774
45775 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45776
45777         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45778         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
45779
45780 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
45781             H.J. Lu  <hjl.tools@gmail.com>
45782
45783         [BZ #15627]
45784         * sysdeps/x86_64/rtld-memset.c: Remove file.
45785         * sysdeps/x86_64/rtld-memset.S: New file.
45786
45787 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
45788
45789         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
45790         (test_in_one_mode): Take arguments for whether the rounding mode
45791         is supported for each floating-point type.
45792         (do_test): Pass new arguments to test_in_one_mode using
45793         ROUNDING_TESTS.
45794
45795 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45796
45797         * posix/tst-waitid.c (do_test): Distinguish different instances of
45798         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
45799         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
45800         before entering the kernel for waitpid.
45801
45802 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45803
45804         * NEWS: Fix note on clock function precision.  Text by Roland
45805         McGrath.
45806
45807 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45808
45809         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
45810         it into place only when and if the sanity check passes.
45811
45812 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
45813
45814         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
45815         output for whether conversion result is exact.  Take argument
45816         indicating whether type is IBM long double.
45817         (round_for_all): Change need_exact field to ibm_ld.
45818         * stdlib/tst-strtod-round.c (struct exactness): New type.
45819         (struct test): Change bool ld_ok field to struct exactness exact.
45820         (TEST): Update all definitions for change to field.
45821         (tests): Regenerate array contents.
45822         (test_in_one_mode): Take pointer to new field instead of old ld_ok
45823         field value.  Check for IBM long double here.
45824         (do_test): Update calls to test_in_one_mode.
45825
45826 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45827
45828         [BZ #12515]
45829         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
45830         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
45831
45832 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45833
45834         [BZ #15605]
45835         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
45836         generated by the compiler on loop optimizations.
45837         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
45838         general definitions.
45839
45840 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
45841
45842         * math/bug-nextafter.c: Include <math-tests.h>.
45843         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45844         the relevant type.
45845         * math/bug-nexttoward.c: Include <math-tests.h>.
45846         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45847         the relevant type.
45848         * math/test-misc.c: Include <math-tests.h>.
45849         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45850         the relevant type.
45851
45852 2013-06-12  Andreas Jaeger  <aj@suse.de>
45853
45854         * po/ia.po: Update Interlingua translation from translation
45855         project.
45856
45857 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
45858
45859         * include/fenv.h: Include stdbool.h.
45860         (struct rm_ctx): New structure.
45861         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
45862         Define macro.
45863         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
45864         (SET_RESTORE_ROUNDF): Likewise.
45865         (SET_RESTORE_ROUNDL): Likewise.
45866         (SET_RESTORE_ROUND_NOEX): Likewise.
45867         (SET_RESTORE_ROUND_NOEXF): Likewise.
45868         (SET_RESTORE_ROUND_NOEXL): Likewise.
45869         (SET_RESTORE_ROUND_53BIT): Likewise.
45870         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
45871         (libc_feresetround_noexf_ctx): Likewise.
45872         (libc_feresetround_noexl_ctx): Likewise.
45873         (libc_feholdsetround_53bit_ctx): Likewise.
45874         (libc_feresetround_53bit_ctx): Likewise.
45875         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
45876         (libc_feholdexcept_setround_sse_ctx): New function.
45877         (libc_fesetenv_sse_ctx): Likewise.
45878         (libc_feupdateenv_sse_ctx): Likewise.
45879         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
45880         (libc_feholdexcept_setround_387_ctx): Likewise.
45881         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
45882         (libc_feholdsetround_387_prec_ctx): Likewise.
45883         (libc_feholdsetround_387_ctx): Likewise.
45884         (libc_feholdsetround_387_53bit_ctx): Likewise.
45885         (libc_feholdsetround_sse_ctx): Likewise.
45886         (libc_feresetround_sse_ctx): Likewise.
45887         (libc_feresetround_387_ctx): Likewise.
45888         (libc_feupdateenv_387_ctx): Likewise.
45889         (libc_feholdexcept_setroundf_ctx): Define macro.
45890         (libc_fesetenvf_ctx): Likewise.
45891         (libc_feupdateenvf_ctx): Likewise.
45892         (libc_feholdsetroundf_ctx): Likewise.
45893         (libc_feresetroundf_ctx): Likewise.
45894         (libc_feholdexcept_setround_ctx): Likewise.
45895         (libc_fesetenv_ctx): Likewise.
45896         (libc_feupdateenv_ctx): Likewise.
45897         (libc_feholdsetround_ctx): Likewise.
45898         (libc_feresetround_ctx): Likewise.
45899         (libc_feholdexcept_setroundl_ctx): Likewise.
45900         (libc_feupdateenvl_ctx): Likewise.
45901         (libc_feholdsetroundl_ctx): Likewise.
45902         (libc_feresetroundl_ctx): Likewise.
45903         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
45904         (libc_feresetround_53bit_ctx): Likewise.
45905
45906 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45907
45908         * locale/iso-639.def: Convert to UTF-8.
45909
45910 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
45911
45912         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
45913         (EXCEPTION_TESTS_double): Likewise.
45914         (EXCEPTION_TESTS_long_double): Likewise.
45915         (EXCEPTION_TESTS): Likewise.
45916         * math/libm-test.inc (test_exceptions): Only test exceptions if
45917         EXCEPTION_TESTS (FLOAT).
45918
45919 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45920
45921         * benchtests/Makefile (string-bench): Add strcpy_chk and
45922         stpcpy_chk.
45923         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
45924         * benchtests/bench-stpcpy_chk.c: New file.
45925         * benchtests/bench-strcpy_chk-ifunc.c: New file.
45926         * benchtests/bench-strcpy_chk.c: New file.
45927         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
45928         code.
45929         (do_test): Likewise.
45930
45931 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45932
45933         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
45934         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
45935         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
45936         with tabs where appropriate.
45937         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
45938         dl-procinfo.h.
45939         [PPC_PLATFORM_PPC440]: Likewise.
45940         [PPC_PLATFORM_PPC464]: Likewise.
45941         [PPC_PLATFORM_PPC476]: Likewise.
45942         (_dl_string_platform): Add support for detecting ppc405, ppc440,
45943         ppc464, and ppc476 platform strings merging from ports/
45944         dl-procinfo.h.
45945
45946 2013-06-11  Andreas Schwab  <schwab@suse.de>
45947
45948         [BZ #14991]
45949         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
45950         (from_ucs4_idx): Regenerate.
45951         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
45952         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
45953         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
45954         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
45955         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
45956         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
45957         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
45958         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
45959         from FROM_LOOP and TO_LOOP specific macros.
45960         (BODY): Handle combining characters.
45961         * iconvdata/BIG5HKSCS.irreversible: Update.
45962         * iconvdata/BIG5HKSCS.precomposed: New file.
45963         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
45964         characters.
45965         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
45966
45967 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45968
45969         * include/sys/time.h: Fix indentation and add copyright header.
45970
45971         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
45972         (do_test): Likewise.
45973         * string/test-memchr.c (do_one_test): Likewise.
45974         (do_test): Likewise.
45975         * string/test-memcmp.c (do_one_test): Likewise.
45976         (do_test): Likewise.
45977         * string/test-memcpy.c (do_one_test): Likewise.
45978         (do_test): Likewise.
45979         * string/test-memmem.c (do_one_test): Likewise.
45980         (do_test): Likewise.
45981         (do_random_tests): Likewise.
45982         * string/test-memmove.c (do_one_test): Likewise.
45983         (do_test): Likewise.
45984         * string/test-memset.c (do_one_test): Likewise.
45985         (do_test): Likewise.
45986         * string/test-rawmemchr.c (do_one_test): Likewise.
45987         (do_test): Likewise.
45988         * string/test-strcasecmp.c (do_one_test): Likewise.
45989         (do_test): Likewise.
45990         * string/test-strcasestr.c (do_one_test): Likewise.
45991         (do_test): Likewise.
45992         * string/test-strcat.c (do_one_test): Likewise.
45993         (do_test): Likewise.
45994         * string/test-strchr.c (do_one_test): Likewise.
45995         (do_test): Likewise.
45996         * string/test-strcmp.c (do_one_test): Likewise.
45997         (do_test): Likewise.
45998         * string/test-strcpy.c (do_one_test): Likewise.
45999         (do_test): Likewise.
46000         * string/test-string.h: Likewise.
46001         (test_init): Likewise.
46002         * string/test-strlen.c (do_one_test): Likewise.
46003         (do_test): Likewise.
46004         * string/test-strncasecmp.c (do_one_test): Likewise.
46005         (do_test): Likewise.
46006         * string/test-strncat.c (do_one_test): Likewise.
46007         (do_test): Likewise.
46008         * string/test-strncmp.c (do_one_test): Likewise.
46009         (do_test_limit): Likewise.
46010         (do_test): Likewise.
46011         * string/test-strncpy.c (do_one_test): Likewise.
46012         (do_test): Likewise.
46013         * string/test-strnlen.c (do_one_test): Likewise.
46014         (do_test): Likewise.
46015         * string/test-strpbrk.c (do_one_test): Likewise.
46016         (do_test): Likewise.
46017         * string/test-strrchr.c (do_one_test): Likewise.
46018         (do_test): Likewise.
46019         * string/test-strspn.c (do_one_test): Likewise.
46020         (do_test): Likewise.
46021         * string/test-strstr.c (do_one_test): Likewise.
46022         (do_test): Likewise.
46023
46024         * benchtests/Makefile (string-bench): Add string benchmarks.
46025         * benchtests/bench-bcopy-ifunc.c: New file.
46026         * benchtests/bench-bcopy.c: New file.
46027         * benchtests/bench-bzero-ifunc.c: New file.
46028         * benchtests/bench-bzero.c: New file.
46029         * benchtests/bench-memccpy-ifunc.c: New file.
46030         * benchtests/bench-memccpy.c: New file.
46031         * benchtests/bench-memchr-ifunc.c: New file.
46032         * benchtests/bench-memchr.c: New file.
46033         * benchtests/bench-memcmp-ifunc.c: New file.
46034         * benchtests/bench-memcmp.c: New file.
46035         * benchtests/bench-memmem-ifunc.c: New file.
46036         * benchtests/bench-memmem.c: New file.
46037         * benchtests/bench-memmove-ifunc.c: New file.
46038         * benchtests/bench-memmove.c: New file.
46039         * benchtests/bench-mempcpy-ifunc.c: New file.
46040         * benchtests/bench-mempcpy.c: New file.
46041         * benchtests/bench-memset-ifunc.c: New file.
46042         * benchtests/bench-memset.c: New file.
46043         * benchtests/bench-rawmemchr-ifunc.c: New file.
46044         * benchtests/bench-rawmemchr.c: New file.
46045         * benchtests/bench-stpcpy-ifunc.c: New file.
46046         * benchtests/bench-stpcpy.c: New file.
46047         * benchtests/bench-stpncpy-ifunc.c: New file.
46048         * benchtests/bench-stpncpy.c: New file.
46049         * benchtests/bench-strcasecmp-ifunc.c: New file.
46050         * benchtests/bench-strcasecmp.c: New file.
46051         * benchtests/bench-strcasestr-ifunc.c: New file.
46052         * benchtests/bench-strcasestr.c: New file.
46053         * benchtests/bench-strcat-ifunc.c: New file.
46054         * benchtests/bench-strcat.c: New file.
46055         * benchtests/bench-strchr-ifunc.c: New file.
46056         * benchtests/bench-strchr.c: New file.
46057         * benchtests/bench-strchrnul-ifunc.c: New file.
46058         * benchtests/bench-strchrnul.c: New file.
46059         * benchtests/bench-strcmp-ifunc.c: New file.
46060         * benchtests/bench-strcmp.c: New file.
46061         * benchtests/bench-strcpy-ifunc.c: New file.
46062         * benchtests/bench-strcpy.c: New file.
46063         * benchtests/bench-strcspn-ifunc.c: New file.
46064         * benchtests/bench-strcspn.c: New file.
46065         * benchtests/bench-strlen-ifunc.c: New file.
46066         * benchtests/bench-strlen.c: New file.
46067         * benchtests/bench-strncasecmp-ifunc.c: New file.
46068         * benchtests/bench-strncasecmp.c: New file.
46069         * benchtests/bench-strncat-ifunc.c: New file.
46070         * benchtests/bench-strncat.c: New file.
46071         * benchtests/bench-strncmp-ifunc.c: New file.
46072         * benchtests/bench-strncmp.c: New file.
46073         * benchtests/bench-strncpy-ifunc.c: New file.
46074         * benchtests/bench-strncpy.c: New file.
46075         * benchtests/bench-strnlen-ifunc.c: New file.
46076         * benchtests/bench-strnlen.c: New file.
46077         * benchtests/bench-strpbrk-ifunc.c: New file.
46078         * benchtests/bench-strpbrk.c: New file.
46079         * benchtests/bench-strrchr-ifunc.c: New file.
46080         * benchtests/bench-strrchr.c: New file.
46081         * benchtests/bench-strspn-ifunc.c: New file.
46082         * benchtests/bench-strspn.c: New file.
46083         * benchtests/bench-strstr-ifunc.c: New file.
46084         * benchtests/bench-strstr.c: New file.
46085
46086         * benchtests/Makefile: Disable parallel execution of targets.
46087         (string-bench): Add memcpy.
46088         (benchset): New variable to store a list of benchmark sets.
46089         (bench-func): Renamed from bench.
46090         (bench-set): New target.
46091         (bench): Depend on bench-func and bench-set.
46092         * benchtests/README: Add section on benchmark sets.
46093         * benchtests/bench-memcpy-ifunc.c: New file.
46094         * benchtests/bench-memcpy.c: New file.
46095         * benchtests/bench-string.h: New file.
46096
46097 2013-06-11  Andreas Schwab  <schwab@suse.de>
46098
46099         [BZ #15577]
46100         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
46101         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
46102         values in the triple.
46103         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
46104         terminator in the group key.
46105
46106 2013-06-11  Andreas Jaeger  <aj@suse.de>
46107
46108         * po/zh_TW.po: Update Chinese (traditional) translation from
46109         translation project.
46110
46111 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46112
46113         * include/time.h (__clock_gettime): Add libc_hidden_proto.
46114         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
46115         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
46116         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
46117         (clock_getcpuclockid): Likewise.
46118         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
46119         Add weak_alias and libc_hidden_def.
46120         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
46121         * rt/clock_gettime.c (clock_gettime): Rename to
46122         __clock_gettime.  Add weak_alias and libc_hidden_def.
46123         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
46124         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
46125         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
46126         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
46127         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
46128         Likewise.
46129         * rt/clock_settime.c (clock_settime): Rename to
46130         __clock_settime.  Add weak_alias and libc_hidden_def.
46131         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
46132
46133 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
46134
46135         * mach/err_boot.sub: Remove trailing whitespace.
46136         * mach/err_ipc.sub: Likewise.
46137         * mach/err_mach.sub: Likewise.
46138
46139         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
46140         (ROUNDING_TESTS_double): Likewise.
46141         (ROUNDING_TESTS_long_double): Likewise.
46142         (ROUNDING_TESTS): Likewise.
46143         * math/libm-test.inc: Include <math-tests.h>.
46144         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
46145         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
46146         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
46147         (IF_ROUND_INIT_FE_UPWARD): Likewise.
46148
46149 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
46150
46151         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
46152         of assigning.
46153
46154 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
46155
46156         * sysdeps/gnu/errlist.awk: Do not generate space at end of
46157         otherwise empty TRANS lines.
46158         * sysdeps/gnu/errlist.c: Regenerated.
46159
46160         * catgets/gencat.c (error_print): Use (void) in function
46161         definition.
46162         * crypt/crypt_util.c (__init_des): Likewise.
46163         * crypt/speeds.c (Stop): Likewise.
46164         (main): Likewise.
46165         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
46166         * inet/ruserpass.c (token): Likewise.
46167         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
46168         * intl/localealias.c (extend_alias_table): Likewise.
46169         * intl/plural-exp.c (init_germanic_plural): Likewise.
46170         * libio/fcloseall.c (__fcloseall): Likewise.
46171         * libio/genops.c (_IO_flush_all): Likewise.
46172         (_IO_flush_all_linebuffered): Likewise.
46173         (_IO_cleanup): Likewise.
46174         (_IO_iter_begin): Likewise.
46175         (_IO_iter_end): Likewise.
46176         (_IO_list_lock): Likewise.
46177         (_IO_list_unlock): Likewise.
46178         (_IO_list_resetlock): Likewise.
46179         * libio/getchar.c (getchar): Likewise.
46180         * libio/getchar_u.c (getchar_unlocked): Likewise.
46181         * libio/getwchar.c (getwchar): Likewise.
46182         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
46183         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
46184         * login/getpt.c (__getpt): Likewise.
46185         * login/tst-utmp.c (main): Likewise.
46186         * malloc/hooks.c (__malloc_check_init): Likewise.
46187         * malloc/malloc.c (__malloc_stats): Likewise.
46188         * malloc/mtrace.c (tr_break): Likewise.
46189         (mtrace): Likewise.
46190         (muntrace): Likewise.
46191         * misc/fstab.c (endfsent): Likewise.
46192         * misc/getclktck.c (__getclktck): Likewise.
46193         * misc/getdtsz.c (__getdtablesize): Likewise.
46194         * misc/gethostid.c (gethostid): Likewise.
46195         * misc/getpagesize.c (__getpagesize): Likewise.
46196         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
46197         (__get_nprocs): Likewise.
46198         (__get_phys_pages): Likewise.
46199         (__get_avphys_pages): Likewise.
46200         * misc/getttyent.c (getttyent): Likewise.
46201         (setttyent): Likewise.
46202         (endttyent): Likewise.
46203         * misc/getusershell.c (getusershell): Likewise.
46204         (endusershell): Likewise.
46205         (setusershell): Likewise.
46206         (initshells): Likewise.
46207         * misc/hsearch.c (__hdestroy): Likewise.
46208         * misc/sync.c (sync): Likewise.
46209         * misc/syslog.c (closelog_internal): Likewise.
46210         (closelog): Likewise.
46211         * misc/ttyslot.c (ttyslot): Likewise.
46212         * misc/vhangup.c (vhangup): Likewise.
46213         * posix/fork.c (__fork): Likewise.
46214         * posix/getegid.c (__getegid): Likewise.
46215         * posix/geteuid.c (__geteuid): Likewise.
46216         * posix/getgid.c (__getgid): Likewise.
46217         * posix/getpid.c (__getpid): Likewise.
46218         * posix/getppid.c (__getppid): Likewise.
46219         * posix/getuid.c (__getuid): Likewise.
46220         * posix/pause.c (pause): Likewise.
46221         * posix/setpgrp.c (setpgrp): Likewise.
46222         * posix/setsid.c (__setsid): Likewise.
46223         * posix/test-vfork.c (noop): Likewise.
46224         * resolv/gethnamaddr.c (_endhtent): Likewise.
46225         (_gethtent): Likewise.
46226         (ht_endhostent): Likewise.
46227         (gethostent): Likewise.
46228         (dns_service): Likewise.
46229         * stdlib/drand48.c (drand48): Likewise.
46230         * stdlib/lrand48.c (lrand48): Likewise.
46231         * stdlib/mrand48.c (mrand48): Likewise.
46232         * stdlib/rand.c (rand): Likewise.
46233         * stdlib/random.c (__random): Likewise.
46234         * stdlib/setenv.c (clearenv): Likewise.
46235         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
46236         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
46237         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
46238         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
46239         (__get_nprocs): Likewise.
46240         (__get_phys_pages): Likewise.
46241         (__get_avphys_pages): Likewise.
46242         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
46243         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
46244         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
46245         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
46246         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
46247         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
46248         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
46249         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
46250         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
46251         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
46252         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
46253         * sysdeps/mach/hurd/sync.c (sync): Likewise.
46254         * sysdeps/posix/clock.c (clock): Likewise.
46255         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
46256         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
46257         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
46258         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
46259         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
46260         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
46261         (__get_nprocs_conf): Likewise.
46262         (__get_phys_pages): Likewise.
46263         (__get_avphys_pages): Likewise.
46264         * time/clock.c (clock): Likewise.
46265         * time/tzset.c (__tzname_max): Likewise.
46266
46267 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
46268
46269         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
46270         (__bswap_32): Do not use "register".
46271         * crypt/crypt.c (_ufc_doit_r): Likewise.
46272         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
46273         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
46274         * gmon/gmon.c (__monstartup): Likewise.
46275         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
46276         * hurd/hurdmalloc.c (more_memory): Likewise.
46277         (malloc): Likewise.
46278         (free): Likewise.
46279         (realloc): Likewise.
46280         (malloc_fork_prepare): Likewise.
46281         (malloc_fork_parent): Likewise.
46282         (malloc_fork_child): Likewise.
46283         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
46284         (_svcauth_des): Likewise.
46285         * inet/inet_lnaof.c (inet_lnaof): Likewise.
46286         * inet/inet_net.c (inet_network): Likewise.
46287         * inet/inet_netof.c (inet_netof): Likewise.
46288         * inet/rcmd.c (__validuser2_sa): Likewise.
46289         * io/fts.c (fts_open): Likewise.
46290         (fts_load): Likewise.
46291         (fts_close): Likewise.
46292         (fts_read): Likewise.
46293         (fts_children): Likewise.
46294         (fts_build): Likewise.
46295         (fts_stat): Likewise.
46296         (fts_sort): Likewise.
46297         (fts_alloc): Likewise.
46298         (fts_lfree): Likewise.
46299         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
46300         (_IO_file_xsgetn): Likewise.
46301         (_IO_file_xsgetn_mmap): Likewise.
46302         * libio/iofopncook.c (_IO_cookie_read): Likewise.
46303         (_IO_cookie_write): Likewise.
46304         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
46305         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
46306         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
46307         * malloc/obstack.c (_obstack_begin): Likewise.
46308         (_obstack_begin_1): Likewise.
46309         (_obstack_newchunk): Likewise.
46310         (_obstack_allocated_p): Likewise.
46311         (obstack_free): Likewise.
46312         (_obstack_memory_used): Likewise.
46313         * misc/getttyent.c (getttynam): Likewise.
46314         (getttyent): Likewise.
46315         (skip): Likewise.
46316         (value): Likewise.
46317         * misc/getusershell.c (initshells): Likewise.
46318         * misc/syslog.c (__vsyslog_chk): Likewise.
46319         * misc/ttyslot.c (ttyslot): Likewise.
46320         * nis/nis_hash.c (__nis_hash): Likewise.
46321         * posix/fnmatch_loop.c (FCT): Likewise.
46322         * posix/getconf.c (print_all): Likewise.
46323         (main): Likewise.
46324         * posix/getopt.c (exchange): Likewise.
46325         * posix/glob.c (globfree): Likewise.
46326         (prefix_array): Likewise.
46327         (__glob_pattern_type): Likewise.
46328         * resolv/arpa/nameser.h (NS_GET16): Likewise.
46329         (NS_GET32): Likewise.
46330         (NS_PUT16): Likewise.
46331         (NS_PUT32): Likewise.
46332         * resolv/gethnamaddr.c (getanswer): Likewise.
46333         (gethostbyname2): Likewise.
46334         (gethostbyaddr): Likewise.
46335         (_gethtent): Likewise.
46336         (_gethtbyname2): Likewise.
46337         (_gethtbyaddr): Likewise.
46338         * resolv/ns_print.c (dst_s_get_int16): Likewise.
46339         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
46340         * resolv/res_init.c (__res_vinit): Likewise.
46341         (net_mask): Likewise.
46342         * resolv/res_mkquery.c (outchar): Likewise.
46343         (PRINT): Likewise.
46344         * stdio-common/printf_fp.c (outchar): Likewise.
46345         (PRINT): Likewise.
46346         * stdio-common/printf_fphex.c (outchar): Likewise.
46347         (PRINT): Likewise.
46348         * stdio-common/printf_size.c (outchar): Likewise.
46349         (PRINT): Likewise.
46350         * stdio-common/test_rdwr.c (main): Likewise.
46351         * stdio-common/tfformat.c (matches): Likewise.
46352         * stdio-common/vfprintf.c (outchar): Likewise.
46353         (printf_unknown): Likewise.
46354         (buffered_vfprintf): Likewise.
46355         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
46356         * stdio-common/xbug.c (AppendToBuffer): Likewise.
46357         (ReadFile): Likewise.
46358         * stdlib/qsort.c (SWAP): Likewise.
46359         (_quicksort): Likewise.
46360         * stdlib/setenv.c (__add_to_environ): Likewise.
46361         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
46362         * stdlib/strtol_l.c (__strtol_l): Likewise.
46363         * stdlib/tst-strtod.c (main): Likewise.
46364         * stdlib/tst-strtol.c (main): Likewise.
46365         * stdlib/tst-strtoll.c (main): Likewise.
46366         * string/bits/string2.h (__strcmp_cc): Likewise.
46367         (__strcmp_cg): Likewise.
46368         (__strcspn_c1): Likewise.
46369         (__strcspn_c2): Likewise.
46370         (__strcspn_c3): Likewise.
46371         (__strspn_c1): Likewise.
46372         (__strspn_c2): Likewise.
46373         (__strspn_c3): Likewise.
46374         (__strsep_1c): Likewise.
46375         (__strsep_2c): Likewise.
46376         (__strsep_3c): Likewise.
46377         * string/memccpy.c (__memccpy): Likewise.
46378         * string/stpcpy.c (__stpcpy): Likewise.
46379         * string/strcmp.c (strcmp): Likewise.
46380         * string/strrchr.c (strrchr): Likewise.
46381         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
46382         Likewise.
46383         * sysdeps/mach/hurd/getcwd.c
46384         (_hurd_canonicalize_directory_name_internal): Likewise.
46385         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
46386         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
46387         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
46388         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
46389         Likewise, in both definitions.
46390         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
46391         definitions.
46392         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
46393         64] (__bswap_64): Likewise.
46394         * time/test_time.c (main): Likewise.
46395         * time/tzfile.c (__tzfile_read): Likewise.
46396         (__tzfile_compute): Likewise.
46397         * time/tzset.c (__tzset_parse_tz): Likewise.
46398         (tzset_internal): Likewise.
46399         (compute_change): Likewise.
46400         * wcsmbs/wcscat.c (__wcscat): Likewise.
46401         * wcsmbs/wcschr.c (wcschr): Likewise.
46402         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
46403         * wcsmbs/wcscspn.c (wcscspn): Likewise.
46404         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
46405         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
46406         * wcsmbs/wcsspn.c (wcsspn): Likewise.
46407         * wcsmbs/wcsstr.c (wcsstr): Likewise.
46408         * wcsmbs/wmemchr.c (wmemchr): Likewise.
46409         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
46410         * wcsmbs/wmemset.c (wmemset): Likewise.
46411
46412 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
46413
46414         * scripts/config.guess: Update to version 2013-05-16.
46415         * scripts/config.sub: Update to version 2013-04-24.
46416         * scripts/install-sh: Update to version 2011-11-20.07.
46417         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
46418         * scripts/move-if-change: Update to version 2012-01-06 07:23.
46419
46420 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
46421
46422         * debug/fgetws_u_chk.c: Fix leading whitespaces.
46423         * elf/sln.c: Likewise.
46424         * hurd/hurd/ioctl.h: Likewise.
46425         * hurd/hurdmalloc.c: Likewise.
46426         * hurd/xattr.c: Likewise.
46427         * include/shlib-compat.h: Likewise.
46428         * inet/ruserpass.c: Likewise.
46429         * libio/iofgets_u.c: Likewise.
46430         * libio/iofgetws_u.c: Likewise.
46431         * locale/programs/ld-identification.c: Likewise.
46432         * locale/programs/ld-time.c: Likewise.
46433         * mach/msg-destroy.c: Likewise.
46434         * nss/nss_files/files-netgrp.c: Likewise.
46435         * resolv/res_data.c: Likewise.
46436         * soft-fp/op-1.h: Likewise.
46437         * soft-fp/op-2.h: Likewise.
46438         * soft-fp/op-4.h: Likewise.
46439         * soft-fp/op-common.h: Likewise.
46440         * stdio-common/printf_fphex.c: Likewise.
46441         * stdlib/strtod_l.c: Likewise.
46442         * sunrpc/rpc/clnt.h: Likewise.
46443         * sysdeps/generic/framestate.c: Likewise.
46444         * sysdeps/i386/bsd-_setjmp.S: Likewise.
46445         * sysdeps/i386/bsd-setjmp.S: Likewise.
46446         * sysdeps/i386/__longjmp.S: Likewise.
46447         * sysdeps/i386/setjmp.S: Likewise.
46448         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
46449         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
46450         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46451         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
46452         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
46453         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
46454         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
46455         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
46456         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
46457         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
46458         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
46459         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
46460         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
46461         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
46462         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
46463         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
46464         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
46465         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
46466         * sysdeps/ieee754/support.c: Likewise.
46467         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
46468         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
46469         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
46470         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
46471         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
46472         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
46473         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
46474         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
46475         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
46476         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
46477         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
46478         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
46479         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
46480         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
46481         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
46482         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
46483         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
46484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
46485
46486 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
46487
46488         * posix/transbug.c: Remove executable mode.
46489
46490 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
46491
46492         * crypt/speeds.c: Remove trailing whitespace.
46493         * dlfcn/default.c: Likewise.
46494         * elf/ifuncdep2.c: Likewise.
46495         * elf/ifuncmain1.c: Likewise.
46496         * elf/ifuncmain1vis.c: Likewise.
46497         * elf/testobj.h: Likewise.
46498         * elf/tst-stackguard1.c: Likewise.
46499         * gmon/sys/gmon.h: Likewise.
46500         * hurd/hurdmsg.c: Likewise.
46501         * hurd/new-fd.c: Likewise.
46502         * hurd/ports-get.c: Likewise.
46503         * iconvdata/ibm1008_420.c: Likewise.
46504         * inet/tst-getni1.c: Likewise.
46505         * inet/tst-getni2.c: Likewise.
46506         * libio/ioungetc.c: Likewise.
46507         * libio/wfiledoalloc.c: Likewise.
46508         * manual/libm-err-tab.pl: Likewise.
46509         * math/w_dremf.c: Likewise.
46510         * misc/ftruncate.c: Likewise.
46511         * posix/bug-glob2.c: Likewise.
46512         * posix/tst-pcre.c: Likewise.
46513         * posix/wait4.c: Likewise.
46514         * resolv/README: Likewise.
46515         * resolv/res_debug.h: Likewise.
46516         * resolv/tst-inet_ntop.c: Likewise.
46517         * setjmp/bug269-setjmp.c: Likewise.
46518         * soft-fp/extended.h: Likewise.
46519         * soft-fp/op-1.h: Likewise.
46520         * soft-fp/op-2.h: Likewise.
46521         * soft-fp/op-4.h: Likewise.
46522         * soft-fp/op-8.h: Likewise.
46523         * soft-fp/testit.c: Likewise.
46524         * stdio-common/bug16.c: Likewise.
46525         * stdlib/random.c: Likewise.
46526         * sunrpc/rpcsvc/rquota.x: Likewise.
46527         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
46528         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
46529         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46530         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
46531         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
46532         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
46533         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
46534         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
46535         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
46536         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
46537         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
46538         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
46539         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
46540         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
46541         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
46542         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
46543         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
46544         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
46545         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
46546         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
46547         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
46548         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
46549         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
46550         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
46551         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
46552         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
46553         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
46554         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
46555         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
46556         * sysdeps/ieee754/s_lib_version.c: Likewise.
46557         * sysdeps/mach/hurd/check_fds.c: Likewise.
46558         * sysdeps/mach/hurd/getsockname.c: Likewise.
46559         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
46560         * sysdeps/mach/hurd/recvfrom.c: Likewise.
46561         * sysdeps/powerpc/bits/link.h: Likewise.
46562         * sysdeps/powerpc/dl-procinfo.c: Likewise.
46563         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
46564         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
46565         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
46566         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
46567         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
46568         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
46569         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
46570         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
46571         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
46572         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
46573         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
46574         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
46575         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
46576         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
46577         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
46578         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
46579         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
46580         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
46581         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
46582         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
46583         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
46584         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
46585         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
46586         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
46587         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
46588         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
46589         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
46590         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
46591         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
46592         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
46593         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
46594         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
46595         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
46596         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
46597         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
46598         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
46599         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
46600         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
46601         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
46602         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
46603         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
46604         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
46605         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
46606         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
46607         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
46608         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
46609         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
46610         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
46611         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
46612         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46613         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46614         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
46615         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
46616         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
46617         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
46618         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
46619         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
46620         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
46621         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
46622         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
46623         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
46624         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
46625         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
46626         * sysdeps/powerpc/sysdep.h: Likewise.
46627         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
46628         * sysdeps/s390/s390-64/sub_n.S: Likewise.
46629         * sysdeps/sh/dl-trampoline.S: Likewise.
46630         * sysdeps/sh/memset.S: Likewise.
46631         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
46632         * sysdeps/sh/strlen.S: Likewise.
46633         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
46634         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
46635         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
46636         * sysdeps/sparc/sparc32/rem.S: Likewise.
46637         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
46638         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
46639         * sysdeps/sparc/sparc32/strchr.S: Likewise.
46640         * sysdeps/sparc/sparc32/udiv.S: Likewise.
46641         * sysdeps/sparc/sparc32/urem.S: Likewise.
46642         * sysdeps/sparc/sparc64/add_n.S: Likewise.
46643         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
46644         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
46645         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
46646         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
46647         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
46648         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
46649         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
46650         * sysdeps/unix/bsd/times.c: Likewise.
46651         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
46652         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
46653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
46654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
46655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
46656         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
46657         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
46658         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
46659         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
46660         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
46661         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
46662         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
46663         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
46664         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
46665         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
46666         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
46667         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
46668         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
46669         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
46670         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
46671         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
46672         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
46673         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
46674         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
46675         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
46676         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
46677         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
46678         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
46679         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
46680         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
46681         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
46682         * sysdeps/x86_64/strcspn.S: Likewise.
46683
46684 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46685
46686         * locale/C-translit.h: Revert #include <stdint.h> because this is a
46687         generated file.  Regenerate properly from gen-translit.pl.
46688         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
46689         locale/C-translit.h.
46690
46691 2013-06-05  Andreas Schwab  <schwab@suse.de>
46692
46693         [BZ #15100]
46694         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
46695         week as 6 instead of -1.
46696         * time/tst-strptime.c (day_tests): Add test case.
46697
46698 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
46699
46700         * sysdeps/generic/math_private.h
46701         (libc_feholdexcept_setround_53bit): Replace with
46702         libc_feholdsetround_53bit.
46703         (libc_feupdateenv_53bit): Replace with
46704         libc_feresetround_53bit.
46705         (SET_RESTORE_ROUND_53BIT): Adjust.
46706
46707 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
46708
46709         * string/test-strchrnul.c: Add copyright header.
46710
46711         * posix/tst-getaddrinfo4.c: Increase test timeout.
46712
46713 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
46714
46715         [BZ #15536]
46716         * math/libm-test.inc (MAX_EXP): Remove
46717         (MIN_EXP): Define.
46718         (ulp): Use MIN_EXP - MANT_DIG.
46719         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
46720
46721 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
46722
46723         * po/be.po: Revert last change.
46724         * po/zh_CN.po: Likewise.
46725         * po/header.pot: Likewise.
46726
46727 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
46728
46729         * Makefile ($(common-objpfx)linkobj/libc.so): Define
46730         link-libc-deps to empty as target-specific variable.
46731         * Makerules (link-libc-args): New variable.
46732         (libc-for-link): Likewise.
46733         (link-libc-deps): Likewise.
46734         (lib%.so): Depend on $(link-libc-deps).  Link with
46735         $(link-libc-args).
46736         (build-module): Link with $(link-libc-args).
46737         (build-module-asneeded): Likewise.
46738         (build-module-helper-objlist): Filter out $(link-libc-deps) from
46739         list of objects.
46740         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
46741         target-specific variable.
46742         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
46743         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
46744         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
46745         libc.
46746         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
46747         libc and ld.so.
46748         ($(objpfx)libpcprofile.so): Likewise.
46749         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
46750         libc_nonshared.a.
46751         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
46752         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
46753         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
46754         $(link-libc-deps).
46755         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
46756         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
46757         * login/Makefile ($(objpfx)libutil.so): Likewise.
46758         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
46759         * math/Makefile ($(objpfx)libm.so): Likewise.
46760         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
46761         $(objpfx)libnsl.so): Define libc-for-link as target-specific
46762         variable instead of depending directly on libc.
46763         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
46764         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
46765         $(link-libc-deps).
46766         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
46767         libc.
46768         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
46769         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
46770         ($(objpfx)libanl.so): Likewise.
46771         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
46772         ld.so.
46773         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
46774         $(link-libc-deps).
46775         * sysdeps/i386/fpu/Makefile: Remove file.
46776         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
46777         ($(objpfx)libm.so): Remove dependency on ld.so.
46778
46779 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
46780
46781         [BZ # 15553]
46782         * nis/yp_xdr.c (XDRMAXNAME): Define.
46783         (XDRMAXRECORD): Define.
46784         (xdr_domainname): Use XDRMAXNAME.
46785         (xdr_mapname): Likewise.
46786         (xdr_peername): Likewise.
46787         (xdr_keydat): Use XDRMAXRECORD.
46788         (xdr_valdat): Likewise.
46789
46790 2013-05-30  Jeff Law  <law@redhat.com>
46791
46792         [BZ #14256]
46793         * manual/errno.texi (ESTALE): Update to account for more than
46794         just NFS file systems.
46795         * sysdeps/gnu/errlist.c: Regenerated.
46796
46797 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
46798
46799         [BZ #15465]
46800         * elf/Makefile (tests): Add tst-null-argv.
46801         (modules-names):  Add tst-null-argv-lib.
46802         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
46803         (tst-null-argv-ENV): Set environment for tst-null-argv.
46804         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
46805         (RTLD_PROGNAME): New macro.
46806         * elf/tst-null-argv.c: New test case.
46807         * elf/tst-null-argv-lib.c: Library for test case.
46808         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
46809         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
46810         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
46811         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
46812         * elf/dl-init.c (call_init): Likewise.
46813         (_dl_init): Likewise.
46814         * elf/dl-load.c (print_search_path): Likewise.
46815         (_dl_map_object): Likewise.
46816         * elf/dl-lookup.c (do_lookup_x): Likewise.
46817         (add_dependency): Likewise.
46818         (_dl_lookup_symbol_x): Likewise.
46819         (_dl_debug_bindings): Likewise.
46820         * elf/dl-open.c (_dl_show_scope): Likewise.
46821         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
46822         * elf/dl-version.c (match_symbol): Likewise.
46823         (_dl_check_map_versions): Likewise.
46824         * elf/rtld.c (dl_main): Likewise.
46825         (print_unresolved): Use RTLD_PROGNAME.
46826         (print_missing_version): Likewise.
46827         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
46828         (elf_machine_rela): Likewise.
46829         * sysdeps/powerpc/powerpc32/dl-machine.c
46830         (__process_machine_rela): Likewise.
46831         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46832         Likewise.
46833         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
46834         Likewise.
46835         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
46836         Likewise.
46837         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
46838         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
46839         Likewise.
46840         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
46841         Likewise.
46842         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
46843
46844 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
46845
46846         * po/be.po: Add descriptive title.
46847         * po/zh_CN.po: Likewise.
46848         * po/header.pot: Likewise.
46849
46850 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
46851
46852         * locale/programs/locarchive.c (create_archive): Inlucde fname in
46853         error message.
46854         (enlarge_archive): Likewise.
46855
46856 2013-05-28  Ben North  <ben@redfrontdoor.org>
46857
46858         * manual/arith.texi (frexp): It is the magnitude of the return
46859         value which lies in [0.5, 1), not the return value itself.
46860
46861 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46862
46863         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46864
46865 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
46866
46867         * stdio-common/bug26.c (main): Correct fscanf template.
46868
46869         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
46870         declare _dl_skip_args.
46871
46872         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
46873         Don't declare.
46874
46875         * manual/platform.texi: Add missing @end deftypefun.
46876
46877 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46878
46879         [BZ #15529]
46880         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
46881         bit of mantissa of 2^16382.
46882         * math/libm-test.inc (hypot_test_data): Add more tests.
46883
46884         * math/libm-test.inc: Add drem and pow10 to list of tested
46885         functions.
46886         (pow10_test): New function.
46887         (drem_test): Likewise.
46888         (drem_test_tonearest): Likewise.
46889         (drem_test_towardzero): Likewise.
46890         (drem_test_downward): Likewise.
46891         (drem_test_upward): Likewise.
46892         (main): Call the new functions.
46893
46894         * math/libm-test.inc (finite_test_data): Remove.
46895         (finite_test): Run tests from isfinite_test_data.
46896         (gamma_test_data): Remove.
46897         (gamma_test): Run tests from lgamma_test_data.
46898         * sysdeps/i386/fpu/libm-test-ulps: Update.
46899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46900
46901 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46902
46903         * manual/platform.texi: Add PowerPC PPR function set documentation.
46904         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
46905         implementation.
46906
46907 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
46908
46909         * math/libm-test.inc (MAX_EXP): Define.
46910         (ULPDIFF): Define.
46911         (ulp): New function.
46912         (check_float_internal): Use ULPDIFF.
46913         (cpow_test): Disable failing test.
46914         (check_ulp): Test ulp() implemetnation.
46915         (main): Call check_ulp before starting tests.
46916
46917 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46918
46919         * math/gen-libm-test.pl (generate_testfile): Do not handle
46920         START_DATA and END_DATA.
46921         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
46922         END_DATA.
46923         (acos_tonearest_test_data): Likewise.
46924         (acos_towardzero_test_data): Likewise.
46925         (acos_downward_test_data): Likewise.
46926         (acos_upward_test_data): Likewise.
46927         (acosh_test_data): Likewise.
46928         (asin_test_data): Likewise.
46929         (asin_tonearest_test_data): Likewise.
46930         (asin_towardzero_test_data): Likewise.
46931         (asin_downward_test_data): Likewise.
46932         (asin_upward_test_data): Likewise.
46933         (asinh_test_data): Likewise.
46934         (atan_test_data): Likewise.
46935         (atanh_test_data): Likewise.
46936         (atan2_test_data): Likewise.
46937         (cabs_test_data): Likewise.
46938         (cacos_test_data): Likewise.
46939         (cacosh_test_data): Likewise.
46940         (carg_test_data): Likewise.
46941         (casin_test_data): Likewise.
46942         (casinh_test_data): Likewise.
46943         (catan_test_data): Likewise.
46944         (catanh_test_data): Likewise.
46945         (cbrt_test_data): Likewise.
46946         (ccos_test_data): Likewise.
46947         (ccosh_test_data): Likewise.
46948         (ceil_test_data): Likewise.
46949         (cexp_test_data): Likewise.
46950         (cimag_test_data): Likewise.
46951         (clog_test_data): Likewise.
46952         (clog10_test_data): Likewise.
46953         (conj_test_data): Likewise.
46954         (copysign_test_data): Likewise.
46955         (cos_test_data): Likewise.
46956         (cos_tonearest_test_data): Likewise.
46957         (cos_towardzero_test_data): Likewise.
46958         (cos_downward_test_data): Likewise.
46959         (cos_upward_test_data): Likewise.
46960         (cosh_test_data): Likewise.
46961         (cosh_tonearest_test_data): Likewise.
46962         (cosh_towardzero_test_data): Likewise.
46963         (cosh_downward_test_data): Likewise.
46964         (cosh_upward_test_data): Likewise.
46965         (cpow_test_data): Likewise.
46966         (cproj_test_data): Likewise.
46967         (creal_test_data): Likewise.
46968         (csin_test_data): Likewise.
46969         (csinh_test_data): Likewise.
46970         (csqrt_test_data): Likewise.
46971         (ctan_test_data): Likewise.
46972         (ctan_tonearest_test_data): Likewise.
46973         (ctan_towardzero_test_data): Likewise.
46974         (ctan_downward_test_data): Likewise.
46975         (ctan_upward_test_data): Likewise.
46976         (ctanh_test_data): Likewise.
46977         (ctanh_tonearest_test_data): Likewise.
46978         (ctanh_towardzero_test_data): Likewise.
46979         (ctanh_downward_test_data): Likewise.
46980         (ctanh_upward_test_data): Likewise.
46981         (erf_test_data): Likewise.
46982         (erfc_test_data): Likewise.
46983         (exp_test_data): Likewise.
46984         (exp_tonearest_test_data): Likewise.
46985         (exp_towardzero_test_data): Likewise.
46986         (exp_downward_test_data): Likewise.
46987         (exp_upward_test_data): Likewise.
46988         (exp10_test_data): Likewise.
46989         (exp2_test_data): Likewise.
46990         (expm1_test_data): Likewise.
46991         (fabs_test_data): Likewise.
46992         (fdim_test_data): Likewise.
46993         (finite_test_data): Likewise.
46994         (floor_test_data): Likewise.
46995         (fma_test_data): Likewise.
46996         (fma_towardzero_test_data): Likewise.
46997         (fma_downward_test_data): Likewise.
46998         (fma_upward_test_data): Likewise.
46999         (fmax_test_data): Likewise.
47000         (fmin_test_data): Likewise.
47001         (fmod_test_data): Likewise.
47002         (fpclassify_test_data): Likewise.
47003         (frexp_test_data): Likewise.
47004         (gamma_test_data): Likewise.
47005         (hypot_test_data): Likewise.
47006         (ilogb_test_data): Likewise.
47007         (isfinite_test_data): Likewise.
47008         (isgreater_test_data): Likewise.
47009         (isgreaterequal_test_data): Likewise.
47010         (isinf_test_data): Likewise.
47011         (isless_test_data): Likewise.
47012         (islessequal_test_data): Likewise.
47013         (islessgreater_test_data): Likewise.
47014         (isnan_test_data): Likewise.
47015         (isnormal_test_data): Likewise.
47016         (issignaling_test_data): Likewise.
47017         (isunordered_test_data): Likewise.
47018         (j0_test_data): Likewise.
47019         (j1_test_data): Likewise.
47020         (jn_test_data): Likewise.
47021         (ldexp_test_data): Likewise.
47022         (lgamma_test_data): Likewise.
47023         (lrint_test_data): Likewise.
47024         (lrint_tonearest_test_data): Likewise.
47025         (lrint_towardzero_test_data): Likewise.
47026         (lrint_downward_test_data): Likewise.
47027         (lrint_upward_test_data): Likewise.
47028         (llrint_test_data): Likewise.
47029         (llrint_tonearest_test_data): Likewise.
47030         (llrint_towardzero_test_data): Likewise.
47031         (llrint_downward_test_data): Likewise.
47032         (llrint_upward_test_data): Likewise.
47033         (log_test_data): Likewise.
47034         (log10_test_data): Likewise.
47035         (log1p_test_data): Likewise.
47036         (log2_test_data): Likewise.
47037         (logb_test_data): Likewise.
47038         (logb_downward_test_data): Likewise.
47039         (lround_test_data): Likewise.
47040         (llround_test_data): Likewise.
47041         (modf_test_data): Likewise.
47042         (nearbyint_test_data): Likewise.
47043         (nextafter_test_data): Likewise.
47044         (nexttoward_test_data): Likewise.
47045         (pow_test_data): Likewise.
47046         (pow_tonearest_test_data): Likewise.
47047         (pow_towardzero_test_data): Likewise.
47048         (pow_downward_test_data): Likewise.
47049         (pow_upward_test_data): Likewise.
47050         (remainder_test_data): Likewise.
47051         (remainder_tonearest_test_data): Likewise.
47052         (remainder_towardzero_test_data): Likewise.
47053         (remainder_downward_test_data): Likewise.
47054         (remainder_upward_test_data): Likewise.
47055         (remquo_test_data): Likewise.
47056         (rint_test_data): Likewise.
47057         (rint_tonearest_test_data): Likewise.
47058         (rint_towardzero_test_data): Likewise.
47059         (rint_downward_test_data): Likewise.
47060         (rint_upward_test_data): Likewise.
47061         (round_test_data): Likewise.
47062         (scalb_test_data): Likewise.
47063         (scalbn_test_data): Likewise.
47064         (scalbln_test_data): Likewise.
47065         (signbit_test_data): Likewise.
47066         (sin_test_data): Likewise.
47067         (sin_tonearest_test_data): Likewise.
47068         (sin_towardzero_test_data): Likewise.
47069         (sin_downward_test_data): Likewise.
47070         (sin_upward_test_data): Likewise.
47071         (sincos_test_data): Likewise.
47072         (sinh_test_data): Likewise.
47073         (sinh_tonearest_test_data): Likewise.
47074         (sinh_towardzero_test_data): Likewise.
47075         (sinh_downward_test_data): Likewise.
47076         (sinh_upward_test_data): Likewise.
47077         (sqrt_test_data): Likewise.
47078         (tan_test_data): Likewise.
47079         (tan_tonearest_test_data): Likewise.
47080         (tan_towardzero_test_data): Likewise.
47081         (tan_downward_test_data): Likewise.
47082         (tan_upward_test_data): Likewise.
47083         (tanh_test_data): Likewise.
47084         (tgamma_test_data): Likewise.
47085         (trunc_test_data): Likewise.
47086         (y0_test_data): Likewise.
47087         (y1_test_data): Likewise.
47088         (yn_test_data): Likewise.
47089         (significand_test_data): Likewise.
47090
47091         * math/gen-libm-test.pl (@functions): Remove variable.
47092         (generate_testfile): Don't handle START and END lines.
47093         * math/libm-test.inc (START): New macro.
47094         (END): Likewise.
47095         (END_COMPLEX): Likewise.
47096         (acos_test): Use END macro without arguments.
47097         (acos_test_tonearest): Likewise.
47098         (acos_test_towardzero): Likewise.
47099         (acos_test_downward): Likewise.
47100         (acos_test_upward): Likewise.
47101         (acosh_test): Likewise.
47102         (asin_test): Likewise.
47103         (asin_test_tonearest): Likewise.
47104         (asin_test_towardzero): Likewise.
47105         (asin_test_downward): Likewise.
47106         (asin_test_upward): Likewise.
47107         (asinh_test): Likewise.
47108         (atan_test): Likewise.
47109         (atanh_test): Likewise.
47110         (atan2_test): Likewise.
47111         (cabs_test): Likewise.
47112         (cacos_test): Use END_COMPLEX macro without arguments.
47113         (cacosh_test): Likewise.
47114         (carg_test): Use END macro without arguments.
47115         (casin_test): Use END_COMPLEX macro without arguments.
47116         (casinh_test): Likewise.
47117         (catan_test): Likewise.
47118         (catanh_test): Likewise.
47119         (cbrt_test): Use END macro without arguments.
47120         (ccos_test): Use END_COMPLEX macro without arguments.
47121         (ccosh_test): Likewise.
47122         (ceil_test): Use END macro without arguments.
47123         (cexp_test): Use END_COMPLEX macro without arguments.
47124         (cimag_test): Use END macro without arguments.
47125         (clog_test): Use END_COMPLEX macro without arguments.
47126         (clog10_test): Likewise.
47127         (conj_test): Likewise.
47128         (copysign_test): Use END macro without arguments.
47129         (cos_test): Likewise.
47130         (cos_test_tonearest): Likewise.
47131         (cos_test_towardzero): Likewise.
47132         (cos_test_downward): Likewise.
47133         (cos_test_upward): Likewise.
47134         (cosh_test): Likewise.
47135         (cosh_test_tonearest): Likewise.
47136         (cosh_test_towardzero): Likewise.
47137         (cosh_test_downward): Likewise.
47138         (cosh_test_upward): Likewise.
47139         (cpow_test): Use END_COMPLEX macro without arguments.
47140         (cproj_test): Likewise.
47141         (creal_test): Use END macro without arguments.
47142         (csin_test): Use END_COMPLEX macro without arguments.
47143         (csinh_test): Likewise.
47144         (csqrt_test): Likewise.
47145         (ctan_test): Likewise.
47146         (ctan_test_tonearest): Likewise.
47147         (ctan_test_towardzero): Likewise.
47148         (ctan_test_downward): Likewise.
47149         (ctan_test_upward): Likewise.
47150         (ctanh_test): Likewise.
47151         (ctanh_test_tonearest): Likewise.
47152         (ctanh_test_towardzero): Likewise.
47153         (ctanh_test_downward): Likewise.
47154         (ctanh_test_upward): Likewise.
47155         (erf_test): Use END macro without arguments.
47156         (erfc_test): Likewise.
47157         (exp_test): Likewise.
47158         (exp_test_tonearest): Likewise.
47159         (exp_test_towardzero): Likewise.
47160         (exp_test_downward): Likewise.
47161         (exp_test_upward): Likewise.
47162         (exp10_test): Likewise.
47163         (exp2_test): Likewise.
47164         (expm1_test): Likewise.
47165         (fabs_test): Likewise.
47166         (fdim_test): Likewise.
47167         (finite_test): Likewise.
47168         (floor_test): Likewise.
47169         (fma_test): Likewise.
47170         (fma_test_towardzero): Likewise.
47171         (fma_test_downward): Likewise.
47172         (fma_test_upward): Likewise.
47173         (fmax_test): Likewise.
47174         (fmin_test): Likewise.
47175         (fmod_test): Likewise.
47176         (fpclassify_test): Likewise.
47177         (frexp_test): Likewise.
47178         (gamma_test): Likewise.
47179         (hypot_test): Likewise.
47180         (ilogb_test): Likewise.
47181         (isfinite_test): Likewise.
47182         (isgreater_test): Likewise.
47183         (isgreaterequal_test): Likewise.
47184         (isinf_test): Likewise.
47185         (isless_test): Likewise.
47186         (islessequal_test): Likewise.
47187         (islessgreater_test): Likewise.
47188         (isnan_test): Likewise.
47189         (isnormal_test): Likewise.
47190         (issignaling_test): Likewise.
47191         (isunordered_test): Likewise.
47192         (j0_test): Likewise.
47193         (j1_test): Likewise.
47194         (jn_test): Likewise.
47195         (ldexp_test): Likewise.
47196         (lgamma_test): Likewise.
47197         (lrint_test): Likewise.
47198         (lrint_test_tonearest): Likewise.
47199         (lrint_test_towardzero): Likewise.
47200         (lrint_test_downward): Likewise.
47201         (lrint_test_upward): Likewise.
47202         (llrint_test): Likewise.
47203         (llrint_test_tonearest): Likewise.
47204         (llrint_test_towardzero): Likewise.
47205         (llrint_test_downward): Likewise.
47206         (llrint_test_upward): Likewise.
47207         (log_test): Likewise.
47208         (log10_test): Likewise.
47209         (log1p_test): Likewise.
47210         (log2_test): Likewise.
47211         (logb_test): Likewise.
47212         (logb_test_downward): Likewise.
47213         (lround_test): Likewise.
47214         (llround_test): Likewise.
47215         (modf_test): Likewise.
47216         (nearbyint_test): Likewise.
47217         (nextafter_test): Likewise.
47218         (nexttoward_test): Likewise.
47219         (pow_test): Likewise.
47220         (pow_test_tonearest): Likewise.
47221         (pow_test_towardzero): Likewise.
47222         (pow_test_downward): Likewise.
47223         (pow_test_upward): Likewise.
47224         (remainder_test): Likewise.
47225         (remainder_test_tonearest): Likewise.
47226         (remainder_test_towardzero): Likewise.
47227         (remainder_test_downward): Likewise.
47228         (remainder_test_upward): Likewise.
47229         (remquo_test): Likewise.
47230         (rint_test): Likewise.
47231         (rint_test_tonearest): Likewise.
47232         (rint_test_towardzero): Likewise.
47233         (rint_test_downward): Likewise.
47234         (rint_test_upward): Likewise.
47235         (round_test): Likewise.
47236         (scalb_test): Likewise.
47237         (scalbn_test): Likewise.
47238         (scalbln_test): Likewise.
47239         (signbit_test): Likewise.
47240         (sin_test): Likewise.
47241         (sin_test_tonearest): Likewise.
47242         (sin_test_towardzero): Likewise.
47243         (sin_test_downward): Likewise.
47244         (sin_test_upward): Likewise.
47245         (sincos_test): Likewise.
47246         (sinh_test): Likewise.
47247         (sinh_test_tonearest): Likewise.
47248         (sinh_test_towardzero): Likewise.
47249         (sinh_test_downward): Likewise.
47250         (sinh_test_upward): Likewise.
47251         (sqrt_test): Likewise.
47252         (tan_test): Likewise.
47253         (tan_test_tonearest): Likewise.
47254         (tan_test_towardzero): Likewise.
47255         (tan_test_downward): Likewise.
47256         (tan_test_upward): Likewise.
47257         (tanh_test): Likewise.
47258         (tgamma_test): Likewise.
47259         (trunc_test): Likewise.
47260         (y0_test): Likewise.
47261         (y1_test): Likewise.
47262         (yn_test): Likewise.
47263         (significand_test): Likewise.
47264
47265 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
47266
47267         [BZ #15381]
47268         * libio/genops.c (_IO_no_init): Initialize wide struct info.
47269
47270 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47271
47272         [BZ #14894]
47273         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
47274         __ppc_mdoio and __ppc_mdoom.
47275         * manual/platform.texi: Document new functions __ppc_yield,
47276         __ppc_mdoio and __ppc_mdoom.
47277
47278 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
47279
47280         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
47281         (main): Mention "tls" pseudo-hwcap is legacy.
47282         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
47283
47284 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47285
47286         * math/gen-libm-test.pl (parse_args): Output only string of
47287         arguments as text for test name, not full call or descriptions of
47288         tests for extra outputs.
47289         (generate_testfile): Do not pass function name to parse_args.
47290         Generate this_func variable from START.
47291         * math/libm-test.inc (struct test_f_f_data): Rename test_name
47292         field to arg_str.
47293         (struct test_ff_f_data): Likewise.
47294         (test_ff_f_data_nexttoward): Likewise.
47295         (struct test_fi_f_data): Likewise.
47296         (struct test_fl_f_data): Likewise.
47297         (struct test_if_f_data): Likewise.
47298         (struct test_fff_f_data): Likewise.
47299         (struct test_c_f_data): Likewise.
47300         (struct test_f_f1_data): Likewise.  Remove field extra_name.
47301         (struct test_fF_f1_data): Likewise.
47302         (struct test_ffI_f1_data): Likewise.
47303         (struct test_c_c_data): Rename test_name field to arg_str.
47304         (struct test_cc_c_data): Likewise.
47305         (struct test_f_i_data): Likewise.
47306         (struct test_ff_i_data): Likewise.
47307         (struct test_f_l_data): Likewise.
47308         (struct test_f_L_data): Likewise.
47309         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
47310         and extra2_name.
47311         (COMMON_TEST_SETUP): New macro.
47312         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
47313         (COMMON_TEST_CLEANUP): Likewise.
47314         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
47315         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
47316         macros.
47317         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
47318         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
47319         macros.
47320         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
47321         (RUN_TEST_fff_f): Take argument string.  Call new setup and
47322         cleanup macros.
47323         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
47324         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
47325         macros.
47326         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
47327         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
47328         macros.
47329         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47330         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
47331         cleanup macros.
47332         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47333         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
47334         cleanup macros.
47335         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47336         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
47337         cleanup macros.
47338         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47339         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
47340         macros.
47341         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
47342         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
47343         macros.
47344         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
47345         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
47346         macros.
47347         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
47348         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
47349         cleanup macros.
47350         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
47351         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
47352         cleanup macros.
47353         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
47354         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
47355         macros.
47356         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
47357         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
47358         cleanup macros.
47359         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
47360         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
47361         macros.
47362         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
47363         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
47364         macros.
47365         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
47366         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
47367         cleanup macros.
47368         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
47369
47370 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
47371
47372         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
47373         to _sifields.sigfault.
47374         (si_addr_lsb): Define new macro.
47375         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47376         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
47377         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
47378
47379 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
47380
47381         [BZ #15441]
47382         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
47383         returns -1.
47384         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
47385         null return -1.
47386         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
47387         loading the domain.
47388
47389 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47390
47391         * math/gen-libm-test.pl (parse_args): Do not include expected
47392         result in test name.
47393         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
47394         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47395         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47396         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47397         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47398         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47399
47400 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
47401
47402         * benchtests/Makefile: Sort function entries.
47403
47404         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
47405         tanh, asinh, acosh, atanh.
47406         * benchtests/acos-inputs: New file.
47407         * benchtests/acosh-inputs: New file.
47408         * benchtests/asin-inputs: New file.
47409         * benchtests/asinh-inputs: New file.
47410         * benchtests/atanh-inputs: New file.
47411         * benchtests/cosh-inputs: New file.
47412         * benchtests/log-inputs: New file.
47413         * benchtests/sinh-inputs: New file.
47414         * benchtests/tanh-inputs: New file.
47415
47416 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
47417
47418         [BZ #15339]
47419         * posix/tst-getaddrinfo4.c: New test.
47420         * posix/Makefile (tests): Add it.
47421
47422 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47423
47424         [BZ #15339]
47425         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
47426         when no services were used.
47427         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
47428         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
47429
47430 2013-05-21  Andreas Schwab  <schwab@suse.de>
47431
47432         [BZ #15014]
47433         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
47434         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
47435         successful.
47436         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
47437         redundant variable declarations and reallocation of buffer when
47438         parsing as IPv6 address.  Always set NSS status when called from
47439         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
47440         buffer too small.  Correct computation of needed size.
47441         * nss/Makefile (tests): Add test-digits-dots.
47442         * nss/test-digits-dots.c: New test.
47443
47444 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47445
47446         * benchtests/Makefile: Remove instructions for adding
47447         benchmark tests.
47448         * benchtests/README: New file to explain how to execute and
47449         enhance the benchmark tests.
47450
47451 2013-05-21  Andreas Schwab  <schwab@suse.de>
47452
47453         [BZ #15493]
47454         * setjmp/Makefile (tests): Add tst-sigsetjmp.
47455         * setjmp/tst-sigsetjmp.c: New test.
47456
47457 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47458
47459         * sysdeps/x86_64/memset.S (memset): New implementation.
47460         (__bzero): Likewise.
47461         (__memset_tail): New function.
47462
47463 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47464
47465         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
47466         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
47467         __memcpy_sse2_unaligned ifunc selection.
47468         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
47469         Add memcpy-sse2-unaligned.S.
47470         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
47471         Add: __memcpy_sse2_unaligned.
47472
47473 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
47474
47475         [BZ #15490]
47476         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
47477         math_force_eval before restoring floating-point envrionment.
47478         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
47479         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
47480         Likewise.
47481         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
47482         <math_private.h>.
47483         (__nearbyintl): Use math_force_eval before restoring
47484         floating-point environment.
47485         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
47486
47487         * math/gen-libm-test.pl (special_functions): Remove.
47488         (parse_args): Don't handle TEST_extra.  Handle functions with no
47489         return value.
47490         * math/libm-test.inc (struct test_sincos_data): Replace with
47491         struct test_fFF_11_data.
47492         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
47493         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
47494         (sincos_test_data): Change element type to struct
47495         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
47496         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
47497         RUN_TEST_LOOP_sincos.
47498         * math/README.libm-test: Don't mention special handling of
47499         individual functions.
47500         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
47501         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47502         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47503         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47504         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47505         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47506
47507         * math/gen-libm-test.pl (get_variable): Remove function.
47508         (parse_args): Don't show pointer parameters to call in test
47509         names.  Use "extra output N" in test names for extra outputs
47510         rather than naming variables.
47511
47512 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
47513
47514         [BZ #15488]
47515         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
47516         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
47517         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
47518         double tests.
47519         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
47520         disable.
47521         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
47522         check_long_double.
47523
47524         * math/gen-libm-test.pl (@tests): Remove variable.
47525         ($count): Likewise.
47526         (new_test): Remove function.
47527         (show_exceptions): New function.
47528         (special_functions): Use show_exceptions instead of new_test.
47529         (parse_args): Likewise.
47530         (generate_testfile): Pass only function name in generated call to
47531         print_max_error or print_complex_max_error.
47532         (get_ulps): Do not handle complex tests specially.
47533         (output_test): Rename to ...
47534         (get_all_ulps_for_test): ... this.  Return a string rather than
47535         printing to a file.  Require ulps to be present.
47536         (output_ulps): Generate arrays rather than #defines.
47537         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
47538         (struct ulp_data): New type.
47539         (BUILD_COMPLEX_ULP): Remove macro.
47540         (compare_ulp_data): New function.
47541         (find_ulps): Likewise.
47542         (find_test_ulps): Likewise.
47543         (find_function_ulps): Likewise.
47544         (find_complex_function_ulps): Likewise.
47545         (print_max_error): Determine allowed ulps using
47546         find_function_ulps.
47547         (print_complex_max_error): Determine allowed ulps using
47548         find_complex_function_ulps.
47549         (check_float_internal): Determine max ulps using find_test_ulps.
47550         (check_float): Do not take max_ulp parameter.  Update call to
47551         check_float_internal.
47552         (check_complex): Likewise.
47553         (check_int): Do not take max_ulp parameter.
47554         (check_long): Likewise.
47555         (check_bool): Likewise.
47556         (check_longlong): Likewise.
47557         (struct test_f_f_data): Remove max_ulp field.
47558         (struct test_ff_f_data): Likewise.
47559         (struct test_ff_f_data_nexttoward): Likewise.
47560         (struct test_fi_f_data): Likewise.
47561         (struct test_fl_f_data): Likewise.
47562         (struct test_if_f_data): Likewise.
47563         (struct test_fff_f_data): Likewise.
47564         (struct test_c_f_data): Likewise.
47565         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
47566         (struct test_fF_f1_data): Likewise.
47567         (struct test_ffI_f1_data): Likewise.
47568         (struct test_c_c_data): Remove max_ulp field.
47569         (struct test_cc_c_data): Likewise.
47570         (struct test_f_i_data): Likewise.
47571         (struct test_ff_i_data): Likewise.
47572         (struct test_f_l_data): Likewise.
47573         (struct test_f_L_data): Likewise.
47574         (struct test_sincos_data): Likewise.
47575         (RUN_TEST_f_f): Do not handle ulps.
47576         (RUN_TEST_LOOP_f_f): Likewise.
47577         (RUN_TEST_2_f): Likewise.
47578         (RUN_TEST_LOOP_2_f): Likewise.
47579         (RUN_TEST_fff_f): Likewise.
47580         (RUN_TEST_LOOP_fff_f): Likewise.
47581         (RUN_TEST_c_f): Likewise.
47582         (RUN_TEST_LOOP_c_f): Likewise.
47583         (RUN_TEST_f_f1): Likewise.
47584         (RUN_TEST_LOOP_f_f1): Likewise.
47585         (RUN_TEST_fF_f1): Likewise.
47586         (RUN_TEST_LOOP_fF_f1): Likewise.
47587         (RUN_TEST_fI_f1): Likewise.
47588         (RUN_TEST_LOOP_fI_f1): Likewise.
47589         (RUN_TEST_ffI_f1): Likewise.
47590         (RUN_TEST_LOOP_ffI_f1): Likewise.
47591         (RUN_TEST_c_c): Likewise.
47592         (RUN_TEST_LOOP_c_c): Likewise.
47593         (RUN_TEST_cc_c): Likewise.
47594         (RUN_TEST_LOOP_cc_c): Likewise.
47595         (RUN_TEST_f_i): Likewise.
47596         (RUN_TEST_LOOP_f_i): Likewise.
47597         (RUN_TEST_f_i_tg): Likewise.
47598         (RUN_TEST_LOOP_f_i_tg): Likewise.
47599         (RUN_TEST_ff_i_tg): Likewise.
47600         (RUN_TEST_LOOP_ff_i_tg): Likewise.
47601         (RUN_TEST_f_b): Likewise.
47602         (RUN_TEST_LOOP_f_b): Likewise.
47603         (RUN_TEST_f_b_tg): Likewise.
47604         (RUN_TEST_LOOP_f_b_tg): Likewise.
47605         (RUN_TEST_f_l): Likewise.
47606         (RUN_TEST_LOOP_f_l): Likewise.
47607         (RUN_TEST_f_L): Likewise.
47608         (RUN_TEST_LOOP_f_L): Likewise.
47609         (RUN_TEST_sincos): Likewise.
47610         (RUN_TEST_LOOP_sincos): Likewise.
47611
47612 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
47613
47614         [BZ #15480]
47615         [BZ #15485]
47616         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
47617         main case of finite arguments, set rounding mode to FE_TONEAREST
47618         and discard exceptions.
47619         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
47620         exceptions.
47621         (remainder_tonearest_test_data): New variable.
47622         (remainder_test_tonearest): New function.
47623         (remainder_towardzero_test_data): New variable.
47624         (remainder_test_towardzero): New function.
47625         (remainder_downward_test_data): New variable.
47626         (remainder_test_downward): New function.
47627         (remainder_upward_test_data): New variable.
47628         (remainder_test_upward): New function.
47629         (main): Call the new test functions.
47630
47631         * math/libm-test.inc (struct test_f_f1_data): Remove field
47632         extra_init.
47633         (struct test_fF_f1_data): Likewise.
47634         (struct test_ffI_f1_data): Likewise.
47635         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
47636         based on value of EXTRA_EXPECTED.
47637         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47638         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
47639         EXTRA_VAR based on value of EXTRA_EXPECTED.
47640         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47641         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
47642         EXTRA_VAR based on value of EXTRA_EXPECTED.
47643         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47644         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
47645         EXTRA_VAR based on value of EXTRA_EXPECTED.
47646         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47647         * math/gen-libm-test.pl (parse_args): Don't output initializers
47648         for extra output values.
47649
47650         * math/libm-test.inc (check_int): Expect result to be exactly
47651         equal to expected value and do not handle ulps.
47652         (check_long): Likewise.
47653         (check_longlong): Likewise.
47654
47655         * math/libm-test.inc (ceil_test_data): Test for "inexact"
47656         exceptions.
47657         (cimag_test_data): Likewise.
47658         (conj_test_data): Likewise.
47659         (copysign_test_data): Likewise.
47660         (cproj_test_data): Likewise.
47661         (creal_test_data): Likewise.
47662         (fabs_test_data): Likewise.
47663         (fdim_test_data): Likewise.
47664         (finite_test_data): Likewise.
47665         (floor_test_data): Likewise.
47666         (fmax_test_data): Likewise.
47667         (fmin_test_data): Likewise.
47668         (fmod_test_data): Likewise.
47669         (fpclassify_test_data): Likewise.
47670         (frexp_test_data): Likewise.
47671         (ilogb_test_data): Likewise.
47672         (isfinite_test_data): Likewise.
47673         (isgreater_test_data): Likewise.
47674         (isgreaterequal_test_data): Likewise.
47675         (isinf_test_data): Likewise.
47676         (isless_test_data): Likewise.
47677         (islessequal_test_data): Likewise.
47678         (islessgreater_test_data): Likewise.
47679         (isnan_test_data): Likewise.
47680         (isnormal_test_data): Likewise.
47681         (issignaling_test_data): Likewise.
47682         (isunordered_test_data): Likewise.
47683         (ldexp_test_data): Likewise.
47684         (lrint_test_data): Likewise.
47685         (lrint_test_data) [TEST_FLOAT]: Disable one test.
47686         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
47687         (lrint_tonearest_test_data): Test for "inexact" exceptions.
47688         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47689         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
47690         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47691         test input.
47692         (lrint_towardzero_test_data): Test for "inexact" exceptions.
47693         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47694         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
47695         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
47696         that test input.
47697         (lrint_downward_test_data): Test for "inexact" exceptions.
47698         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47699         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
47700         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47701         test input.
47702         (lrint_upward_test_data): Test for "inexact" exceptions.
47703         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
47704         test input.
47705         (llrint_test_data): Test for "inexact" exceptions.
47706         (llrint_test_data) [TEST_FLOAT]: Disable one test.
47707         (llrint_tonearest_test_data): Test for "inexact" exceptions.
47708         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47709         (llrint_towardzero_test_data): Test for "inexact" exceptions.
47710         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47711         (llrint_downward_test_data): Test for "inexact" exceptions.
47712         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47713         (llrint_upward_test_data): Test for "inexact" exceptions.
47714         (logb_test_data): Likewise.
47715         (logb_downward_test_data): Likewise.
47716         (nextafter_test_data): Likewise.
47717         (nexttoward_test_data): Likewise.
47718         (remainder_test_data): Likewise.
47719         (remquo_test_data): Likewise.
47720         (scalbn_test_data): Likewise.
47721         (scalbln_test_data): Likewise.
47722         (signbit_test_data): Likewise.
47723         (sqrt_test_data): Likewise.
47724         (significand_test_data): Likewise.
47725
47726 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
47727
47728         [BZ #15424]
47729         * benchtests/bench-modf.c (struct args): Mark arg0 as
47730         volatile.
47731         * scripts/bench.pl: Mark members of struct args as volatile.
47732
47733 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47734
47735         [BZ # 15497]
47736         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
47737         negative infinity on POWER6 or lower.
47738         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
47739
47740 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
47741
47742         [BZ #15442]
47743         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
47744         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
47745         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
47746         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
47747         (_FP_SETQNAN): New macro.
47748         (_FP_SETQNAN_SEMIRAW): Likewise.
47749         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
47750         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
47751         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
47752         (FP_EXTEND): Use _FP_FRAC_SNANP.
47753         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
47754         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
47755         into account.
47756         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47757         New macro.
47758         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47759         Likewise.
47760
47761 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47762
47763         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
47764         with DIVIDE_BY_ZERO_EXCEPTION.
47765         (gamma_test_data): Likewise.
47766         (lgamma_test_data): Likewise.
47767         (log_test_data): Likewise.
47768         (log10_test_data): Likewise.
47769         (log2_test_data): Likewise.
47770         (tgamma_test_data): Likewise.
47771
47772         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
47773         (acos_test_tonearest): Likewise.
47774         (acos_test_towardzero): Likewise.
47775         (acos_test_downward): Likewise.
47776         (acos_test_upward): Likewise.
47777         (acosh_test): Likewise.
47778         (asin_test): Likewise.
47779         (asin_test_tonearest): Likewise.
47780         (asin_test_towardzero): Likewise.
47781         (asin_test_downward): Likewise.
47782         (asin_test_upward): Likewise.
47783         (asinh_test): Likewise.
47784         (atan_test): Likewise.
47785         (atanh_test): Likewise.
47786         (atan2_test): Likewise.
47787         (cabs_test): Likewise.
47788         (cacos_test): Likewise.
47789         (cacosh_test): Likewise.
47790         (casin_test): Likewise.
47791         (casinh_test): Likewise.
47792         (catan_test): Likewise.
47793         (catanh_test): Likewise.
47794         (cbrt_test): Likewise.
47795         (ccos_test): Likewise.
47796         (ccosh_test): Likewise.
47797         (cexp_test): Likewise.
47798         (clog_test): Likewise.
47799         (clog10_test): Likewise.
47800         (cos_test): Likewise.
47801         (cos_test_tonearest): Likewise.
47802         (cos_test_towardzero): Likewise.
47803         (cos_test_downward): Likewise.
47804         (cos_test_upward): Likewise.
47805         (cosh_test): Likewise.
47806         (cosh_test_tonearest): Likewise.
47807         (cosh_test_towardzero): Likewise.
47808         (cosh_test_downward): Likewise.
47809         (cosh_test_upward): Likewise.
47810         (cpow_test): Likewise.
47811         (csin_test): Likewise.
47812         (csinh_test): Likewise.
47813         (csqrt_test): Likewise.
47814         (ctan_test): Likewise.
47815         (ctan_test_tonearest): Likewise.
47816         (ctan_test_towardzero): Likewise.
47817         (ctan_test_downward): Likewise.
47818         (ctan_test_upward): Likewise.
47819         (ctanh_test): Likewise.
47820         (ctanh_test_tonearest): Likewise.
47821         (ctanh_test_towardzero): Likewise.
47822         (ctanh_test_downward): Likewise.
47823         (ctanh_test_upward): Likewise.
47824         (erf_test): Likewise.
47825         (erfc_test): Likewise.
47826         (exp_test): Likewise.
47827         (exp_test_tonearest): Likewise.
47828         (exp_test_towardzero): Likewise.
47829         (exp_test_downward): Likewise.
47830         (exp_test_upward): Likewise.
47831         (exp10_test): Likewise.
47832         (exp2_test): Likewise.
47833         (expm1_test): Likewise.
47834         (fmod_test): Likewise.
47835         (gamma_test): Likewise.
47836         (hypot_test): Likewise.
47837         (j0_test): Likewise.
47838         (j1_test): Likewise.
47839         (jn_test): Likewise.
47840         (lgamma_test): Likewise.
47841         (log_test): Likewise.
47842         (log10_test): Likewise.
47843         (log1p_test): Likewise.
47844         (log2_test): Likewise.
47845         (logb_test_downward): Likewise.
47846         (pow_test): Likewise.
47847         (pow_test_tonearest): Likewise.
47848         (pow_test_towardzero): Likewise.
47849         (pow_test_downward): Likewise.
47850         (pow_test_upward): Likewise.
47851         (remainder_test): Likewise.
47852         (remquo_test): Likewise.
47853         (sin_test): Likewise.
47854         (sin_test_tonearest): Likewise.
47855         (sin_test_towardzero): Likewise.
47856         (sin_test_downward): Likewise.
47857         (sin_test_upward): Likewise.
47858         (sincos_test): Likewise.
47859         (sinh_test): Likewise.
47860         (sinh_test_tonearest): Likewise.
47861         (sinh_test_towardzero): Likewise.
47862         (sinh_test_downward): Likewise.
47863         (sinh_test_upward): Likewise.
47864         (sqrt_test): Likewise.
47865         (tan_test): Likewise.
47866         (tan_test_tonearest): Likewise.
47867         (tan_test_towardzero): Likewise.
47868         (tan_test_downward): Likewise.
47869         (tan_test_upward): Likewise.
47870         (tanh_test): Likewise.
47871         (tgamma_test): Likewise.
47872         (y0_test): Likewise.
47873         (y1_test): Likewise.
47874         (yn_test): Likewise.
47875
47876         * math/gen-libm-test.pl (adjust_arg): Remove function.
47877         (special_function): Remove argument $in_func.  Only handle
47878         generating output for tables of tests, not inside functions.
47879         (parse_args): Likewise.
47880         (generate_testfile): Remove variable $in_func.  Update call to
47881         parse_args.
47882         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
47883         (MINUS_ZERO_INIT): Rename macro to minus_zero.
47884         (PLUS_INFTY_INIT): Rename macro to plus_infty.
47885         (MINUS_INFTY_INIT): Rename macro to minus_infty.
47886         (QNAN_VALUE_INIT): Rename macro to qnan_value.
47887         (MAX_VALUE_INIT): Rename macro to max_value.
47888         (MIN_VALUE_INIT): Rename macro to min_value.
47889         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
47890         (plus_zero): Remove variable.
47891         (minus_zero): Likewise.
47892         (plus_infty): Likewise.
47893         (minus_infty): Likewise.
47894         (qnan_value): Likewise.
47895         (max_value): Likewise.
47896         (min_value): Likewise.
47897         (min_subnorm_value): Likewise.
47898
47899 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
47900
47901         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
47902         uint64_t or uint32_t usage.
47903         * crypt/sha256-block.c: Likewise.
47904         * crypt/sha256-crypt.c: Likewise.
47905         * crypt/sha256.c: Likewise.
47906         * crypt/sha512-block.c: Likewise.
47907         * crypt/sha512-crypt.c: Likewise.
47908         * crypt/sha512.c: Likewise.
47909         * debug/backtrace-tst.c: Likewise.
47910         * debug/pcprofiledump.c: Likewise.
47911         * elf/cache.c: Likewise.
47912         * elf/dl-cache.c: Likewise.
47913         * elf/dl-misc.c: Likewise.
47914         * elf/dl-profile.c: Likewise.
47915         * elf/dl-support.c: Likewise.
47916         * elf/ldconfig.c: Likewise.
47917         * elf/sprof.c: Likewise.
47918         * iconv/dummy-repertoire.c: Likewise.
47919         * iconv/iconv_charmap.c: Likewise.
47920         * iconv/skeleton.c: Likewise.
47921         * iconvdata/8bit-generic.c: Likewise.
47922         * iconvdata/cp737.h: Likewise.
47923         * iconvdata/cp775.h: Likewise.
47924         * iconvdata/ibm1008.h: Likewise.
47925         * iconvdata/ibm1025.h: Likewise.
47926         * iconvdata/ibm1046.h: Likewise.
47927         * iconvdata/ibm1097.h: Likewise.
47928         * iconvdata/ibm1112.h: Likewise.
47929         * iconvdata/ibm1122.h: Likewise.
47930         * iconvdata/ibm1123.h: Likewise.
47931         * iconvdata/ibm1124.h: Likewise.
47932         * iconvdata/ibm1129.h: Likewise.
47933         * iconvdata/ibm1130.h: Likewise.
47934         * iconvdata/ibm1132.h: Likewise.
47935         * iconvdata/ibm1133.h: Likewise.
47936         * iconvdata/ibm1137.h: Likewise.
47937         * iconvdata/ibm1140.h: Likewise.
47938         * iconvdata/ibm1141.h: Likewise.
47939         * iconvdata/ibm1142.h: Likewise.
47940         * iconvdata/ibm1143.h: Likewise.
47941         * iconvdata/ibm1144.h: Likewise.
47942         * iconvdata/ibm1145.h: Likewise.
47943         * iconvdata/ibm1146.h: Likewise.
47944         * iconvdata/ibm1147.h: Likewise.
47945         * iconvdata/ibm1148.h: Likewise.
47946         * iconvdata/ibm1149.h: Likewise.
47947         * iconvdata/ibm1153.h: Likewise.
47948         * iconvdata/ibm1154.h: Likewise.
47949         * iconvdata/ibm1155.h: Likewise.
47950         * iconvdata/ibm1156.h: Likewise.
47951         * iconvdata/ibm1157.h: Likewise.
47952         * iconvdata/ibm1158.h: Likewise.
47953         * iconvdata/ibm1160.h: Likewise.
47954         * iconvdata/ibm1161.h: Likewise.
47955         * iconvdata/ibm1162.h: Likewise.
47956         * iconvdata/ibm1163.h: Likewise.
47957         * iconvdata/ibm1164.h: Likewise.
47958         * iconvdata/ibm1166.h: Likewise.
47959         * iconvdata/ibm1167.h: Likewise.
47960         * iconvdata/ibm12712.h: Likewise.
47961         * iconvdata/ibm1390.h: Likewise.
47962         * iconvdata/ibm1399.h: Likewise.
47963         * iconvdata/ibm16804.h: Likewise.
47964         * iconvdata/ibm4517.h: Likewise.
47965         * iconvdata/ibm4899.h: Likewise.
47966         * iconvdata/ibm4909.h: Likewise.
47967         * iconvdata/ibm4971.h: Likewise.
47968         * iconvdata/ibm5347.h: Likewise.
47969         * iconvdata/ibm803.h: Likewise.
47970         * iconvdata/ibm856.h: Likewise.
47971         * iconvdata/ibm901.h: Likewise.
47972         * iconvdata/ibm902.h: Likewise.
47973         * iconvdata/ibm9030.h: Likewise.
47974         * iconvdata/ibm9066.h: Likewise.
47975         * iconvdata/ibm921.h: Likewise.
47976         * iconvdata/ibm922.h: Likewise.
47977         * iconvdata/ibm9448.h: Likewise.
47978         * iconvdata/isiri-3342.h: Likewise.
47979         * iconvdata/jis0201.h: Likewise.
47980         * include/link.h: Likewise.
47981         * include/netdb.h: Likewise.
47982         * inet/check_native.c: Likewise.
47983         * inet/check_pf.c: Likewise.
47984         * inet/getipv4sourcefilter.c: Likewise.
47985         * inet/getnameinfo.c: Likewise.
47986         * inet/getsourcefilter.c: Likewise.
47987         * inet/htonl.c: Likewise.
47988         * inet/setipv4sourcefilter.c: Likewise.
47989         * inet/setsourcefilter.c: Likewise.
47990         * inet/test-inet6_opt.c: Likewise.
47991         * inet/tst-network.c: Likewise.
47992         * locale/C-collate.c: Likewise.
47993         * locale/C-ctype.c: Likewise.
47994         * locale/C-time.c: Likewise.
47995         * locale/C-translit.h: Likewise.
47996         * locale/loadarchive.c: Likewise.
47997         * locale/programs/3level.h: Likewise.
47998         * locale/programs/charmap.c: Likewise.
47999         * locale/programs/charmap.h: Likewise.
48000         * locale/programs/ld-address.c: Likewise.
48001         * locale/programs/ld-collate.c: Likewise.
48002         * locale/programs/ld-ctype.c: Likewise.
48003         * locale/programs/ld-identification.c: Likewise.
48004         * locale/programs/ld-measurement.c: Likewise.
48005         * locale/programs/ld-messages.c: Likewise.
48006         * locale/programs/ld-monetary.c: Likewise.
48007         * locale/programs/ld-name.c: Likewise.
48008         * locale/programs/ld-numeric.c: Likewise.
48009         * locale/programs/ld-paper.c: Likewise.
48010         * locale/programs/ld-telephone.c: Likewise.
48011         * locale/programs/ld-time.c: Likewise.
48012         * locale/programs/linereader.c: Likewise.
48013         * locale/programs/locale.c: Likewise.
48014         * locale/programs/locarchive.c: Likewise.
48015         * locale/programs/locfile.h: Likewise.
48016         * locale/programs/repertoire.c: Likewise.
48017         * locale/programs/simple-hash.c: Likewise.
48018         * locale/programs/simple-hash.h: Likewise.
48019         * malloc/memusage.c: Likewise.
48020         * malloc/memusagestat.c: Likewise.
48021         * nis/nis_defaults.c: Likewise.
48022         * nis/nis_hash.c: Likewise.
48023         * nis/nis_print.c: Likewise.
48024         * nis/nis_xdr.c: Likewise.
48025         * nscd/connections.c: Likewise.
48026         * nscd/hstcache.c: Likewise.
48027         * nscd/nscd_gethst_r.c: Likewise.
48028         * nscd/nscd_getserv_r.c: Likewise.
48029         * nscd/nscd_helper.c: Likewise.
48030         * nscd/servicescache.c: Likewise.
48031         * nss/makedb.c: Likewise.
48032         * nss/nss_db/db-XXX.c: Likewise.
48033         * nss/nss_db/db-initgroups.c: Likewise.
48034         * nss/nss_db/db-netgrp.c: Likewise.
48035         * nss/nss_files/files-network.c: Likewise.
48036         * nss/nss_files/files-parse.c: Likewise.
48037         * posix/bug-regex5.c: Likewise.
48038         * posix/fnmatch_loop.c: Likewise.
48039         * posix/regcomp.c: Likewise.
48040         * posix/regexec.c: Likewise.
48041         * posix/tst-rfc3484-2.c: Likewise.
48042         * posix/tst-rfc3484-3.c: Likewise.
48043         * posix/tst-rfc3484.c: Likewise.
48044         * resolv/nss_dns/dns-canon.c: Likewise.
48045         * resolv/nss_dns/dns-network.c: Likewise.
48046         * resolv/res_init.c: Likewise.
48047         * resolv/res_mkquery.c: Likewise.
48048         * resolv/tst-aton.c: Likewise.
48049         * stdlib/cxa_atexit.c: Likewise.
48050         * stdlib/cxa_finalize.c: Likewise.
48051         * stdlib/gen-fpioconst.c: Likewise.
48052         * stdlib/strtol_l.c: Likewise.
48053         * string/tst-endian.c: Likewise.
48054         * sunrpc/auth_des.c: Likewise.
48055         * sunrpc/clnt_udp.c: Likewise.
48056         * sunrpc/rtime.c: Likewise.
48057         * sunrpc/svcauth_des.c: Likewise.
48058         * sunrpc/xdr.c: Likewise.
48059         * sunrpc/xdr_intXX_t.c: Likewise.
48060         * sunrpc/xdr_rec.c: Likewise.
48061         * sysdeps/generic/ldconfig.h: Likewise.
48062         * sysdeps/generic/ldsodefs.h: Likewise.
48063         * sysdeps/generic/memusage.h: Likewise.
48064         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
48065         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
48066         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
48067         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
48068         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
48069         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
48070         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
48071         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
48072         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
48073         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
48074         * sysdeps/posix/getaddrinfo.c: Likewise.
48075         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
48076         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48077         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
48078         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
48079         * sysdeps/powerpc/test-gettimebase.c: Likewise.
48080         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
48081         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
48082         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
48083         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
48084         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
48085         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
48086         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
48087         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
48088         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
48089         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
48090         * sysdeps/x86_64/dl-tls.h: Likewise.
48091         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
48092         * time/alt_digit.c: Likewise.
48093         * time/era.c: Likewise.
48094         * wcsmbs/tst-c16c32-1.c: Likewise.
48095
48096 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
48097
48098         * math/libm-test.inc (struct test_sincos_data): New type.
48099         (RUN_TEST_LOOP_sincos): New macro.
48100         (sincos_test_data): New variable.
48101         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
48102
48103 2013-05-16  Richard Henderson  <rth@redhat.com>
48104
48105         * math/atest-exp2.c (LIMB64): New macro.
48106         (CONSTSZ): New macro.
48107         (mp_exp1, mp_exp_m1, mp_log2): New variables.
48108         (hexdig): Move ...
48109         (print_mpn_fp): ... to function scope.
48110         (read_mpn_hex): Remove.
48111         (get_log2): Remove.
48112         (exp2_mpn): Use mp_log2.
48113         (main): Use mp_exp1.
48114
48115 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
48116
48117         * math/libm-test.inc: Remove comment about not testing "inexact"
48118         exceptions.
48119         (INEXACT_EXCEPTION): New macro.
48120         (NO_INEXACT_EXCEPTION): Likewise.
48121         (INVALID_EXCEPTION_OK): Update value.
48122         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
48123         (OVERFLOW_EXCEPTION_OK): Likewise.
48124         (UNDERFLOW_EXCEPTION_OK): Likewise.
48125         (IGNORE_ZERO_INF_SIGN): Likewise.
48126         (ERRNO_UNCHANGED): Likewise.
48127         (ERRNO_EDOM): Likewise.
48128         (ERRNO_ERANGE): Likewise.
48129         (test_exceptions): Handle testing "inexact" exceptions.
48130         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
48131         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
48132         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
48133         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
48134         INEXACT_EXCEPTION.
48135         (rint_towardzero_test_data): Likewise.
48136         (rint_downward_test_data): Likewise.
48137         (rint_upward_test_data): Likewise.
48138
48139         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
48140         with OVERFLOW_EXCEPTION.
48141         (exp10_test_data): Likewise.
48142         (exp2_test_data): Likewise.
48143         (expm1_test_data): Likewise.
48144         (lgamma_test_data): Likewise.
48145         (pow_test_data): Likewise.
48146         (tgamma_test_data): Likewise.
48147         (yn_test_data): Remove duplicate test of overflow.
48148
48149         * math/libm-test.inc (struct test_cc_c_data): New type.
48150         (RUN_TEST_LOOP_cc_c): New macro.
48151         (cpow_test_data): New variable.
48152         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
48153
48154         * math/libm-test.inc (struct test_f_L_data): New type.
48155         (RUN_TEST_LOOP_f_L): New macro.
48156         (llrint_test_data): New variable.
48157         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
48158         (llrint_tonearest_test_data): New variable.
48159         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
48160         (llrint_towardzero_test_data): New variable.
48161         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
48162         (llrint_downward_test_data): New variable.
48163         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
48164         (llrint_upward_test_data): New variable.
48165         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
48166         (llround_test_data): New variable.
48167         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
48168
48169 2013-05-13  Peter Collingbourne  <pcc@google.com>
48170
48171         * math/atest-exp2.c (get_log2): Remove const attribute.
48172
48173 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
48174
48175         * math/libm-test.inc (struct test_f_l_data): New type.
48176         (RUN_TEST_LOOP_f_l): New macro.
48177         (lrint_test_data): New variable.
48178         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
48179         (lrint_tonearest_test_data): New variable.
48180         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
48181         (lrint_towardzero_test_data): New variable.
48182         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
48183         (lrint_downward_test_data): New variable.
48184         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
48185         (lrint_upward_test_data): New variable.
48186         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
48187         (lround_test_data): New variable.
48188         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
48189
48190 2013-05-15  Peter Collingbourne  <pcc@google.com>
48191
48192         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
48193         (EXTRACT_WORDS64) Use where appropriate.
48194         (INSERT_WORDS64) Likewise.
48195
48196         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
48197         constraints with x constraints.
48198         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
48199
48200         * malloc/obstack.c (_obstack_compat): Add initializer.
48201
48202 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
48203
48204         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
48205         si_trapno and add si_addr_lsb to _sifields.sigfault.
48206         (si_trapno): Remove macro.
48207         (si_addr_lsb): Define new macro.
48208         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
48209
48210 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
48211
48212         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
48213         instead of TEST_f_l.
48214         (llrint_test_tonearest): Likewise.
48215         (llrint_test_towardzero): Likewise.
48216         (llrint_test_downward): Likewise.
48217         (llrint_test_upward): Likewise.
48218         (llround_test): Likewise.
48219
48220         * math/libm-test.inc (struct test_f_i_data): Add comment.
48221         (RUN_TEST_LOOP_f_b): New macro.
48222         (RUN_TEST_LOOP_f_b_tg): Likewise.
48223         (finite_test_data): New variable.
48224         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
48225         (isfinite_test_data): New variable.
48226         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48227         (isinf_test_data): New variable.
48228         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48229         (isnan_test_data): New variable.
48230         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48231         (isnormal_test_data): New variable.
48232         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48233         (issignaling_test_data): New variable.
48234         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48235         (signbit_test_data): New variable.
48236         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48237
48238         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
48239         with INVALID_EXCEPTION.
48240         (acosh_test_data): Likewise.
48241         (asin_test_data): Likewise.
48242         (atanh_test_data): Likewise.
48243         (fmod_test_data): Likewise.
48244         (log_test_data): Likewise.
48245         (log10_test_data): Likewise.
48246         (log2_test_data): Likewise.
48247         (pow_test_data): Likewise.
48248         (sqrt_test_data): Likewise.
48249         (y0_test_data): Likewise.
48250         (y1_test_data): Likewise.
48251         (yn_test_data): Likewise.
48252
48253         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
48254         function contents.
48255
48256         * math/libm-test.inc (struct test_ff_i_data): New type.
48257         (RUN_TEST_LOOP_ff_i_tg): New macro.
48258         (isgreater_test_data): New variable.
48259         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48260         (isgreaterequal_test_data): New variable.
48261         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48262         (isless_test_data): New variable.
48263         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48264         (islessequal_test_data): New variable.
48265         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48266         (islessgreater_test_data): New variable.
48267         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48268         (isunordered_test_data): New variable.
48269         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48270
48271 2013-05-14  David S. Miller  <davem@davemloft.net>
48272
48273         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48274
48275 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
48276
48277         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
48278
48279         * math/libm-test.inc (struct test_fF_f1_data): Change type of
48280         extra_test to int.
48281         (struct test_f_i_data): Change type of max_ulp to int.
48282
48283         * math/libm-test.inc (test_ffI_f1_data): New type.
48284         (RUN_TEST_LOOP_ffI_f1): New macro.
48285         (remquo_test_data): New variable.
48286         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
48287
48288         * setjmp/tst-setjmp-fp.c: New file.
48289         * setjmp/Makefile (tests): Add tst-setjmp-fp.
48290         (link-libm): New variable.
48291         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
48292
48293         * math/libm-test.inc (struct test_f_i_data): New type.
48294         (RUN_TEST_LOOP_f_i): New macro.
48295         (RUN_TEST_LOOP_f_i_tg): Likewise.
48296         (fpclassify_test_data): New variable.
48297         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
48298         (ilogb_test_data): New variable.
48299         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
48300
48301         * math/libm-test.inc (scalbln_test): Correct function name in END
48302         call.
48303
48304         * math/libm-test.inc (struct test_f_f1_data): Add comment.
48305         (RUN_TEST_LOOP_fI_f1): New macro.
48306         (frexp_test_data): New variable.
48307         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
48308
48309         * math/libm-test.inc (struct test_fF_f1_data): New type.
48310         (RUN_TEST_LOOP_fF_f1): New macro.
48311         (modf_test_data): New variable.
48312         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
48313
48314         * math/libm-test.inc (struct test_f_f1_data): New type.
48315         (RUN_TEST_LOOP_f_f1): New macro.
48316         (gamma_test_data): New variable.
48317         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48318         (lgamma_test_data): New variable.
48319         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48320
48321 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
48322
48323         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
48324         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
48325         (main): Comment "tls" pseudo-hwcap.
48326
48327 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
48328
48329         * math/libm-test.inc (struct test_fl_f_data): New type.
48330         (RUN_TEST_LOOP_fl_f): New variable.
48331         (scalbln_test_data): New variable.
48332         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
48333
48334         * math/libm-test.inc (struct test_fi_f_data): New type.
48335         (RUN_TEST_LOOP_fi_f): New macro.
48336         (ldexp_test_data): New variable.
48337         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
48338         (scalbn_test_data): New variable.
48339         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
48340
48341         * math/libm-test.inc (struct test_c_f_data): New type.
48342         (RUN_TEST_LOOP_c_f): New macro.
48343         (cabs_test_data): New variable.
48344         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
48345         (carg_test_data): New variable.
48346         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
48347         (cimag_test_data): New variable.
48348         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
48349         (creal_test_data): New variable.
48350         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
48351
48352         * math/libm-test.inc (struct test_if_f_data): New type.
48353         (RUN_TEST_LOOP_if_f): New macro.
48354         (jn_test_data): New variable.
48355         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
48356         (yn_test_data): New variable.
48357         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
48358
48359         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
48360
48361 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48362
48363         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
48364         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
48365
48366 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
48367
48368         * benchtests/Makefile (CPPFLAGS-nonlib): Add
48369         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
48370         (bench-deps): Add bench-timing.h.
48371         * benchtests-bench-skeleton.c: Include bench-timing.h.
48372         (main): Use TIMING_* macros instead of clock_gettime.
48373         * benchtests/bench-timing.h: New file.
48374
48375         [BZ #14582]
48376         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
48377         Renamed from _LIB_VERSION.
48378         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
48379
48380 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
48381
48382         * math/libm-test.inc (struct test_fff_f_data): New type.
48383         (RUN_TEST_LOOP_fff_f): New macro.
48384         (fma_test_data): New variable.
48385         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
48386         (fma_towardzero_test_data): New variable.
48387         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
48388         (fma_downward_test_data): New variable.
48389         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
48390         (fma_upward_test_data): New variable.
48391         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
48392
48393         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
48394         (struct test_c_c_data): New type.
48395         (RUN_TEST_LOOP_c_c): New macro.
48396         (cacos_test_data): New variable.
48397         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
48398         (cacosh_test_data): New variable.
48399         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
48400         (casin_test_data): New variable.
48401         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
48402         (casinh_test_data): New variable.
48403         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
48404         (catan_test_data): New variable.
48405         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
48406         (catanh_test_data): New variable.
48407         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
48408         (ccos_test_data): New variable.
48409         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
48410         (ccosh_test_data): New variable.
48411         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
48412         (cexp_test_data): New variable.
48413         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
48414         (clog_test_data): New variable.
48415         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
48416         (clog10_test_data): New variable.
48417         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
48418         (conj_test_data): New variable.
48419         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
48420         (cproj_test_data): New variable.
48421         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
48422         (csin_test_data): New variable.
48423         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
48424         (csinh_test_data): New variable.
48425         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
48426         (csqrt_test_data): New variable.
48427         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
48428         (ctan_test_data): New variable.
48429         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
48430         (ctan_tonearest_test_data): New variable.
48431         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48432         (ctan_towardzero_test_data): New variable.
48433         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48434         (ctan_downward_test_data): New variable.
48435         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48436         (ctan_upward_test_data): New variable.
48437         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48438         (ctanh_test_data): New variable.
48439         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
48440         (ctanh_tonearest_test_data): New variable.
48441         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48442         (ctanh_towardzero_test_data): New variable.
48443         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48444         (ctanh_downward_test_data): New variable.
48445         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48446         (ctanh_upward_test_data): New variable.
48447         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48448         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
48449         of BUILD_COMPLEX.
48450
48451         * math/libm-test.inc (struct test_ff_f_data): New type.
48452         (struct test_ff_f_data_nexttoward): Likewise.
48453         (RUN_TEST_LOOP_2_f): New macro.
48454         (RUN_TEST_LOOP_ff_f): Likewise.
48455         (atan2_test_data): New variable.
48456         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
48457         (copysign_test_data): New variable.
48458         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
48459         (fdim_test_data): New variable.
48460         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
48461         (fmax_test_data): New variable.
48462         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
48463         (fmin_test_data): New variable.
48464         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
48465         (fmod_test_data): New variable.
48466         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
48467         (hypot_test_data): New variable.
48468         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
48469         (nextafter_test_data): New variable.
48470         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
48471         (nexttoward_test_data): New variable.
48472         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
48473         (pow_test_data): New variable.
48474         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
48475         (pow_tonearest_test_data): New variable.
48476         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
48477         (pow_towardzero_test_data): New variable.
48478         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
48479         (pow_downward_test_data): New variable.
48480         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
48481         (pow_upward_test_data): New variable.
48482         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
48483         (remainder_test_data): New variable.
48484         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
48485         (scalb_test_data): New variable.
48486         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
48487         * sysdeps/i386/fpu/libm-test-ulps: Update.
48488
48489 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
48490
48491         * math/libm-test.inc (fma_test): Use max_value instead of local
48492         variable fltmax.
48493         (nextafter_test): Likewise.
48494
48495         * math/libm-test.inc (acos_towardzero_test_data): New variable.
48496         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48497         (acos_downward_test_data): New variable.
48498         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48499         (acos_upward_test_data): New variable.
48500         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48501         (acosh_test_data): New variable.
48502         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
48503         (asin_test_data): New variable.
48504         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
48505         (asin_tonearest_test_data): New variable.
48506         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48507         (asin_towardzero_test_data): New variable.
48508         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48509         (asin_downward_test_data): New variable.
48510         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48511         (asin_upward_test_data): New variable.
48512         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48513         (asinh_test_data): New variable.
48514         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
48515         (atan_test_data): New variable.
48516         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
48517         (atanh_test_data): New variable.
48518         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
48519         (cbrt_test_data): New variable.
48520         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
48521         (ceil_test_data): New variable.
48522         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
48523         (cos_test_data): New variable.
48524         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
48525         (cos_tonearest_test_data): New variable.
48526         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48527         (cos_towardzero_test_data): New variable.
48528         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48529         (cos_downward_test_data): New variable.
48530         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48531         (cos_upward_test_data): New variable.
48532         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48533         (cosh_test_data): New variable.
48534         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
48535         (cosh_tonearest_test_data): New variable.
48536         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48537         (cosh_towardzero_test_data): New variable.
48538         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48539         (cosh_downward_test_data): New variable.
48540         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48541         (cosh_upward_test_data): New variable.
48542         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48543         (erf_test_data): New variable.
48544         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
48545         (erfc_test_data): New variable.
48546         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
48547         (exp_test_data): New variable.
48548         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
48549         (exp_tonearest_test_data): New variable.
48550         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48551         (exp_towardzero_test_data): New variable.
48552         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48553         (exp_downward_test_data): New variable.
48554         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48555         (exp_upward_test_data): New variable.
48556         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48557         (exp10_test_data): New variable.
48558         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
48559         (exp2_test_data): New variable.
48560         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
48561         (expm1_test_data): New variable.
48562         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
48563         (fabs_test_data): New variable.
48564         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
48565         (floor_test_data): New variable.
48566         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
48567         (j0_test_data): New variable.
48568         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
48569         (j1_test_data): New variable.
48570         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
48571         (log_test_data): New variable.
48572         (log_test): Run tests with RUN_TEST_LOOP_f_f.
48573         (log10_test_data): New variable.
48574         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
48575         (log1p_test_data): New variable.
48576         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
48577         (log2_test_data): New variable.
48578         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
48579         (logb_test_data): New variable.
48580         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
48581         (logb_downward_test_data): New variable.
48582         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48583         (nearbyint_test_data): New variable.
48584         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
48585         (rint_test_data): New variable.
48586         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
48587         (rint_tonearest_test_data): New variable.
48588         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48589         (rint_towardzero_test_data): New variable.
48590         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48591         (rint_downward_test_data): New variable.
48592         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48593         (rint_upward_test_data): New variable.
48594         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48595         (round_test_data): New variable.
48596         (round_test): Run tests with RUN_TEST_LOOP_f_f.
48597         (sin_test_data): New variable.
48598         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
48599         (sin_tonearest_test_data): New variable.
48600         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48601         (sin_towardzero_test_data): New variable.
48602         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48603         (sin_downward_test_data): New variable.
48604         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48605         (sin_upward_test_data): New variable.
48606         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48607         (sinh_test_data): New variable.
48608         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
48609         (sinh_tonearest_test_data): New variable.
48610         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48611         (sinh_towardzero_test_data): New variable.
48612         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48613         (sinh_downward_test_data): New variable.
48614         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48615         (sinh_upward_test_data): New variable.
48616         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48617         (sqrt_test_data): New variable.
48618         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
48619         (tan_test_data): New variable.
48620         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
48621         (tan_tonearest_test_data): New variable.
48622         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48623         (tan_towardzero_test_data): New variable.
48624         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48625         (tan_downward_test_data): New variable.
48626         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48627         (tan_upward_test_data): New variable.
48628         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48629         (tanh_test_data): New variable.
48630         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
48631         (tgamma_test_data): New variable.
48632         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
48633         (trunc_test_data): New variable.
48634         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
48635         (y0_test_data): New variable.
48636         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
48637         (y1_test_data): New variable.
48638         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
48639         (significand_test_data): New variable.
48640         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
48641
48642 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
48643
48644         [BZ #12387]
48645         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
48646
48647 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
48648
48649         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
48650
48651 2013-05-10  Andreas Jaeger  <aj@suse.de>
48652
48653         [BZ #15448]
48654         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
48655         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
48656
48657 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48658
48659         * math/gen-libm-test.pl (adjust_arg): New function.
48660         (special_functions): Handle generating output in both functions
48661         and arrays.
48662         (parse_args): Likewise.
48663         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
48664         $in_func argument to parse_args.
48665         * math/libm-test.inc (struct test_f_f_data): New type.
48666         (IF_ROUND_INIT_): New macro.
48667         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
48668         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
48669         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
48670         (IF_ROUND_INIT_FE_UPWARD): Likewise.
48671         (ROUND_RESTORE_): Likewise.
48672         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
48673         (ROUND_RESTORE_FE_TONEAREST): Likewise.
48674         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
48675         (ROUND_RESTORE_FE_UPWARD): Likewise.
48676         (RUN_TEST_LOOP_f_f): New macro.
48677         (acos_test_data): New variable.
48678         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
48679         (acos_tonearest_test_data): New variable.
48680         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48681
48682 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48683
48684         * benchtests/bench-skeleton.c (startup): Fix coding style.
48685
48686 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48687
48688         [BZ #6809]
48689         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
48690         negative infinity argument.
48691         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
48692         negative infinity argument.
48693         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
48694         negative infinity argument.
48695         * math/libm-test.inc (tgamma_test): Expect errno to be set for
48696         domain errors.
48697
48698 2013-05-10  Florian Weimer  <fweimer@redhat.com>
48699
48700         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
48701         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
48702         * iconv/iconv_prog.c (main): Likewise.
48703         * locale/programs/charmap-dir.c (charmap_readdir)
48704         (fopen_uncompressed): Likewise.
48705         * locale/programs/locfile.c (siblings_uncached)
48706         (write_locale_data): Use lstat64 instead of lstat.
48707         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
48708         stat.
48709
48710 2013-05-10  Andreas Jaeger  <aj@suse.de>
48711
48712         [BZ #15395]
48713         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
48714         localization.
48715         Include <locale.h>.
48716
48717 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
48718
48719         * elf/dl-close.c (_dl_close_worker): Add comments.
48720
48721 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
48722
48723         [BZ #15359]
48724         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
48725         high part of pi/2.
48726         (__ieee754_rem_pio2l): Update comments.
48727
48728         [BZ #15429]
48729         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
48730         high part of pi/2.
48731         (__ieee754_rem_pio2l): Update comments.
48732
48733         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
48734         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
48735
48736         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
48737         M_PI_4l.
48738
48739         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
48740         (M_PI_34_LOG10El): Likewise.
48741         (M_PI2_LOG10El): Likewise.
48742         (M_PI4_LOG10El): Likewise.
48743         (M_PI_LOG10El): Likewise.
48744
48745 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48746
48747         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48748
48749 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
48750
48751         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
48752         (MINUS_ZERO_INIT): Likewise.
48753         (PLUS_INFTY_INIT): Likewise.
48754         (MINUS_INFTY_INIT): Likewise.
48755         (QNAN_VALUE_INIT): Likewise.
48756         (MAX_VALUE_INIT): Likewise.
48757         (MIN_VALUE_INIT): Likewise.
48758         (MIN_SUBNORM_VALUE_INIT): Likewise.
48759         (plus_zero): Initialize with PLUS_ZERO_INIT.
48760         (minus_zero): Initialize with MINUS_ZERO_INIT.
48761         (plus_infty): Initialize with PLUS_INFTY_INIT.
48762         (minus_infty): Initialize with MINUS_INFTY_INIT.
48763         (qnan_value): Initialize with QNAN_VALUE_INIT.
48764         (max_value): Initialize with MAX_VALUE_INIT.
48765         (min_value): Initialize with MIN_VALUE_INIT.
48766         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
48767
48768         * math/libm-test.inc (RUN_TEST_if_f): New macro.
48769         (jn_test): Use TEST_if_f instead of TEST_ff_f.
48770         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
48771         (yn_test): Use TEST_if_f instead of TEST_ff_f.
48772
48773         * math/libm-test.inc (RUN_TEST_f_f): New macro.
48774         (RUN_TEST_2_f): Likewise.
48775         (RUN_TEST_ff_f): Likewise.
48776         (RUN_TEST_fi_f): Likewise.
48777         (RUN_TEST_fl_f): Likewise.
48778         (RUN_TEST_fff_f): Likewise.
48779         (RUN_TEST_c_f): Likewise.
48780         (RUN_TEST_f_f1): Likewise.
48781         (RUN_TEST_fF_f1): Likewise.
48782         (RUN_TEST_fI_f1): Likewise.
48783         (RUN_TEST_ffI_f1): Likewise.
48784         (RUN_TEST_c_c): Likewise.
48785         (RUN_TEST_cc_c): Likewise.
48786         (RUN_TEST_f_i): Likewise.
48787         (RUN_TEST_f_i_tg): Likewise.
48788         (RUN_TEST_ff_i_tg): Likewise.
48789         (RUN_TEST_f_b): Likewise.
48790         (RUN_TEST_f_b_tg): Likewise.
48791         (RUN_TEST_f_l): Likewise.
48792         (RUN_TEST_f_L): Likewise.
48793         (RUN_TEST_sincos): Likewise.
48794         * math/gen-libm-test.pl (new_test): Take new argument to indicate
48795         whether to show exceptions.  Do not include ");\n" in return
48796         value.
48797         (special_functions): Output call to RUN_TEST_sincos instead of
48798         check_float calls.  Update calls to new_test.
48799         (parse_args): Output call to single RUN_TEST_* macro instead of
48800         check_* calls and other assignments.  Update calls to new_test.
48801
48802         [BZ #2546]
48803         [BZ #2560]
48804         [BZ #5159]
48805         [BZ #15426]
48806         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
48807         input to result for tgamma overflow.
48808         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
48809         (gamma_coeff): New variable.
48810         (NCOEFF): New macro.
48811         (gamma_positive): New function.
48812         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
48813         underflow here.  Use gamma_positive instead of exp (lgamma) for
48814         other arguments.
48815         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
48816         (gamma_coeff): New variable.
48817         (NCOEFF): New macro.
48818         (gammaf_positive): New function.
48819         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
48820         underflow here.  Use gamma_positive instead of exp (lgamma) for
48821         other arguments.
48822         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
48823         (gamma_coeff): New variable.
48824         (NCOEFF): New macro.
48825         (gammal_positive): New function.
48826         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
48827         underflow here.  Use gamma_positive instead of exp (lgamma) for
48828         other arguments.
48829         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
48830         (gamma_coeff): New variable.
48831         (NCOEFF): New macro.
48832         (gammal_positive): New function.
48833         (__ieee754_gammal_r): Handle positive infinity, overflow and
48834         underflow here.  Handle NaN the same as positive infinity.  Remove
48835         check x < 0xffffffff for negative integers.  Use gamma_positive
48836         instead of exp (lgamma) for other arguments.
48837         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
48838         (gamma_coeff): New variable.
48839         (NCOEFF): New macro.
48840         (gammal_positive): New function.
48841         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
48842         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
48843         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
48844         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
48845         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
48846         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
48847         * sysdeps/generic/math_private.h (__gamma_productf): New
48848         prototype.
48849         (__gamma_product): Likewise.
48850         (__gamma_productl): Likewise.
48851         * math/Makefile (libm-calls): Add gamma_product.
48852         * math/libm-test.inc (tgamma_test): Add more tests.
48853         * sysdeps/i386/fpu/libm-test-ulps: Update.
48854         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48855
48856 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
48857
48858         * benchtests/bench-skeleton.c (main): Preheat CPU.
48859
48860 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
48861
48862         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
48863
48864 2013-05-07  Roland McGrath  <roland@hack.frob.com>
48865
48866         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
48867         and _dl_skip_args_internal.
48868
48869 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
48870
48871         * manual/message.texi (Message Translation): Talk about users.
48872         Message to key mapping impacts design.
48873
48874 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48875
48876         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
48877
48878         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
48879
48880         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
48881         * sysdeps/wordsize-64/glob64.c: ... here.
48882
48883         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
48884         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
48885         New macros.
48886
48887         * debug/getlogin_r_chk.c: Moved to ...
48888         * login/getlogin_r_chk.c: ... here.
48889         * debug/Makefile (routines): Move getlogin_r_chk to ...
48890         * login/Makefile (routines): ... here.
48891         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
48892         * login/Versions (libc: GLIBC_2.4): ... here.
48893
48894         * io/poll.c (__poll): Renamed from poll.
48895         Add libc_hidden_def.
48896         (poll): Define as weak alias.
48897
48898         * debug/ptsname_r_chk.c: Moved to ...
48899         * login/ptsname_r_chk.c: ... here.
48900         * debug/Makefile (routines): Move ptsname_r_chk to ...
48901         * login/Makefile (routines): ... here.
48902         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
48903         * login/Versions (libc: GLIBC_2.4): ... here.
48904
48905         * posix/getlogin.c: Moved to ...
48906         * login/getlogin.c: ... here.
48907         * posix/getlogin_r.c: Moved to ...
48908         * login/getlogin_r.c: ... here.
48909         * posix/getlogin_r.c: Moved to ...
48910         * login/getlogin_r.c: ... here.
48911         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
48912         * login/Makefile (routines): ... here.
48913         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
48914         * login/Versions (libc: GLIBC_2.0): ... here.
48915
48916         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
48917         (setrlimit): Define as weak alias.
48918
48919         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
48920         Call __ names for open, ftruncate, and close.
48921         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
48922         (truncate): Define as weak alias.
48923
48924 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
48925
48926         * math/gen-libm-test.pl (parse_args): Initialize x before each
48927         test of frexp, modf and remquo.
48928
48929         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
48930         test signgam value.
48931
48932 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48933
48934         [BZ #15418]
48935         [BZ #15419]
48936         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
48937         internal tests.
48938         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48939
48940 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48941
48942         * elf/dl-writev.h: New file.
48943         * elf/dl-misc.c: Include it.
48944         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
48945         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
48946
48947 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
48948
48949         * math/libm-test.inc (noXFails): Remove variable.
48950         (noXPasses): Likewise.
48951         (BUILD_COMPLEX_INT): Remove macro.
48952         (print_screen): Remove xfail argument.
48953         (print_screen_max_error): Likewise.
48954         (update_stats): Likewise.
48955         (print_max_error): Likewise.  Update calls to other affected
48956         functions.
48957         (print_complex_max_error): Likewise.
48958         (test_single_exception): Update calls to print_screen.
48959         (test_single_errno): Likewise.
48960         (check_float_internal): Remove xfail argument.  Update calls to
48961         other affected functions.
48962         (check_float): Likewise.
48963         (check_complex): Likewise.
48964         (check_int): Likewise.
48965         (check_long): Likewise.
48966         (check_bool): Likewise.
48967         (check_longlong): Likewise.
48968         (main): Don't print noXFails and noXPasses.
48969         * math/gen-libm-test.pl (top level): Don't mention expected
48970         failure handling in comment.
48971         (new_test): Don't handle expected failures.
48972         (parse_args): Don't mention expected failure handling in comment.
48973         (generate_testfile): Don't handle expected failures.
48974         (parse_ulps): Likewise.
48975         (print_ulps_file): Likewise.
48976         (get_failure): Remove function.
48977         (output_test): Don't handle expected failures.
48978         * make/README.libm-test: Don't mention expected failure handling.
48979
48980         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
48981         (minus_zero): Likewise.
48982         (plus_infty): Likewise.
48983         (minus_infty): Likewise.
48984         (qnan_value): Likewise.
48985         (max_value): Likewise.
48986         (min_value): Likewise.
48987         (min_subnorm_value): Likewise.
48988         (initialize): Do not initialize those variables dynamically.
48989
48990 2013-05-03  Roland McGrath  <roland@hack.frob.com>
48991
48992         * io/open.c (__open_2): Moved to ...
48993         * io/open_2.c: ... this new file.
48994         * io/open64.c (__open64_2): Moved to ...
48995         * io/open64_2.c: ... this new file.
48996         * io/openat.c (__openat_2): Moved to ...
48997         * io/openat_2.c: ... this new file.
48998         * io/openat64.c (__openat64_2): Moved to ...
48999         * io/openat64_2.c: ... this new file.
49000         * io/Makefile (routines): Add them.
49001         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
49002         * sysdeps/unix/sysv/linux/open_2.c: File removed.
49003         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
49004         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
49005         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
49006         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
49007         (__openat64): Add hidden_ver.
49008         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
49009         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
49010
49011         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
49012         Separately conditionalize setting of GLRO(dl_sysinfo) so
49013         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
49014         as well, but the actual setting is only under [NEED_DL_SYSINFO].
49015
49016 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49017
49018         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
49019         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
49020         definition.
49021         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
49022         * sysdeps/unix/sysv/linux/powerpc/init-first.c
49023         (_libc_vdso_platform_setup): Add __vdso_time initialization.
49024         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
49025         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
49026
49027 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
49028
49029         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
49030         test signgam value.
49031
49032         * math/libm-test.inc (hypot_test): Do not use
49033         IGNORE_ZERO_INF_SIGN.
49034
49035 2013-05-03  Andreas Jaeger  <aj@suse.de>
49036
49037         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
49038         Linux 3.9.
49039         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
49040         (PF_MAX): Adjust for VSOCK change.
49041
49042 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49043
49044         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49045
49046 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
49047
49048         [BZ #15264]
49049         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
49050         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
49051         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
49052
49053 2013-05-02  David S. Miller  <davem@davemloft.net>
49054
49055         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49056
49057 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
49058
49059         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
49060
49061 2013-05-01  Roland McGrath  <roland@hack.frob.com>
49062
49063         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
49064
49065 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
49066
49067         [BZ #14952]
49068         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
49069         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
49070         Use __attribute__ ((__gnu_inline__)).
49071         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
49072         Don't use __attribute__ ((__gnu_inline__)).
49073
49074 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
49075
49076         [BZ #15423]
49077         * math/s_catan.c (__catan): Handle small real or imaginary part of
49078         input specially to avoid spurious underflow.
49079         * math/s_catanf.c (__catanf): Likewise.
49080         * math/s_catanh.c (__catanh): Likewise.
49081         * math/s_catanhf.c (__catanhf): Likewise.
49082         * math/s_catanhl.c (__catanhl): Likewise.
49083         * math/s_catanl.c (__catanl): Likewise.
49084         * math/libm-test.inc (catan_test): Add more tests.
49085         (catanh_test): Likewise.
49086         * sysdeps/i386/fpu/libm-test-ulps: Update.
49087         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49088
49089 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49090
49091         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49092
49093 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
49094
49095         [BZ #15416]
49096         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
49097         accurately for denominator in atan2.
49098         * math/s_catanf.c (__catanf): Likewise.
49099         * math/s_catanh.c (__catanh): Likewise.
49100         * math/s_catanhf.c (__catanhf): Likewise.
49101         * math/s_catanhl.c (__catanhl): Likewise.
49102         * math/s_catanl.c (__catanl): Likewise.
49103         * math/libm-test.inc (catan_test): Add more tests.
49104         (catanh_test): Likewise.
49105         * sysdeps/i386/fpu/libm-test-ulps: Update.
49106         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49107
49108 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
49109
49110         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
49111
49112         * benchtests/Makefile (bench): Remove slow benchmarks.
49113         * benchtests/atan-inputs: Add slow benchmark inputs.
49114         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
49115         (BENCH_FUNC): Accept variant offset.
49116         (VARIANT): Define.
49117         * benchtests/bench-skeleton.c (main): Run benchmark for each
49118         variant.
49119         * benchtests/cos-inputs: Add slow benchmark inputs.
49120         * benchtests/exp-inputs: Likewise.
49121         * benchtests/pow-inputs: Likewise.
49122         * benchtests/sin-inputs: Likewise.
49123         * benchtests/slowatan-inputs: Remove.
49124         * benchtests/slowatan.c: Remove.
49125         * benchtests/slowcos-inputs: Remove.
49126         * benchtests/slowcos.c: Remove.
49127         * benchtests/slowexp-inputs: Remove.
49128         * benchtests/slowexp.c: Remove.
49129         * benchtests/slowpow-inputs: Remove.
49130         * benchtests/slowpow.c: Remove.
49131         * benchtests/slowsin-inputs: Remove.
49132         * benchtests/slowsin.c: Remove.
49133         * benchtests/slowtan-inputs: Remove.
49134         * benchtests/slowtan.c: Remove.
49135         * benchtests/tan-inputs: Add slow benchmark inputs.
49136         * scripts/bench.pl: Parse comments and directives.
49137
49138         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
49139         in CPPFLAGS.
49140         ($(objpfx)bench-%.c): Remove *-ITER.
49141         * benchtests/bench-modf.c: Remove definition of ITER.
49142         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
49143         (main): Loop for DURATION seconds instead of fixed number of
49144         iterations.
49145         * scripts/bench.pl: Don't expect iterations in parameters.
49146
49147 2013-04-29  Roland McGrath  <roland@hack.frob.com>
49148
49149         * io/fchdir.c (__fchdir): Renamed from fchdir.
49150         (fchdir): Define as weak alias.
49151
49152 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
49153
49154         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
49155         (ERRNO_EDOM): Likewise.
49156         (ERRNO_ERANGE): Likewise.
49157         (noErrnoTests): New variable.
49158         (init_max_error): Set errno to 0.
49159         (test_single_errno): New function.
49160         (test_errno): Likewise.
49161         (check_float_internal): Call test_errno.  Set errno to 0.
49162         (check_complex): Refer to errno tests in comment.
49163         (check_int): Call test_errno.  Set errno to 0.
49164         (check_long): Likewise.
49165         (check_bool): Likewise.
49166         (check_longlong): Likewise.
49167         (cos_test): Use ERRNO_* flags for errno tests instead of
49168         check_int.
49169         (expm1_test): Likewise.
49170         (fmod_test): Likewise.
49171         (ilogb_test): Likewise.
49172         (lgamma_test): Likewise.
49173         (pow_test): Likewise.
49174         (remainder_test): Likewise.
49175         (sin_test): Likewise.
49176         (tan_test): Likewise.
49177         (yn_test): Likewise.
49178         (initialize): Set errno to 0.
49179         (main): Print number of errno tests.
49180         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
49181
49182 2013-04-29  Andreas Jaeger  <aj@suse.de>
49183
49184         [BZ #15084]
49185         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
49186         and RES_USEVC.
49187
49188         [BZ #15085]
49189         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
49190         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
49191         unimplemented.
49192
49193         [BZ #15380]
49194         * stdlib/random.c (__initstate): Return NULL if
49195         __initstate fails.
49196
49197         [BZ #15086]
49198         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
49199         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
49200         RES_SNGLKUPREOP.
49201
49202 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49203
49204         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49205
49206 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
49207
49208         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
49209         of individual tests.
49210         (casin_test): Likewise.
49211         (casinh_test): Likewise.
49212
49213 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
49214
49215         [BZ #15409]
49216         * math/s_catan.c (__catan): Handle arguments with large real or
49217         imaginary part separately without squaring.
49218         * math/s_catanf.c (__catanf): Likewise.
49219         * math/s_catanh.c (__catanh): Likewise.
49220         * math/s_catanhf.c (__catanhf): Likewise.
49221         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
49222         and redefine.
49223         (__catanhl): Handle arguments with large real or imaginary part
49224         separately without squaring.
49225         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
49226         and redefine.
49227         (__catanl): Handle arguments with large real or imaginary part
49228         separately without squaring.
49229         * math/libm-test.inc (catan_test): Add more tests.
49230         (catanh_test): Likewise.
49231         * sysdeps/i386/fpu/libm-test-ulps: Update.
49232         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49233
49234 2013-04-27  Andreas Jaeger  <aj@suse.de>
49235
49236         [BZ #15007]
49237         * stdlib/stdlib.h: Update guards for qecvt.
49238         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
49239         <stdlib.h>.
49240
49241 2013-04-27  Allan McRae  <allan@archlinux.org>
49242
49243         * sysdeps/i386/fpu/libm-test-ulps: Update.
49244
49245 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
49246
49247         [BZ #15406]
49248         * math/s_catan.c: Include <float.h>.
49249         (__catan): Ensure underflow exception occurs for underflowed
49250         result.
49251         * math/s_catanf.c: Include <float.h>.
49252         (__catanf): Ensure underflow exception occurs for underflowed
49253         result.
49254         * math/s_catanh.c: Include <float.h>.
49255         (__catanh): Ensure underflow exception occurs for underflowed
49256         result.
49257         * math/s_catanhf.c: Include <float.h>.
49258         (__catanhf): Ensure underflow exception occurs for underflowed
49259         result.
49260         * math/s_catanhl.c: Include <float.h>.
49261         (__catanhl): Ensure underflow exception occurs for underflowed
49262         result.
49263         * math/s_catanl.c: Include <float.h>.
49264         (__catanl): Ensure underflow exception occurs for underflowed
49265         result.
49266         * math/libm-test.inc (catan_test): Add more tests.
49267         (catanh_test): Likewise.
49268
49269         [BZ #15405]
49270         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
49271         underflowed result.
49272         * math/s_ccoshf.c (__ccoshf): Likewise.
49273         * math/s_ccoshl.c (__ccoshl): Likewise.
49274         * math/s_csin.c (__csin): Likewise.
49275         * math/s_csinf.c (__csinf): Likewise.
49276         * math/s_csinh.c (__csinh): Likewise.
49277         * math/s_csinhf.c (__csinhf): Likewise.
49278         * math/s_csinhl.c (__csinhl): Likewise.
49279         * math/s_csinl.c (__csinl): Likewise.
49280         * math/libm-test.inc (ccos_test): Add more tests.
49281         (ccosh_test): Likewise.
49282         (csin_test): Likewise.
49283         (csinh_test): Likewise.
49284
49285 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49286
49287         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
49288         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
49289         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
49290         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
49291         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
49292         powerpc/power5+/fpu folders.
49293         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
49294
49295
49296 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
49297
49298         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
49299
49300 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
49301
49302         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
49303         additions to variable.
49304         [$(config-machine) = x86_64] (modules-names): Likewise.
49305         ($(objpfx)tst-audit3): Remove dependency.
49306         ($(objpfx)tst-audit3.out): Likewise.
49307         ($(objpfx)tst-audit4): Likewise.
49308         ($(objpfx)tst-audit4.out): Likewise.
49309         ($(objpfx)tst-audit5): Likewise.
49310         ($(objpfx)tst-audit5.out): Likewise.
49311         ($(objpfx)tst-audit6): Likewise.
49312         ($(objpfx)tst-audit6.out): Likewise.
49313         ($(objpfx)tst-audit7): Likewise.
49314         ($(objpfx)tst-audit7.out): Likewise.
49315         (tst-audit3-ENV): Remove variable.
49316         (tst-audit4-ENV): Likewise.
49317         (tst-audit5-ENV): Likewise.
49318         (tst-audit6-ENV): Likewise.
49319         (tst-audit7-ENV): Likewise.
49320         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
49321         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
49322         addition to variable.
49323         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
49324         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
49325         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
49326         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
49327         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
49328         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
49329         tst-audit3, tst-audit4 and tst-audit5.
49330         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
49331         tst-audit6 and tst-audit7.
49332         [$(subdir) = elf] (modules-names): Add audit modules for those
49333         tests.
49334         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
49335         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
49336         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
49337         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
49338         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
49339         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
49340         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
49341         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
49342         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
49343         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
49344         [$(subdir) = elf] (tst-audit3-ENV): New variable.
49345         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
49346         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
49347         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
49348         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
49349         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
49350         Likewise.
49351         [$(subdir) = elf && $(config-cflags-avx) = yes]
49352         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
49353         [$(subdir) = elf && $(config-cflags-avx) = yes]
49354         (CFLAGS-tst-auditmod4a.c): Likewise.
49355         [$(subdir) = elf && $(config-cflags-avx) = yes]
49356         (CFLAGS-tst-auditmod4b.c): Likewise.
49357         [$(subdir) = elf && $(config-cflags-avx) = yes]
49358         (CFLAGS-tst-auditmod6b.c): Likewise.
49359         [$(subdir) = elf && $(config-cflags-avx) = yes]
49360         (CFLAGS-tst-auditmod6c.c): Likewise.
49361         [$(subdir) = elf && $(config-cflags-avx) = yes]
49362         (CFLAGS-tst-auditmod7b.c): Likewise.
49363         * elf/tst-audit3.c: Move to ...
49364         * sysdeps/x86_64/tst-audit3.c: ... here.
49365         * elf/tst-audit4.c: Move to ...
49366         * sysdeps/x86_64/tst-audit4.c: ... here.
49367         * elf/tst-audit5.c: Move to ...
49368         * sysdeps/x86_64/tst-audit5.c: ... here.
49369         * elf/tst-audit6.c: Move to ...
49370         * sysdeps/x86_64/tst-audit6.c: ... here.
49371         * elf/tst-audit7.c: Move to ...
49372         * sysdeps/x86_64/tst-audit7.c: ... here.
49373         * elf/tst-auditmod3a.c: Move to ...
49374         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
49375         * elf/tst-auditmod3b.c: Move to ...
49376         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
49377         * elf/tst-auditmod4a.c: Move to ...
49378         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
49379         * elf/tst-auditmod4b.c: Move to ...
49380         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
49381         * elf/tst-auditmod5a.c: Move to ...
49382         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
49383         * elf/tst-auditmod5b.c: Move to ...
49384         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
49385         * elf/tst-auditmod6a.c: Move to ...
49386         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
49387         * elf/tst-auditmod6b.c: Move to ...
49388         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
49389         * elf/tst-auditmod6c.c: Move to ...
49390         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
49391         * elf/tst-auditmod7a.c: Move to ...
49392         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
49393         * elf/tst-auditmod7b.c: Move to ...
49394         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
49395
49396 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
49397
49398         [BZ #15366]
49399         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
49400         define unconditionally.
49401         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
49402         define unconditionally.
49403         (INT8_C, INT16_C, etc.): Likewise.
49404
49405 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
49406
49407         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
49408         __ehdr_start with hidden visibility.
49409
49410         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
49411
49412 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
49413
49414         * math/libm-test.inc (cos_test): Use accurate hex constants.
49415         (sincost_test): Likewise.
49416
49417 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
49418
49419         * math/libm-test.inc (catan_test): Add more tests.
49420         (catanh_test): Likewise.
49421
49422         * math/s_catanf.c (__catanf): Use suffixed floating-point
49423         constants.
49424         * math/s_catanhf.c (__catanhf): Likewise.
49425         * math/s_catanhl.c (__catanhl): Likewise.
49426         * math/s_catanl.c (__catanl): Likewise.
49427
49428         [BZ #15394]
49429         * math/s_catan.c (__catan): Calculate imaginary part of result
49430         with log1p not log unless computing log of number close to 0.
49431         * math/s_catanf.c (__catanf): Likewise.
49432         * math/s_catanl.c (__catanl): Likewise.
49433         * math/s_catanh.c (__catanh): Calculate real part of result with
49434         log1p not log unless computing log of number close to 0.
49435         * math/s_catanhf.c (__catanhf): Likewise.
49436         * math/s_catanhl.c (__catanhl): Likewise.
49437         * math/libm-test.inc (catan_test): Add more tests.
49438         (catanh_test): Likewise.
49439         * sysdeps/i386/fpu/libm-test-ulps: Update.
49440         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49441
49442 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
49443
49444         * benchtests/Makefile: Mention files in which fast and slow
49445         paths of math functions are implemented.
49446
49447 2013-04-23  Roland McGrath  <roland@hack.frob.com>
49448
49449         * sysdeps/posix/timespec_get.c: New file.
49450
49451 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49452
49453         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
49454         POWER.
49455         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
49456         for POWER.
49457         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
49458         powerpc/power5/fpu folders.
49459         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
49460         * benchtests/Makefile: Add modf testcase.
49461         * benchtests/bench-modf.c: New file: Benchmark test for mo
49462
49463 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
49464
49465         [BZ #14888]
49466         * time/Makefile (tests): Add tst-strptime-whitespace.
49467         * time/strptime_l.c (get_number): Use ISSPACE.
49468         (__strptime_internal): Likewise.
49469         * time/tst-strptime-whitespace.c: New test case.
49470
49471 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
49472
49473         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
49474         member.
49475         (_nss_files_init): Set it here.
49476
49477 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
49478
49479         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
49480         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
49481         unsigned.
49482
49483 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
49484
49485         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
49486
49487 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
49488
49489         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
49490         size just once.
49491
49492 2013-04-21  David S. Miller  <davem@davemloft.net>
49493
49494         * po/ru.po: Update Russion translation from translation project.
49495
49496 2013-04-17  Adam Conrad  <adconrad@0c3.net>
49497
49498         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
49499         and setfsgid.
49500
49501 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
49502
49503         * configure.in: Remove i386 configure warning. Remove i386 case.
49504         * configure: Regenerate.
49505         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
49506         Add example to error message.
49507         * sysdeps/i386/configure: Regenerate.
49508
49509 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
49510
49511         * benchtests/Makefile (bench): Add cos, tan, slowcos and
49512         slowtan.
49513         * benchtests/cos-inputs: New file.
49514         * benchtests/slowcos-inputs: New file.
49515         * benchtests/slowcos.c: New file.
49516         * benchtests/slowtan-inputs: New file.
49517         * benchtests/slowtan.c: New file.
49518         * benchtests/tan-inputs: New file.
49519
49520 2013-04-16  Roland McGrath  <roland@hack.frob.com>
49521
49522         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
49523         considered kosher.
49524
49525 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
49526
49527         * benchtests/Makefile: Include cppflags-iterator.mk to add
49528         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
49529
49530         * Makefile.in (bench-clean): New target.
49531         * benchtests/Makefile (bench-clean): Likewise.
49532
49533 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
49534
49535         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
49536
49537 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
49538
49539         * stdio-common/tstdiomisc.c: Fix coding-style violation.
49540
49541 2013-04-15  Andreas Schwab  <schwab@suse.de>
49542
49543         * nscd/grpcache.c (cache_addgr): Properly check for short write.
49544         * nscd/initgrcache.c (addinitgroupsX): Likewise.
49545         * nscd/pwdcache.c (cache_addpw): Likewise.
49546         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
49547         more than recsize.
49548
49549 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49550
49551         * benchtests/Makefile (bench): Write all output to
49552         bench-out.tmp together.
49553
49554 2013-04-15  Andreas Schwab  <schwab@suse.de>
49555
49556         * nscd/nscd.c (main): Don't fork again after closing files.
49557
49558 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49559
49560         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
49561
49562         * benchtests/Rules (bench-deps): Collect dependencies into a
49563         single variable.  Add Makefile to dependencies.
49564         ($(objpfx)bench-%.c): Depend on bench-deps.
49565
49566 2013-04-12  Roland McGrath  <roland@hack.frob.com>
49567             Xavier Roche  <roche+kml2@exalead.com>
49568
49569         [BZ #15361]
49570         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
49571         just that it's a file descriptor.
49572         * manual/llio.texi (Synchronizing AIO Operations): Update description
49573         for EBADF error from aio_fsync.
49574
49575 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49576
49577         * Rules (bench): Move target definition...
49578         * benchtests/Makefile: ... here.
49579
49580 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
49581
49582         * math/libm-test.inc (cos_test): Fix PI/2 test.
49583         (sincos_test): Likewise.
49584         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
49585         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
49586
49587 2013-04-11  Andreas Schwab  <schwab@suse.de>
49588
49589         [BZ #13988]
49590         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
49591         accept exponent character only when digits were seen.
49592         * stdio-common/Makefile (tests): Add bug26.
49593         * stdio-common/bug26.c: New file.
49594
49595         [BZ #14293]
49596         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
49597         non-freeable.
49598
49599 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49600
49601         * Makeconfig (rtld-prefix): Define built linker prefix.
49602         * Rules (run-bench): Use it.
49603         * math/Makefile (run-regen-ulps): Likewise.
49604
49605         * Rules (bench): Remove eval.
49606
49607 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49608             Roland McGrath  <roland@hack.frob.com>
49609             Ondrej Bilka  <neleai@seznam.cz>
49610
49611         [BZ #15346]
49612         * time/getdate.c: Include ctype.h and alloca.h.
49613         (__getdate_r): Trim leading and trailing spaces of input.
49614         * time/tst-getdate.c (tests): Add tests with leading and
49615         trailing spaces.
49616
49617 2013-04-08  Roland McGrath  <roland@hack.frob.com>
49618
49619         [BZ #14280]
49620         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
49621         when computing value.
49622
49623 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49624
49625         * math/README.libm-test (How can I generate "libm-test-ulps"?):
49626         Use testrun.sh to run libm tests.
49627
49628         [BZ #15309]
49629         * elf/dl-open.c (dl_open_worker): memset all of seen array.
49630
49631 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
49632
49633         [BZ #15264]
49634         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
49635
49636 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49637
49638         * Makefile.in (regen-ulps): New target.
49639         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
49640         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
49641         [ifneq (no,$(PERL)] (regen-ulps): New target.
49642         [ifeq (no,$(PERL)] (regen-ulps): New target.
49643         * math/libm-test.inc (ulps_file_name): Define.
49644         (output_dir): New variable.
49645         (options): Add "output-dir" option.
49646         (parse_opt): Handle 'o' case.
49647         (main): If output_dir is non-NULL use it as a prefix
49648         otherwise use "".
49649         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
49650
49651 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49652
49653         [BZ #10060, #10062]
49654         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
49655         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
49656         fail configure if __sync_val_compare_and_swap is not inlined.
49657         * sysdeps/i386/configure: Regenerate.
49658         * configure.in: Build for i686 when configured for i386.
49659         * configure: Regenerate.
49660         * README: Remove i386 reference.
49661
49662 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49663
49664         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
49665         * sysdeps/s390/s390-64/sysdep.h: Likewise.
49666
49667 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
49668
49669         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
49670         (lmsnanval): New variables.
49671         (F): Add conversion tests.
49672         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
49673         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
49674
49675         * stdio-common/tstdiomisc.c (F): Properly collect individual
49676         tests' results.
49677
49678         [BZ #14686, #15336]
49679         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
49680         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
49681         Instead, use input NaN values or generate a qNaN by arithmetic
49682         operation.  Also fix bugs to comply with the standard.
49683         * math/libm-test.inc (remainder_test): Add more tests.
49684
49685         [BZ #15335, #15342]
49686         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
49687         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
49688         input NaN values or generate a qNaN by arithmetic operation.
49689
49690         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
49691         unreachable code.
49692
49693         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
49694         definitions.
49695
49696 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
49697
49698         [BZ #14478]
49699         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
49700         underflowed result.
49701         * math/s_cexpf.c (__cexpf): Likewise.
49702         * math/s_cexpl.c (__cexpl): Likewise.
49703         * math/libm-test.inc (cexp_test): Add more tests.
49704
49705 2013-04-03  Andreas Schwab  <schwab@suse.de>
49706
49707         [BZ #15330]
49708         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
49709         order arrays from heap if bigger than alloca cutoff.
49710
49711 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
49712
49713         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
49714         (SNAN_TESTS_double): Refer to GCC PR56831.
49715         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
49716         GCC PR56828.
49717
49718 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49719
49720         * Rules (bench): Move bench.out after the run is complete.
49721
49722         * Rules (bench): Echo currently running benchmark.
49723
49724         * benchtests/Makefile (bench): Add atan and slowatan.
49725         * benchtests/atan-inputs: New file.
49726         * benchtests/slowatan-inputs: New file.
49727         * benchtests/slowatan.c: New file.
49728
49729         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
49730         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
49731         its value.
49732
49733         [BZ #15305]
49734         * sysdeps/unix/sysv/linux/kernel-features.h
49735         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
49736         __ASSUME_XFS_RESTRICTED_CHOWN.
49737         * sysdeps/unix/sysv/linux/pathconf.c
49738         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
49739         Save and restore errno.
49740
49741 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
49742
49743         [BZ #15327]
49744         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
49745         arguments using __kernel_casinh.
49746         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
49747         arguments using __kernel_casinhf.
49748         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
49749         arguments using __kernel_casinhl.
49750         * math/libm-test.inc (cacosh_test): Add more tests.
49751         * sysdeps/i386/fpu/libm-test-ulps: Update.
49752         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49753
49754 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
49755
49756         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
49757         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
49758
49759         * bench/Makefile (bench): Add sin and slowsin.
49760         * benchtests/sin-inputs: New file.
49761         * benchtests/slowsin-inputs: New file.
49762         * benchtests/slowsin.c: New file.
49763
49764         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
49765         (bench): Add slowexp and slowpow.
49766         (exp-ITER): Increase iterations.
49767         (pow-ITER): Likewise.
49768         * benchtests/exp-inputs: Change input.
49769         * benchtests/pow-inputs: Likewise.
49770         * benchtests/slowexp-inputs: New file.
49771         * benchtests/slowexp.c: New file.
49772         * benchtests/slowpow-inputs: New file.
49773         * benchtests/slowpow.c: New file.
49774
49775 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49776
49777         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
49778         instructions.
49779         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
49780         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
49781         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49782         * benchtests/Makefile: Add rint benchtest.
49783         * benchtests/rint-inputs: Input for rint benchtest.
49784
49785 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
49786
49787         * Versions.def (libm): Add GLIBC_2.18.
49788         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
49789         hidden libm prototypes.
49790         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
49791         * math/Makefile (libm-calls): Add s_issignaling.
49792         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
49793         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
49794         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
49795         declaration.
49796         * math/math.h [__USE_GNU] (issignaling): New macro.
49797         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
49798         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
49799         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
49800         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
49801         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
49802         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
49803         * manual/arith.texi (issignaling): New section.
49804         * manual/libm-err-tab.pl (@all_functions): Update comment.
49805         * math/gen-libm-test.pl (parse_args): Apply special handling for
49806         issignaling.
49807         * math/libm-test.inc (print_float, issignaling_test): New
49808         functions.
49809         (check_float_internal): Add issignaling checks.
49810         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
49811         default definition.
49812         * sysdeps/powerpc/math-tests.h: New file.
49813         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
49814         tests.
49815         * math/test-snan.c (TEST_FUNC): Likewise.
49816
49817 2013-03-30  David S. Miller  <davem@davemloft.net>
49818
49819         * po/de.po: Update from translation team.
49820
49821 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
49822
49823         [BZ #10357]
49824         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49825         imaginary part less than 1.0 and real part less than 0.5
49826         specially.
49827         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49828         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49829         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
49830         (cacos_test): Add more tests.
49831         (casin_test): Likewise.
49832         (casinh_test): Likewise.
49833         * sysdeps/i386/fpu/libm-test-ulps: Update.
49834         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49835
49836 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49837
49838         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
49839         ONE with its value.
49840
49841         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
49842         (__pow_mp): Replace ONE and MONE with their values.
49843         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49844         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
49845         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49846         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
49847         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49848         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49849
49850         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
49851
49852         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
49853         (__pow_mp): Replace ZERO and MZERO with their values.
49854         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49855         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49856         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49857         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
49858         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49859         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
49860         (__sqr): Likewise.
49861
49862         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
49863
49864         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
49865
49866 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49867
49868         * include/stdlib.h [!SHARED] (__call_tls_dtors):
49869         Declare with __attribute__ ((weak)).
49870         * stdlib/exit.c (__libc_atexit) [!SHARED]:
49871         Call __call_tls_dtors only if it's not NULL.
49872
49873 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49874
49875         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
49876         didn't do it already, then set _dl_phdr and _dl_phnum based on the
49877         magic __ehdr_start linker symbol if it's defined.
49878         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
49879         them up here if it was already done.
49880
49881         * elf/dl-support.c (_dl_phdr): Make pointer to const.
49882         (_dl_aux_init): Use const in cast when setting it.
49883         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
49884         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
49885         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
49886
49887         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
49888         Declare them here.
49889         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
49890         * csu/libc-tls.c: Nor here.
49891         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
49892
49893         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
49894         (__libc_message): Never call vsyslog.
49895
49896 2013-03-28  Alan Modra  <amodra@gmail.com>
49897
49898         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
49899         Define as empty.
49900         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
49901         Likewise.
49902
49903 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49904
49905         [BZ #15214]
49906         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
49907         underflow.
49908         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49909
49910 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
49911
49912         [BZ #15304]
49913         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
49914         Don't add gid passed as argument.
49915
49916         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
49917
49918 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
49919
49920         [BZ #15307]
49921         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49922         imaginary part between 1.0 and 1.5 and real part less than 0.5
49923         specially.
49924         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49925         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49926         * math/libm-test.inc (cacos_test): Add more tests.
49927         (casin_test): Likewise.
49928         (casinh_test): Likewise.
49929         * sysdeps/i386/fpu/libm-test-ulps: Update.
49930         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49931
49932 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
49933
49934         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
49935         constants.
49936         (norm): Likewise.
49937         (denorm): Likewise.
49938         (__dbl_mp): Likewise.
49939         (add_magnitudes): Likewise.
49940         (sub_magnitudes): Likewise.
49941         (__add): Likewise.
49942         (__sub): Likewise.
49943         (__mul): Likewise.
49944         (__sqr): Likewise.
49945         (__inv): Likewise.
49946         (__dvd): Likewise.
49947
49948         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
49949         commented code.
49950         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
49951         (__dubcos): Likewise.
49952         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
49953         (__ieee754_acos): Likewise.
49954         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49955         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
49956         (__exp1): Likewise.
49957         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49958         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
49959         (log1): Likewise.
49960         (my_log2): Likewise.
49961         (checkint): Likewise.
49962         * sysdeps/ieee754/dbl-64/e_remainder.c
49963         (__ieee754_remainder): Likewise.
49964         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49965         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
49966         (bsloww): Likewise.
49967         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49968
49969         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49970         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
49971         MANTISSA_STORE_T to store computations on mantissa.  Use
49972         macros for rounding and division.
49973         (denorm): Likewise.
49974         (__dbl_mp): Likewise.
49975         (add_magnitudes): Likewise.
49976         (sub_magnitudes): Likewise.
49977         (__mul): Likewise.
49978         (__sqr): Likewise.
49979         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49980         powers of two in terms of TWOPOW macro.
49981         (mp_no): Make type of mantissa as MANTISSA_T.
49982         [!RADIXI]: Define RADIXI.
49983         [!TWO52]: Define TWO52.
49984         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49985
49986 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49987
49988         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
49989         llroundl symbol when building for PPC32.
49990
49991 2013-03-24  Mark H Weaver  <mhw@netris.org>
49992
49993         * manual/arith.texi (Normalization Functions): Fix prototypes for
49994         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
49995
49996 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49997
49998         [BZ #13889]
49999         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
50000         high value to check if expl overflow.
50001         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
50002         to check for underflow and overflow.
50003         * math/libm-test.inc: Add exp test.
50004
50005 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
50006
50007         [BZ #11120]
50008         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
50009         with NOT_IN_libc.
50010
50011 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50012
50013         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
50014         symbol.
50015
50016 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
50017
50018         * math/gen-libm-test.pl (parse_args, special_functions): Properly
50019         wrap blocks consisting of several statements.
50020
50021         * sysdeps/generic/math-tests.h: New file.
50022         * sysdeps/i386/fpu/math-tests.h: Likewise.
50023         * math/test-snan.c: Include it.
50024         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
50025
50026 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
50027
50028         [BZ #15285]
50029         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
50030         (__ieee754_j0l): Do not improve calculations using cos of twice
50031         input for inputs above LDBL_MAX / 2.0L.
50032         (__ieee754_y0l): Likewise.
50033         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
50034         (__ieee754_j1l): Do not improve calculations using cos of twice
50035         input for inputs above LDBL_MAX / 2.0L.
50036         (__ieee754_y1l): Likewise.
50037         * math/libm-test.inc (j0_test): Add another test.
50038         (j1_test): Likewise.
50039         (y0_test): Likewise.
50040         (y1_test): Likewise.
50041         * sysdeps/i386/fpu/libm-test-ulps: Update.
50042
50043 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50044
50045         * Rules ($(objpfx)bench-%.c): Include code from a C source
50046         file.
50047
50048 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
50049
50050         [BZ #15287]
50051         * math/k_casinh.c (__kernel_casinh): Handle arguments with
50052         imaginary part 1.0 and real part less than 0.5 specially.
50053         * math/k_casinhf.c (__kernel_casinhf): Likewise.
50054         * math/k_casinhl.c (__kernel_casinhl): Likewise.
50055         * math/libm-test.inc (cacos_test): Add more tests.
50056         (casin_test): Likewise.
50057         (casinh_test): Likewise.
50058         * sysdeps/i386/fpu/libm-test-ulps: Update.
50059         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50060
50061 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50062
50063         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
50064         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
50065
50066 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
50067
50068         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
50069         * config.make.in (config-cflags-sse4): Remove variable.
50070         (config-cflags-avx): Likewise.
50071         (config-cflags-sse2avx): Likewise.
50072         (config-cflags-novzeroupper): Likewise.
50073         (config-asflags-i686): Likewise.
50074         (have-mfma4): Likewise.
50075         (have-as-vis3): Likewise.
50076         (MIG): Likewise.
50077         * configure.in (MIG): Do not AC_SUBST.
50078         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
50079         (libc_cv_cc_sse4): Do not AC_SUBST.
50080         (libc_cv_cc_avx): Likewise.
50081         (libc_cv_cc_sse2avx): Likewise.
50082         (libc_cv_cc_novzeroupper): Likewise.
50083         (libc_cv_cc_fma4): Likewise.
50084         (libc_cv_as_i686): Likewise.
50085         (libc_cv_sparc_as_vis3): Likewise.
50086         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
50087         LIBC_CONFIG_VAR.
50088         (config-asflags-i686): Likewise.
50089         (config-cflags-avx): Likewise.
50090         (config-cflags-sse2avx): Likewise.
50091         (have-mfma4): Likewise.
50092         (config-cflags-novzeroupper): Likewise.
50093         * sysdeps/mach/configure.in (MIG): Likewise.
50094         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
50095         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
50096         LIBC_CONFIG_VAR.
50097         (config-cflags-avx): Likewise.
50098         (config-cflags-sse2avx): Likewise.
50099         (have-mfma4): Likewise.
50100         (config-cflags-novzeroupper): Likewise.
50101         * configure: Regenerated.
50102         * sysdeps/i386/configure: Likewise.
50103         * sysdeps/mach/configure: Likewise.
50104         * sysdeps/sparc/configure: Likewise.
50105         * sysdeps/x86_64/configure: Likewise.
50106
50107 2013-03-20  Roland McGrath  <roland@hack.frob.com>
50108
50109         [BZ #14812]
50110         * locale/programs/localedef.c (options): Put N_ translation marker
50111         on argument names, not just descriptions.
50112
50113 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
50114
50115         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
50116
50117 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
50118
50119         [BZ #14176]
50120         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
50121
50122 2013-03-19  Roland McGrath  <roland@hack.frob.com>
50123
50124         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
50125         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
50126         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
50127         [!BEFORE_ABORT] (before_abort): New function.
50128         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
50129         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
50130         (writev_for_fatal): New function.
50131         (WRITEV_FOR_FATAL): New macro; call that.
50132         (backtrace_and_maps): New function.
50133         (BEFORE_ABORT): New macro; call that.
50134         (struct str_list): Type removed.
50135         (__libc_message, __libc_fatal): Functions removed.
50136         Include <sysdeps/posix/libc_fatal.c> instead.
50137
50138 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
50139
50140         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
50141         constants.
50142         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
50143         double constants.
50144
50145 2013-03-19  Andreas Schwab  <schwab@suse.de>
50146
50147         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
50148         * sysdeps/gnu/configure: Regenerate.
50149
50150         * configure.in: Substitute libc_cv_rtlddir.
50151         * configure: Regenerate.
50152         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
50153         * Makeconfig (rtlddir, inst_rtlddir): New variables.
50154         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
50155         * elf/Makefile (install-others, CFLAGS-interp.c)
50156         (ldso_install, common-ldd-rewrite): Likewise.
50157         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
50158         $(inst_slibdir)/$(rtld-installed-name).
50159         * scripts/rellns-sh: Add -p option.
50160         * Makerules (make-shlib-link): Use rellns-sh to get relative name
50161         for source.
50162
50163 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50164
50165         * manual/nptl.texi: Renamed to ...
50166         * manual/threads.texi: ... this.
50167         * manual/Makefile (chapters): Update.
50168
50169 2013-03-18  Roland McGrath  <roland@hack.frob.com>
50170
50171         [BZ #14812]
50172         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
50173         on argument names, not just descriptions.
50174         * malloc/memusagestat.c (options): Likewise.
50175         * nss/getent.c (options): Likewise.
50176
50177 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
50178
50179         [BZ #14812]
50180         * iconv/iconv_prog.c (options): Put N_ translation marker
50181         on argument names, not just descriptions.
50182         * iconv/iconvconfig.c (options): Likewise.
50183
50184 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
50185
50186         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
50187         implementation which is faster on all x86_64 architectures.
50188         Tested on AMD, Intel Nehalem, SNB, IVB.
50189         * sysdeps/x86_64/strnlen.S: Likewise.
50190
50191         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
50192         Remove all multiarch strlen and strnlen versions.
50193         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
50194         Remove strlen and strnlen related parts.
50195
50196         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
50197         Inline strlen part.
50198         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
50199
50200         * sysdeps/x86_64/multiarch/strlen.S: Remove.
50201         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
50202         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
50203         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
50204         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
50205         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
50206
50207 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
50208
50209         * manual/memory.texi (Malloc Tunable Parameters):
50210         Sort parameters alphabetically. Add comments for missing entries.
50211
50212 2013-03-17  David S. Miller  <davem@davemloft.net>
50213
50214         * sysdeps/sparc/fpu/libm-test-ulps: Update.
50215
50216 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
50217
50218         [BZ #15283]
50219         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
50220         for arguments at most half maximum finite value.
50221         * math/libm-test.inc (j0_test): Add more tests.
50222         (j1_test): Likewise.
50223         (y0_test): Likewise.
50224         (y1_test): Likewise.
50225         * sysdeps/i386/fpu/libm-test-ulps: Update.
50226         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50227
50228         [BZ #14155]
50229         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
50230         1 / x and functions P and Q for arguments above 0x1p256L.
50231         (__ieee754_y0l): Likewise.
50232         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
50233         (__ieee754_y1l): Likewise.
50234         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
50235         (j1_test): Likewise.
50236         (y0_test): Likewise.
50237         (y1_test): Likewise.
50238
50239 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
50240
50241         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
50242         variable.
50243
50244 2013-03-15  Roland McGrath  <roland@hack.frob.com>
50245
50246         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
50247         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
50248         zero since it's initialized to EXEC_PAGESIZE.
50249
50250         * sysdeps/unix/sysv/linux/ldsodefs.h
50251         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
50252         * sysdeps/generic/ldsodefs.h: ... here.
50253
50254 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
50255
50256         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
50257
50258         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
50259         math/test-snan.c.
50260         * math/test-snan.c: Renamed from
50261         sysdeps/powerpc/fpu/test-powerpc-snan.c.
50262         * math/Makefile (tests): Add test-snan.
50263         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
50264         test-powerpc-snan.
50265
50266         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
50267         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
50268         functions.
50269         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
50270         __builtin_nan family of functions.
50271         * math/libm-test.inc (initialize): Initialize qnan_value with
50272         __builtin_nan family of functions.
50273         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
50274         Remove variables.
50275         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
50276         Remove functions.
50277         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
50278         storage class.  Initialize qNaN_var and sNaN_var with
50279         __builtin_nan and __builtin_nans families of functions,
50280         respectively.
50281
50282         * math/libm-test.inc (acosh_test): Also test with qNaN input.
50283         (sqrt_test): Remove duplicate test with qNaN input.
50284         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
50285         (round_test, signbit_test, significand_test): Note missing +/-Inf
50286         as well as qNaN tests.
50287
50288         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
50289         qNaN_var.  Fix a few strings, too.
50290         * math/libm-test.inc (nan_value): Rename to qnan_value.
50291         * math/gen-libm-test.pl (%beautify): Adjust to that.
50292         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
50293         * math/test-misc.c (main): Likewise.
50294         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
50295         to __qnan_bytes, and __qnan_union, respectively.
50296         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
50297         Likewise.
50298         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
50299         and lqnanval, respectively.
50300         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
50301         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
50302         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
50303         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
50304
50305         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
50306         * math/test-misc.c (main) [__x86_64__]: Enable test for long
50307         doubles.
50308
50309         * math/test-misc.c (main): Fix copy'n'pastos.
50310         * misc/tst-efgcvt.c (special): Likewise.
50311
50312         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
50313         Remove declarations.
50314
50315 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50316
50317         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
50318         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
50319         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
50320         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
50321
50322 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50323
50324         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
50325         macro to return vdso values correctly in IFUNC implementations.
50326         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
50327         Optimization by using IFUNC.
50328
50329 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50330             Richard Henderson  <rth@redhat.com>
50331             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
50332
50333         * Makefile.in (bench): New target.
50334         * NEWS: Mention the benchmark framework.
50335         * Rules (bench): Likewise.
50336         (binaries-bench): Generate binaries for functions to
50337         benchmark.
50338         * benchtests/Makefile: New makefile for benchmark tests.
50339         * benchtests/bench-skeleton.c: New skeleton file for benchmark
50340         programs.
50341         * benchtests/exp-inputs: New input file for EXP function.
50342         * benchtests/pow-inputs: New input file for POW function.
50343         * scripts/bench.pl: New script to generate source files for
50344         benchmark programs.
50345
50346 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50347
50348         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
50349         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
50350         computations on mantissa.  Use macros for rounding and
50351         division.
50352         (denorm): Likewise.
50353         (__dbl_mp): Likewise.
50354         (add_magnitudes): Likewise.
50355         (sub_magnitudes): Likewise.
50356         (__mul): Likewise.
50357         (__sqr): Likewise.
50358         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
50359         powers of two in terms of TWOPOW macro.
50360         (mp_no): Make type of mantissa as MANTISSA_T.
50361         [!RADIXI]: Define RADIXI.
50362         [!TWO52]: Define TWO52.
50363         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
50364
50365         * manual/nptl.texi (cindex): Modify threads to pthreads.
50366
50367 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
50368
50369         * sysdeps/x86_64/preconfigure: Regenerated.
50370
50371 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
50372
50373         [BZ #14155]
50374         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
50375         0x1p28 and above.
50376         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
50377         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
50378         0x1p28 and above.
50379         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
50380         * math/libm-test.inc (j0_test): Do not allow one spurious
50381         underflow exception.
50382         (y1_test): Likewise.
50383
50384 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
50385
50386         * manual/Makefile (chapters): Add nptl.
50387         * manual/debug.texi (Debugging Support): Add link to Threads
50388         chapter.
50389         * manual/nptl.texi: New file.
50390
50391         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
50392
50393 2013-03-14  Petr Baudis  <pasky@ucw.cz>
50394
50395         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
50396         for non-NULL pointer before the memory validity test. Pointed
50397         out by Holger Brunck <holger.brunck@keymile.com>.
50398
50399 2013-03-13  Andreas Schwab  <schwab@suse.de>
50400
50401         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
50402         instead of .os.
50403
50404 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
50405
50406         * timezone/zic.c: Update from tzcode 2013b.
50407
50408 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
50409
50410         * manual/install.texi (Configuring and compiling):
50411         Mention i686 and i586.
50412         * INSTALL: Regenerate.
50413
50414 2013-03-12  Roland McGrath  <roland@hack.frob.com>
50415
50416         * sysdeps/init_array/elf-init.c: New file.
50417         * csu/elf-init.c
50418         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
50419         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
50420
50421         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
50422         __gmon_start__ as global, but as static with a .preinit_array pointer.
50423         * sysdeps/init_array/gmon-start.c: New file.  Use that.
50424         * sysdeps/init_array/crti.S: New file, empty except for comments.
50425         * sysdeps/init_array/crtn.S: Likewise.
50426
50427 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
50428
50429         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
50430         definining bcopy.
50431         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
50432         Remove Prefer_SSE_for_memop.
50433         * sysdeps/x86_64/multiarch/init-arch.h: Remove
50434         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
50435         HAS_PREFER_SSE_FOR_MEMOP.
50436         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
50437         memset-x86-64.
50438         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50439         Remove bzero, memset ifunc support.
50440         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
50441         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
50442         * sysdeps/x86_64/multiarch/memset.S: Likewise.
50443         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
50444
50445 2013-03-11  Andreas Schwab  <schwab@suse.de>
50446
50447         [BZ #15234]
50448         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
50449         by SHLIB_COMPAT.
50450         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
50451         (GLIBC_2.16): Remove pthread_atfork.
50452
50453 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
50454
50455         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
50456         (ptestcases.h): Likewise.
50457
50458 2013-03-08  Roland McGrath  <roland@hack.frob.com>
50459
50460         * Makeconfig ($(common-objpfx)config.status): Depend on
50461         sysdeps/*/preconfigure{,.in} too.
50462
50463 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
50464
50465         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
50466         (__free_hook): Use void * instead of __malloc_ptr_t.
50467         (__malloc_hook): Likewise.
50468         (__realloc_hook): Likewise.
50469         (__memalign_hook): Likewise.
50470         (__after_morecore_hook): Likewise.
50471         * malloc/arena.c (save_malloc_hook): Likewise.
50472         (save_free_hook): Likewise.
50473         * malloc/hooks.c (malloc_hook_ini): Likewise.
50474         (realloc_hook_ini): Likewise.
50475         (memalign_hook_ini): Likewise.
50476         * malloc/malloc.c (malloc_hook_ini): Likewise.
50477         (realloc_hook_ini): Likewise.
50478         (memalign_hook_ini): Likewise.
50479         (__free_hook): Likewise.
50480         (__malloc_hook): Likewise.
50481         (__realloc_hook): Likewise.
50482         (__memalign_hook): Likewise.
50483         (__libc_malloc): Likewise.
50484         (__libc_free): Likewise.
50485         (__libc_realloc): Likewise.
50486         (__libc_memalign): Likewise.
50487         (__libc_valloc): Likewise.
50488         (__libc_pvalloc): Likewise.
50489         (__libc_calloc): Likewise.
50490         (__posix_memalign): Likewise.
50491         * malloc/morecore.c (__sbrk): Likewise.
50492         (__default_morecore): Likewise.
50493
50494         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
50495
50496         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
50497         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
50498         __malloc_ptrdiff_t.
50499
50500         * malloc/malloc.h (__malloc_size_t): Remove macro.
50501         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
50502         __malloc_size_t.
50503         (old_memalign_hook): Likewise.
50504         (old_realloc_hook): Likewise.
50505         (struct hdr): Likewise.
50506         (flood): Likewise.
50507         (mallochook): Likewise.
50508         (memalignhook): Likewise.
50509         (reallochook): Likewise.
50510         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
50511         (tr_old_realloc_hook): Likewise.
50512         (tr_old_memalign_hook): Likewise.
50513         (tr_mallochook): Likewise.
50514         (tr_reallochook): Likewise.
50515         (tr_memalignhook): Likewise.
50516
50517 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50518
50519         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
50520         default_ldbl_pack and using as default implementation.
50521         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
50522         implementation.
50523         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
50524         redundant definition.
50525         (ldbl_insert_mantissa): Likewise.
50526         (ldbl_canonicalize): Likewise.
50527         (ldbl_nearbyint): Likewise.
50528         (ldbl_pack): Rename to ldbl_pack_ppc.
50529         (ldbl_unpack): Rename to ldbl_unpack_ppc.
50530         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
50531         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
50532
50533 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
50534
50535         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
50536         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
50537         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
50538         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
50539         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
50540         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
50541         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
50542         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
50543
50544 2013-03-07  Andreas Jaeger  <aj@suse.de>
50545
50546         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
50547         bits/mman-linux.h.
50548
50549 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
50550
50551         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
50552         Include mpa.h and declare __MPEXP.
50553         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
50554         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50555         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50556         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
50557         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50558         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50559         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
50560
50561         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
50562         (__slowpow): Use long double EXPL and LOGL functions to
50563         compute POW.
50564         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50565         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50566         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
50567         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50568         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50569         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
50570
50571         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
50572         intermediate variable to calculate exponent.
50573         (__sqr): Likewise.
50574         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50575         Likewise.
50576         (__sqr): Likewise.
50577
50578         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
50579         [!NO__SQR]: Define __sqr.
50580         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
50581         and NO__SQR.  Remove all code except __mul and __sqr.  Include
50582         sysdeps/ieee754/dbl-64/mpa.c.
50583         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
50584
50585         [BZ #12723]
50586         * posix/Makefile (tests): Add tst-pathconf.
50587         * posix/tst-pathconf.c: New test case.
50588         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
50589         _PC_PIPE_BUF.
50590         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
50591
50592 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
50593
50594         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
50595
50596 2013-03-06  Andreas Jaeger  <aj@suse.de>
50597
50598         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
50599         definition via __MAP_ANONYMOUS.
50600
50601         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
50602         it's not part of Linux headers.
50603
50604         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
50605         (MAP_HUGE_MASK): Define.
50606
50607         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50608         Define.
50609         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50610         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50611         Define.
50612         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50613         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50614         Define.
50615         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50616         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
50617         Define.
50618         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50619
50620         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
50621         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
50622         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
50623         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
50624         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
50625         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
50626
50627         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
50628         Handle f2fs.
50629
50630         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
50631         Handle f2fs and efivarfs.
50632
50633         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
50634         f2fs.
50635
50636         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
50637         (EFIVARFS_MAGIC): Add.
50638         (F2FS_LINK_MAX): Add.
50639
50640 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
50641
50642         * stdio-common/vfprintf.c: Replace __builtin_expect with
50643         __glibc_unlikely.
50644
50645 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
50646
50647         [BZ #13550]
50648         * sysdeps/generic/bp-sym.h: Remove file.
50649         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
50650         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
50651         <bp-sym.h> and <bp-asm.h>.
50652         (__longjmp): Don't use BP_SYM.
50653         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
50654         and <bp-asm.h>.
50655         (memcpy): Don't use BP_SYM.
50656         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
50657         <bp-sym.h> and <bp-asm.h>.
50658         (memcpy): Don't use BP_SYM.
50659         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
50660         <bp-asm.h>.
50661         (memcpy): Don't use BP_SYM.
50662         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
50663         <bp-asm.h>.
50664         (memset): Don't use BP_SYM.
50665         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50666         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50667         (__bzero): Don't use BP_SYM.
50668         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50669         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50670         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
50671         <bp-sym.h> and <bp-asm.h>.
50672         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50673         pointers.
50674         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
50675         <bp-sym.h> and <bp-asm.h>.
50676         (memcpy): Don't use BP_SYM.
50677         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
50678         <bp-sym.h> and <bp-asm.h>.
50679         (memset): Don't use BP_SYM.
50680         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50681         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50682         (__bzero): Don't use BP_SYM.
50683         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50684         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50685         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
50686         <bp-sym.h> and <bp-asm.h>.
50687         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50688         pointers.
50689         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
50690         <bp-sym.h> and <bp-asm.h>.
50691         (memcpy): Don't use BP_SYM.
50692         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
50693         <bp-sym.h> and <bp-asm.h>.
50694         (memset): Don't use BP_SYM.
50695         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50696         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50697         (__bzero): Don't use BP_SYM.
50698         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50699         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50700         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
50701         <bp-sym.h> and <bp-asm.h>.
50702         (__memchr): Don't use BP_SYM.
50703         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
50704         <bp-sym.h> and <bp-asm.h>.
50705         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50706         pointers.
50707         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
50708         <bp-sym.h> and <bp-asm.h>.
50709         (memcpy): Don't use BP_SYM.
50710         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
50711         <bp-sym.h> and <bp-asm.h>.
50712         (__mempcpy): Don't use BP_SYM.
50713         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
50714         <bp-sym.h> and <bp-asm.h>.
50715         (__memrchr): Don't use BP_SYM.
50716         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
50717         <bp-sym.h> and <bp-asm.h>.
50718         (memset): Don't use BP_SYM.
50719         (__bzero): Likewise.
50720         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
50721         <bp-sym.h> and <bp-asm.h>.
50722         (__rawmemchr): Don't use BP_SYM.
50723         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
50724         <bp-sym.h> and <bp-asm.h>.
50725         (__STRCMP): Don't use BP_SYM.
50726         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
50727         <bp-sym.h> and <bp-asm.h>.
50728         (strchr): Don't use BP_SYM.
50729         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
50730         <bp-sym.h> and <bp-asm.h>.
50731         (__strchrnul): Don't use BP_SYM.
50732         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
50733         <bp-sym.h> and <bp-asm.h>.
50734         (strlen): Don't use BP_SYM.
50735         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
50736         <bp-sym.h> and <bp-asm.h>.
50737         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50738         pointers.
50739         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
50740         <bp-sym.h> and <bp-asm.h>.
50741         (__strnlen): Don't use BP_SYM.
50742         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
50743         <bp-sym.h> and <bp-asm.h>.
50744         (__GI__setjmp): Don't use BP_SYM.
50745         (_setjmp): Likewise.
50746         (__sigsetjmp): Likewise.
50747         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
50748         (L(start_addresses)): Don't use BP_SYM.
50749         (_start): Likewise.
50750         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
50751         <bp-asm.h>.
50752         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
50753         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
50754         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50755         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50756         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
50757         <bp-asm.h>.
50758         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
50759         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
50760         about bounded pointers.
50761         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50762         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50763         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
50764         <bp-asm.h>.
50765         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50766         about bounded pointers.  Remove GKM FIXME comments.
50767         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50768         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
50769         <bp-asm.h>.
50770         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
50771         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
50772         Remove GKM FIXME comments.
50773         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50774         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50775         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
50776         <bp-asm.h>.
50777         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50778         about bounded pointers.  Remove GKM FIXME comment.
50779         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
50780         and <bp-asm.h>.
50781         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50782         pointers.
50783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
50784         <bp-sym.h> and <bp-asm.h>.
50785         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
50787         <bp-sym.h> and <bp-asm.h>.
50788         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50789         comment.
50790
50791 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
50792
50793         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
50794         call free(NULL).
50795
50796 2013-03-05  David S. Miller  <davem@davemloft.net>
50797
50798         * po/es.po: Update from translation team.
50799
50800 2013-03-05  Andreas Jaeger  <aj@suse.de>
50801
50802         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
50803         <bits/mman-linux.h>.
50804         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50805         is fine.
50806         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
50807         <bits/mman-linux.h> to end of file.
50808         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50809         is fine.
50810         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
50811         <bits/mman-linux.h> to end of file.
50812         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50813         is fine.
50814         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
50815         <bits/mman-linux.h> to end of file.
50816
50817         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
50818         (MCL_CURRENT, MCL_FUTURE): Define here.
50819
50820 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50821
50822         [BZ #15232]
50823         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
50824         attribute_hidden.
50825         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
50826
50827 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50828
50829         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
50830         fourth parameter needed for rt_sigprocmask syscall.
50831         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
50832         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
50833         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
50834         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
50835         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
50836         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
50837
50838 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
50839
50840         [BZ #13550]
50841         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
50842         comment about bounded pointers.
50843         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
50844         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
50845
50846 2013-03-04  Andreas Jaeger  <aj@suse.de>
50847
50848         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
50849         common definitions.
50850
50851         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
50852         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
50853         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
50854         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
50855         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
50856         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
50857
50858 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50859
50860         [BZ #15055]
50861         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
50862         __ieee754_sqrl instead of __sqrl.
50863
50864 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
50865
50866         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
50867         * sysdeps/powerpc/fpu_control.h: ... here.
50868         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
50869         * sysdeps/powerpc/bits/fenvinline.h: ... here.
50870         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
50871         * sysdeps/powerpc/bits/mathinline.h: ... here.
50872
50873 2013-03-01  Roland McGrath  <roland@hack.frob.com>
50874
50875         * elf/dl-hwcaps.c (_dl_important_hwcaps):
50876         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
50877         to just [NEED_DL_SYSINFO_DSO].
50878         * elf/dl-support.c: Likewise.
50879         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
50880         * elf/rtld.c (dl_main): Likewise.
50881         * elf/setup-vdso.h (setup_vdso): Likewise.
50882         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
50883         * sysdeps/unix/sysv/linux/dl-sysdep.c
50884         (_dl_discover_osversion): Likewise.
50885
50886 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
50887
50888         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
50889         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50890
50891 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
50892
50893         * NEWS: Mention libm performance improvements and non-x86 PI
50894         futex support.
50895
50896         * csu/libc-start.c (__pthread_initialize_minimal): Change
50897         function arguments.
50898         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50899
50900 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
50901
50902         [BZ #13550]
50903         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
50904         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
50905         <bp-sym.h> and <bp-asm.h>.
50906         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50907         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
50908         and <bp-asm.h>.
50909         (memcpy): Don't use BP_SYM.
50910         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
50911         <bp-asm.h>.
50912         (__mpn_add_n): Don't use BP_SYM.
50913         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
50914         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
50915         and <bp-asm.h>.
50916         (__mpn_addmul_1): Don't use BP_SYM.
50917         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50918         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
50919         <bp-sym.h>.
50920         (_setjmp): Don't use BP_SYM.
50921         (__novmx_setjmp): Likewise.
50922         (__GI__setjmp): Likewise.
50923         (__vmx_setjmp): Likewise.
50924         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
50925         <bp-sym.h>.
50926         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
50927         (__bzero): Don't use BP_SYM.
50928         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50929         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50930         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
50931         <bp-sym.h> and <bp-asm.h>.
50932         (memcpy): Don't use BP_SYM.
50933         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
50934         <bp-sym.h> and <bp-asm.h>.
50935         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50936         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
50937         <bp-sym.h> and <bp-asm.h>.
50938         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50939         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
50940         <bp-asm.h>.
50941         (__mpn_lshift): Don't use BP_SYM.
50942         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50943         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
50944         <bp-asm.h>.
50945         (memset): Don't use BP_SYM.
50946         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50947         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50948         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
50949         <bp-asm.h>.
50950         (__mpn_mul_1): Don't use BP_SYM.
50951         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50952         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
50953         <bp-sym.h> and <bp-asm.h>.
50954         (memcmp): Don't use BP_SYM.
50955         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
50956         <bp-sym.h> and <bp-asm.h>.
50957         (memcpy): Don't use BP_SYM.
50958         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
50959         <bp-sym.h> and <bp-asm.h>.
50960         (memset): Don't use BP_SYM.
50961         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
50962         <bp-sym.h> and <bp-asm.h>.
50963         (strncmp): Don't use BP_SYM.
50964         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
50965         <bp-sym.h> and <bp-asm.h>.
50966         (memcpy): Don't use BP_SYM.
50967         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
50968         <bp-sym.h> and <bp-asm.h>.
50969         (memset): Don't use BP_SYM.
50970         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
50971         <bp-sym.h> and <bp-asm.h>.
50972         (__memchr): Don't use BP_SYM.
50973         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
50974         <bp-sym.h> and <bp-asm.h>.
50975         (memcmp): Don't use BP_SYM.
50976         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
50977         <bp-sym.h> and <bp-asm.h>.
50978         (memcpy): Don't use BP_SYM.
50979         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
50980         <bp-sym.h> and <bp-asm.h>.
50981         (__mempcpy): Don't use BP_SYM.
50982         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
50983         <bp-sym.h> and <bp-asm.h>.
50984         (__memrchr): Don't use BP_SYM.
50985         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
50986         <bp-sym.h> and <bp-asm.h>.
50987         (memset): Don't use BP_SYM.
50988         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
50989         <bp-sym.h> and <bp-asm.h>.
50990         (__rawmemchr): Don't use BP_SYM.
50991         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
50992         <bp-sym.h> and <bp-asm.h>.
50993         (__STRCMP): Don't use BP_SYM.
50994         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
50995         <bp-sym.h> and <bp-asm.h>.
50996         (strchr): Don't use BP_SYM.
50997         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
50998         <bp-sym.h> and <bp-asm.h>.
50999         (__strchrnul): Don't use BP_SYM.
51000         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
51001         <bp-sym.h> and <bp-asm.h>.
51002         (strlen): Don't use BP_SYM.
51003         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
51004         <bp-sym.h> and <bp-asm.h>.
51005         (strncmp): Don't use BP_SYM.
51006         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
51007         <bp-sym.h> and <bp-asm.h>.
51008         (__strnlen): Don't use BP_SYM.
51009         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
51010         <bp-asm.h>.
51011         (__mpn_rshift): Don't use BP_SYM.
51012         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51013         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
51014         <bp-sym.h> and <bp-asm.h>.
51015         (__sigsetjmp): Don't use BP_SYM.
51016         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
51017         (L(start_addresses)): Don't use BP_SYM.
51018         (_start): Likewise.
51019         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
51020         <bp-asm.h>.
51021         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
51022         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51023         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
51024         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
51025         <bp-asm.h>.
51026         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
51027         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51028         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51029         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
51030         <bp-asm.h>.
51031         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
51032         comments.
51033         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51034         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
51035         <bp-asm.h>.
51036         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
51037         FIXME comments.
51038         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51039         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
51040         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
51041         <bp-asm.h>.
51042         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
51043         comment.
51044         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
51045         and <bp-asm.h>.
51046         (strncmp): Don't use BP_SYM,
51047         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
51048         <bp-asm.h>.
51049         (__mpn_sub_n): Don't use BP_SYM.
51050         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51051         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
51052         and <bp-asm.h>.
51053         (__mpn_submul_1): Don't use BP_SYM.
51054         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
51056         <bp-sym.h> and <bp-asm.h>.
51057         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
51058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
51059         <bp-sym.h> and <bp-asm.h>.
51060         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
51061         comment.
51062
51063 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
51064
51065         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
51066         Use ZK to minimize writes to Z.
51067         (sub_magnitudes): Simplify code a bit.
51068         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
51069         Use ZK to minimize writes to Z.
51070         (sub_magnitudes): Simplify code a bit.
51071
51072 2013-02-27  Roland McGrath  <roland@hack.frob.com>
51073
51074         * csu/gmon-start.c: Add special exception to license text.
51075
51076 2013-02-27  Richard Henderson  <rth@redhat.com>
51077
51078         * scripts/config.guess: Update from config.git.
51079         * scripts/config.sub: Likewise.
51080
51081 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
51082
51083         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
51084
51085         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
51086
51087         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
51088
51089         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
51090
51091         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
51092
51093 2013-02-26  Roland McGrath  <roland@hack.frob.com>
51094
51095         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
51096         [$(build-shared = yes].
51097
51098 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51099
51100         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
51101         (__mul): Reduce iterations for calculating mantissa.
51102
51103         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
51104         MPTWO.
51105         (__mpranred): Likewise.
51106
51107         [BZ #15160]
51108         * malloc/memusagestat.c (main): Draw graphs for heap and stack
51109         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
51110
51111 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51112
51113         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
51114         Define __attribute__.
51115
51116 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51117
51118         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
51119         unused.
51120         * posix/regex_internal.h (__attribute): Remove.
51121         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
51122         (re_string_context_at): Likewise.
51123         (bitset_not): Use __attribute__ and mark function as possibly
51124         unused.
51125         (bitset_merge): Likewise.
51126         (bitset_mask): Likewise.
51127         (re_string_char_size_at): Likewise.
51128         (re_string_wchar_at): Likewise.
51129         (re_string_elem_size_at): Likewise.
51130
51131 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
51132
51133         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
51134         code.
51135         (cc32): Likewise.
51136
51137         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
51138         (__acr): Likewise.
51139         (__cpy): Likewise.
51140         (norm): Likewise.
51141         (denorm): Likewise.
51142         (__dbl_mp): Likewise.
51143         (add_magnitudes): Likewise.
51144         (sub_magnitudes): Likewise.
51145         (__mul): Likewise.
51146         (__inv): Likewise.
51147
51148         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
51149         style.
51150
51151         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
51152         style.
51153
51154         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
51155         code.
51156
51157         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
51158         up changes with default code.
51159         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
51160         Likewise.
51161
51162 2013-02-24  Allan McRae  <allan@archlinux.org>
51163
51164         * manual/socket.texi (The Internet Namespace): Order menu items
51165         to match that in the file.
51166
51167         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
51168         node listing of the info page menu.
51169
51170 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
51171
51172         [BZ #13550]
51173         * sysdeps/i386/bp-asm.h: Remove file.
51174         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51175         (PARMS): Do not use macros from bp-asm.h.
51176         (S1): Likewise.
51177         (S2): Likewise.
51178         (SIZE): Likewise.
51179         (__mpn_add_n): Do not use BP_SYM
51180         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
51181         "bp-asm.h".
51182         (PARMS): Do not use macros from bp-asm.h.
51183         (S1): Likewise.
51184         (SIZE): Likewise.
51185         (__mpn_addmul_1): Do not use BP_SYM
51186         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
51187         "bp-asm.h".
51188         (PARMS): Do not use macros from bp-asm.h.
51189         (SIGMSK): Likewise.
51190         (_setjmp): Likewise.  Do not use BP_SYM.
51191         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
51192         "bp-asm.h".
51193         (PARMS): Do not use macros from bp-asm.h.
51194         (SIGMSK): Likewise.
51195         (setjmp): Likewise.  Do not use BP_SYM.
51196         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
51197         "bp-asm.h".
51198         (PARMS): Do not use macros from bp-asm.h.
51199         (__frexp): Do not use BP_SYM.
51200         (frexp): Likewise.
51201         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
51202         "bp-asm.h".
51203         (PARMS): Do not use macros from bp-asm.h.
51204         (__frexpf): Do not use BP_SYM.
51205         (frexpf): Likewise.
51206         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
51207         "bp-asm.h".
51208         (PARMS): Do not use macros from bp-asm.h.
51209         (__frexpl): Do not use BP_SYM.
51210         (frexpl): Likewise.
51211         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
51212         "bp-asm.h".
51213         (PARMS): Do not use macros from bp-asm.h.
51214         (__remquo): Do not use BP_SYM.
51215         (remquo): Likewise.
51216         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
51217         "bp-asm.h".
51218         (PARMS): Do not use macros from bp-asm.h.
51219         (__remquof): Do not use BP_SYM.
51220         (remquof): Likewise.
51221         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
51222         "bp-asm.h".
51223         (PARMS): Do not use macros from bp-asm.h.
51224         (__remquol): Do not use BP_SYM.
51225         (remquol): Likewise.
51226         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
51227         "bp-asm.h".
51228         (PARMS): Do not use macros from bp-asm.h.
51229         (DEST): Likewise.
51230         (SRC): Likewise.
51231         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
51232         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
51233         "bp-asm.h".
51234         (PARMS): Do not use macros from bp-asm.h.
51235         (strlen): Do not use BP_SYM.
51236         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
51237         "bp-asm.h".
51238         (PARMS): Do not use macros from bp-asm.h.
51239         (S1): Likewise.
51240         (S2): Likewise.
51241         (SIZE): Likewise.
51242         (__mpn_add_n): Do not use BP_SYM.
51243         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
51244         "bp-asm.h".
51245         (PARMS): Do not use macros from bp-asm.h.
51246         (S1): Likewise.
51247         (SIZE): Likewise.
51248         (__mpn_addmul_1): Do not use BP_SYM.
51249         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
51250         weak_alias.
51251         (bzero): Likewise.
51252         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
51253         "bp-asm.h".
51254         (PARMS): Do not use macros from bp-asm.h.
51255         (S): Likewise.
51256         (SIZE): Likewise.
51257         (__mpn_lshift): Do not use BP_SYM.
51258         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
51259         "bp-asm.h".
51260         (PARMS): Do not use macros from bp-asm.h.
51261         (DEST): Likewise.
51262         (SRC): Likewise.
51263         (LEN): Likewise.
51264         (memcpy): Likewise.  Do not use BP_SYM.
51265         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
51266         libc_hidden_def and weak_alias.
51267         (mempcpy): Do not use BP_SYM in weak_alias.
51268         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
51269         "bp-asm.h".
51270         (PARMS): Do not use macros from bp-asm.h.
51271         (DEST): Likewise.
51272         (LEN): Likewise.
51273         [!BZERO_P] (CHR): Likewise.
51274         (memset): Likewise.  Do not use BP_SYM.
51275         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
51276         "bp-asm.h".
51277         (PARMS): Do not use macros from bp-asm.h.
51278         (S1): Likewise.
51279         (SIZE): Likewise.
51280         (__mpn_mul_1): Do not use BP_SYM.
51281         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
51282         "bp-asm.h".
51283         (PARMS): Do not use macros from bp-asm.h.
51284         (S): Likewise.
51285         (SIZE): Likewise.
51286         (__mpn_rshift): Do not use BP_SYM.
51287         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
51288         "bp-asm.h".
51289         (PARMS): Do not use macros from bp-asm.h.
51290         (STR): Likewise.
51291         (CHR): Likewise.
51292         (strchr): Likewise.  Do not use BP_SYM.
51293         (index): Do not use BP_SYM in weak_alias.
51294         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
51295         "bp-asm.h".
51296         (PARMS): Do not use macros from bp-asm.h.
51297         (DEST): Likewise.
51298         (SRC): Likewise.
51299         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
51300         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
51301         "bp-asm.h".
51302         (PARMS): Do not use macros from bp-asm.h.
51303         (strlen): Do not use BP_SYM.
51304         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
51305         "bp-asm.h".
51306         (PARMS): Do not use macros from bp-asm.h.
51307         (S1): Likewise.
51308         (S2): Likewise.
51309         (SIZE): Likewise.
51310         (__mpn_sub_n): Do not use BP_SYM.
51311         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
51312         "bp-asm.h".
51313         (PARMS): Do not use macros from bp-asm.h.
51314         (S1): Likewise.
51315         (SIZE): Likewise.
51316         (__mpn_submul_1): Do not use BP_SYM.
51317         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
51318         "bp-asm.h".
51319         (PARMS): Do not use macros from bp-asm.h.
51320         (S1): Likewise.
51321         (S2): Likewise.
51322         (SIZE): Likewise.
51323         (__mpn_add_n): Do not use BP_SYM.
51324         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
51325         weak_alias.
51326         (bzero): Likewise.
51327         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
51328         "bp-asm.h".
51329         (PARMS): Do not use macros from bp-asm.h.
51330         (BLK2): Likewise.
51331         (LEN): Likewise.
51332         (memcmp): Do not use BP_SYM.
51333         (bcmp): Do not use BP_SYM in weak_alias.
51334         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
51335         "bp-asm.h".
51336         (PARMS): Do not use macros from bp-asm.h.
51337         (DEST): Likewise.
51338         (SRC): Likewise.
51339         (LEN): Likewise.
51340         (memcpy): Likewise.  Do not use BP_SYM.
51341         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
51342         "bp-asm.h".
51343         (PARMS): Do not use macros from bp-asm.h.
51344         (DEST): Likewise.
51345         (SRC): Likewise.
51346         (LEN): Likewise.
51347         (memmove): Likewise.  Do not use BP_SYM.
51348         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
51349         "bp-asm.h".
51350         (PARMS): Do not use macros from bp-asm.h.
51351         (DEST): Likewise.
51352         (SRC): Likewise.
51353         (LEN): Likewise.
51354         (__mempcpy): Likewise.  Do not use BP_SYM.
51355         (mempcpy): Do not use BP_SYM in weak_alias.
51356         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
51357         "bp-asm.h".
51358         (PARMS): Do not use macros from bp-asm.h.
51359         (DEST): Likewise.
51360         (LEN): Likewise.
51361         [!BZERO_P] (CHR): Likewise.
51362         (memset): Likewise.  Do not use BP_SYM.
51363         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
51364         "bp-asm.h".
51365         (PARMS): Do not use macros from bp-asm.h.
51366         (STR2): Likewise.
51367         (strcmp): Do not use BP_SYM.
51368         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
51369         "bp-asm.h".
51370         (PARMS): Do not use macros from bp-asm.h.
51371         (STR): Likewise.
51372         (DELIM): Likewise.
51373         [USE_AS_STRTOK_R] (SAVE): Likewise.
51374         (FUNCTION): Likewise.  Do not use BP_SYM.
51375         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
51376         aliases.
51377         (strtok_r): Likewise.
51378         (__GI___strtok_r): Likewise.
51379         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51380         (PARMS): Do not use macros from bp-asm.h.
51381         (S): Likewise.
51382         (SIZE): Likewise.
51383         (__mpn_lshift): Do not use BP_SYM.
51384         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51385         (PARMS): Do not use macros from bp-asm.h.
51386         (STR): Likewise.
51387         (CHR): Likewise.
51388         (__memchr): Do not use BP_SYM.
51389         (memchr): Do not use BP_SYM in weak_alias.
51390         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51391         (PARMS): Do not use macros from bp-asm.h.
51392         (BLK2): Likewise.
51393         (LEN): Likewise.
51394         (memcmp): Do not use BP_SYM.
51395         (bcmp): Do not use BP_SYM in weak_alias.
51396         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
51397         (PARMS): Do not use macros from bp-asm.h.
51398         (S1): Likewise.
51399         (SIZE): Likewise.
51400         (__mpn_mul_1): Do not use BP_SYM.
51401         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
51402         "bp-asm.h".
51403         (PARMS): Do not use macros from bp-asm.h.
51404         (STR): Likewise.
51405         (CHR): Likewise.
51406         (__rawmemchr): Do not use BP_SYM.
51407         (rawmemchr): Do not use BP_SYM in weak_alias.
51408         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51409         (PARMS): Do not use macros from bp-asm.h.
51410         (S): Likewise.
51411         (SIZE): Likewise.
51412         (__mpn_rshift): Do not use BP_SYM.
51413         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51414         (PARMS): Do not use macros from bp-asm.h.
51415         (SIGMSK): Likewise.
51416         (__sigsetjmp): Likewise.  Do not use BP_SYM.
51417         * sysdeps/i386/start.S: Do not include "bp-sym.h".
51418         (_start): Do not use BP_SYM.
51419         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
51420         (PARMS): Do not use macros from bp-asm.h.
51421         (DEST): Likewise.
51422         (SRC): Likewise.
51423         (__stpcpy): Likewise.  Do not use BP_SYM.
51424         (stpcpy): Do not use BP_SYM in weak_alias.
51425         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
51426         "bp-asm.h".
51427         (PARMS): Do not use macros from bp-asm.h.
51428         (DEST): Likewise.
51429         (SRC): Likewise.
51430         (LEN): Likewise.
51431         (__stpncpy): Likewise.  Do not use BP_SYM.
51432         (stpncpy): Do not use BP_SYM in weak_alias.
51433         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51434         (PARMS): Do not use macros from bp-asm.h.
51435         (STR): Likewise.
51436         (CHR): Likewise.
51437         (strchr): Likewise.  Do not use BP_SYM.
51438         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
51439         "bp-asm.h".
51440         (PARMS): Do not use macros from bp-asm.h.
51441         (STR): Likewise.
51442         (CHR): Likewise.
51443         (__strchrnul): Likewise.  Do not use BP_SYM.
51444         (strchrnul): Do not use BP_SYM in weak_alias.
51445         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
51446         "bp-asm.h".
51447         (PARMS): Do not use macros from bp-asm.h.
51448         (STOP): Likewise.
51449         (strcspn): Do not use BP_SYM.
51450         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
51451         "bp-asm.h".
51452         (PARMS): Do not use macros from bp-asm.h.
51453         (STR): Likewise.
51454         (STOP): Likewise.
51455         (strpbrk): Likewise.  Do not use BP_SYM.
51456         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
51457         "bp-asm.h".
51458         (PARMS): Do not use macros from bp-asm.h.
51459         (STR): Likewise.
51460         (CHR): Likewise.
51461         (strrchr): Likewise.  Do not use BP_SYM.
51462         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
51463         (PARMS): Do not use macros from bp-asm.h.
51464         (SKIP): Likewise.
51465         (strspn): Do not use BP_SYM.
51466         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
51467         (PARMS): Do not use macros from bp-asm.h.
51468         (STR): Likewise.
51469         (DELIM): Likewise.
51470         (SAVE): Likewise.
51471         (FUNCTION): Likewise.  Do not use BP_SYM.
51472         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
51473         aliases.
51474         (strtok_r): Likewise.
51475         (__GI___strtok_r): Likewise.
51476         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51477         (PARMS): Do not use macros from bp-asm.h.
51478         (S1): Likewise.
51479         (S2): Likewise.
51480         (SIZE): Likewise.
51481         (__mpn_sub_n): Do not use BP_SYM.
51482         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
51483         "bp-asm.h".
51484         (PARMS): Do not use macros from bp-asm.h.
51485         (S1): Likewise.
51486         (SIZE): Likewise.
51487         (__mpn_submul_1): Do not use BP_SYM.
51488         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
51489         <bp-sym.h>.
51490         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
51491         and <bp-asm.h>.
51492         (PARMS): Do not use macros from bp-asm.h.
51493         (FLAGS): Likewise.
51494         (PTID): Likewise.
51495         (TLS): Likewise.
51496         (CTID): Likewise.
51497         (__clone): Do not use BP_SYM.
51498         (clone): Do not use BP_SYM in weak_alias.
51499         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
51500         and <bp-asm.h>.
51501         (PARMS): Do not use macros from bp-asm.h.
51502         (LEN): Likewise.
51503         (__mmap64): Do not use BP_SYM.
51504         (mmap64): Do not use BP_SYM in weak_alias.
51505         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
51506         <bp-sym.h> and <bp-asm.h>.
51507         (PARMS): Do not use macros from bp-asm.h.
51508         (__posix_fadvise64_l64): Do not use BP_SYM.
51509         * sysdeps/unix/sysv/linux/i386/semtimedop.S
51510         (PARMS): Do not use macros from bp-asm.h.
51511         (NSOPS): Likewise.
51512         (semtimedop): Do not use BP_SYM.
51513         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
51514         and <bp-asm.h>.
51515
51516 2013-02-21  Allan McRae  <allan@archlinux.org>
51517
51518         * manual/message.texi (Charset conversion in gettext):
51519         Move @end statement to beginning of line.
51520
51521 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51522
51523         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
51524         static.
51525         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
51526         Likewise.
51527
51528         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
51529         (denorm): Likewise.
51530         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
51531         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
51532
51533 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51534
51535         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
51536         tail-call to the resolved function if pltexit isn't needed.
51537
51538 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51539
51540         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
51541         or Y being zero as being unlikely.
51542         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
51543         Likewise.
51544
51545 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
51546
51547         * manual/nss.texi (System Databases and Name Service Switch):
51548         Remove frobnicate @pxref.
51549
51550 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51551
51552         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51553         __attribute__ ((unused)) to __attribute__ ((__unused__)).
51554
51555 2013-02-20  Petr Machata  <pmachata@redhat.com>
51556
51557         * elf/elf.h (R_ARM_TARGET1): New macro.
51558         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
51559         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
51560         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
51561         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
51562         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
51563         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
51564         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
51565         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
51566         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
51567         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
51568         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
51569         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
51570         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
51571         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
51572         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
51573         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
51574         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
51575         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
51576         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
51577         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
51578         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
51579         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
51580         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
51581         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
51582         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
51583         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
51584         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
51585         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
51586         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
51587         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
51588         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
51589         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
51590         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
51591         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
51592         (R_ARM_THM_GOT_BREL12): Likewise.
51593         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
51594         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
51595         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
51596         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
51597         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
51598         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
51599         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
51600         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
51601         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
51602
51603 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51604
51605         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51606         __attribute_used__ to __attribute__ ((unused)).
51607
51608 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
51609
51610         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
51611         powerpc mpa.c.
51612         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
51613         comment formatting.
51614         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
51615
51616 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
51617
51618         [BZ #13550]
51619         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
51620         Remove macro.
51621         (ENTER): Remove both macro definitions.
51622         (LEAVE): Likewise.
51623         (CHECK_BOUNDS_LOW): Likewise.
51624         (CHECK_BOUNDS_HIGH): Likewise.
51625         (CHECK_BOUNDS_BOTH): Likewise.
51626         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
51627         (RETURN_BOUNDED_POINTER): Likewise.
51628         (RETURN_NULL_BOUNDED_POINTER): Likewise.
51629         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
51630         (POP_ERRNO_LOCATION_RETURN): Likewise.
51631         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
51632         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51633         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
51634         macros.
51635         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51636         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
51637         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
51638         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
51639         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
51640         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
51641         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
51642         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
51643         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
51644         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
51645         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
51646         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
51647         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51648         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
51649         removed macros.
51650         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51651         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
51652         macros.
51653         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51654         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
51655         * sysdeps/i386/i586/memset.S (memset): Likewise.
51656         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
51657         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51658         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
51659         macros.
51660         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51661         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
51662         Change uses of L(2) to L(out).
51663         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
51664         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
51665         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
51666         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51667         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
51668         removed macros.
51669         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51670         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
51671         macros.
51672         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51673         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
51674         (RETURN): Do not use macro LEAVE.
51675         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
51676         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
51677         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
51678         * sysdeps/i386/i686/memset.S (memset): Likewise.
51679         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
51680         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
51681         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51682         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
51683         Likewise.
51684         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51685         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
51686         L(1_2) and L(1_3) into L(1).
51687         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51688         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
51689         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51690         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
51691         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51692         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
51693         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
51694         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51695         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
51696         macros.
51697         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
51698         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51699         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
51700         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
51701         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
51702         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51703         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
51704         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
51705         * sysdeps/i386/strcspn.S (strcspn): Likewise.
51706         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
51707         * sysdeps/i386/strrchr.S (strrchr): Likewise.
51708         * sysdeps/i386/strspn.S (strspn): Likewise.
51709         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
51710         conditional code.
51711         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51712         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
51713         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51714         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
51715         L(1_3) into L(1_1).
51716         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
51717         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51718         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
51719         macros.
51720         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51721
51722 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
51723
51724         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
51725         macro.
51726
51727 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
51728
51729         * math/atest-exp.c (exp_mpn): Remove ROUND.
51730         * math/atest-exp2.c (exp_mpn): Likewise.
51731         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
51732
51733         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
51734         * stdlib/tst-tls-atexit-lib.c: Likewise.
51735         * stdlib/tst-tls-atexit.c: Likewise.
51736
51737 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51738
51739         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
51740         and __attribute_alloc_size__.
51741
51742 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51743
51744         * include/programs/xmalloc.h: Change __attribute_alloc_size to
51745         __attribute_alloc_size__.
51746         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
51747         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
51748
51749 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51750
51751         * include/programs/xmalloc.h: New file.
51752         * catgets/gencat.c: Include it.
51753         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
51754         * elf/pldd.c: Likewise.
51755         * iconv/iconv_charmap.c: Likewise.
51756         * iconv/iconvconfig.c: Likewise.
51757         * iconv/strtab.c: Likewise.
51758         * locale/programs/locale.c: Likewise.
51759         * locale/programs/localedef.h: Likewise.
51760         * locale/programs/simple-hash.c: Likewise.
51761         * nscd/nscd.h: Likewise.
51762         * nss/makedb.c: Likewise.
51763         * sysdeps/generic/ldconfig.h: Likewise.
51764
51765 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
51766
51767         * Versions.def: Add GLIBC_2.18.
51768         * include/link.h (struct link_map): New member l_tls_dtor_count.
51769         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
51770         (__call_tls_dtors): Likewise.
51771         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
51772         __cxa_thread_atexit_impl.
51773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
51774         Likewise.
51775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
51776         Likewise.
51777         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
51778         Likewise.
51779         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51780         Likewise.
51781         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
51782         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
51783         Likewise.
51784         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
51785         Likewise.
51786         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
51787         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
51788         Likewise.
51789         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
51790         (tests): Add test case tst-tls-atexit.
51791         (modules-names): Add shared library for tst-tls-atexit.
51792         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
51793         (GLIBC_PRIVATE): Add __call_tls_dtors.
51794         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
51795         for libstdc++.
51796         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
51797         * stdlib/tst-tls-atexit.c: New test case.
51798         * stdlib/tst-tls-atexit-lib.c: New test case.
51799
51800         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
51801
51802         * elf/Versions (ld): Add _dl_find_dso_for_object.
51803         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
51804         * elf/dl-open.c (_dl_find_dso_for_object): New function.
51805         (dl_open_worker): Use _dl_find_dso_for_object.
51806         * elf/dl-sym.c (do_sym): Likewise.
51807         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
51808
51809 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51810
51811         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
51812         Syntactic changes only.
51813         (_dl_runtime_profile): Do a tail-call to the resolved function.
51814
51815 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
51816
51817         [BZ #13550]
51818         * sysdeps/x86_64/bp-asm.h: Remove file.
51819         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
51820         <bp-sym.h> and <bp-asm.h>.
51821         (__clone): Do not use BP_SYM.
51822         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
51823         <bp-sym.h> and <bp-asm.h>.
51824         * sysdeps/unix/x86_64/sysdep.S: Likewise.
51825         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
51826         "bp-asm.h".
51827         (_setjmp): Do not use BP_SYM.
51828         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
51829         "bp-asm.h".
51830         (setjmp): Do not use BP_SYM.
51831         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
51832         libc_hidden_def.
51833         (mempcpy): Do not use BP_SYM in weak_alias.
51834         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
51835         "bp-asm.h".
51836         (strchr): Do not use BP_SYM.
51837         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
51838         "bp-asm.h".
51839         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
51840         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
51841         (_start): Do not use BP_SYM.
51842         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
51843         "bp-asm.h".
51844         (strcat): Do not use BP_SYM.
51845         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
51846         "bp-asm.h".
51847         (STRCMP): Do not use BP_SYM.
51848         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
51849         "bp-asm.h".
51850         (STRCPY): Do not use BP_SYM.
51851         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
51852         "bp-asm.h".
51853         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
51854         "bp-asm.h".
51855         (FUNCTION): Do not use BP_SYM.
51856         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
51857         weak_alias.
51858         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
51859
51860 2013-02-17  Andreas Jaeger  <aj@suse.de>
51861
51862         * time/Versions: Sort entries.
51863         * string/Versions: Likewise.
51864         * resolv/Versions: Likewise.
51865         * posix/Versions: Likewise.
51866         * iconv/Versions: Likewise.
51867         * elf/Versions: Likewise.
51868         * wcsmbs/Versions: Likewise.
51869
51870 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51871
51872         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
51873         loop termination condition.
51874
51875         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
51876         variable to calculate EZ.
51877         (__sqr): Likewise.
51878
51879         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
51880         the lower precision input.
51881
51882 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
51883
51884         [BZ #13550]
51885         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
51886         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
51887         (run-via-rtld-prefix): Do not handle %-bp tests.
51888         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
51889         (all-object-suffixes): Remove .ob.
51890         (bppfx): Remove variable.
51891         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
51892         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
51893         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
51894         [$(build-bounded) = yes] (libtype.ob): Likewise.
51895         * Makerules (elide-routines.ob): Remove variable.
51896         (do-tests-clean): Do not handle *-bp.out.
51897         (common-mostlyclean): Do not handle *-bp and *-bp.out.
51898         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
51899         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
51900         (tests): Do not include $(tests-bp.out).
51901         (xtests): Do not include $(xtests-bp.out).
51902         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
51903         [$(build-bounded) = yes] ($(addprefix
51904         $(objpfx),$(binaries-bounded))): Remove rule.
51905         ($(objpfx)%-bp.out): Remove rule.
51906         * config.make.in (build-bounded): Remove variable.
51907         * crypt/Makefile [$(build-bounded) = yes]
51908         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
51909         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
51910         append to variable.
51911         [$(build-bounded) = yes] (install-lib): Likewise.
51912         [$(build-bounded) = yes] (generated): Likewise.
51913         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
51914         Remove rule.
51915         * intl/Makefile [$(build-bounded) = yes]
51916         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
51917         * math/Makefile [$(build-bounded) = yes]
51918         ($(tests:%=$(objpfx)%-bp): Likewise.
51919         * misc/Makefile [$(build-bounded) = yes]
51920         ($(objpfx)tst-tsearch-bp): Likewise.
51921         * nptl/Makeconfig (bounded-thread-library): Remove variable.
51922         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
51923         Remove dependency.
51924         * string/Makefile (o-objects.ob): Remove variable.
51925         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
51926         (CFLAGS-.ob): Remove variable.
51927         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
51928         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
51929         both definitions of variable.
51930         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
51931         (ASFLAGS-.ob): Remove variable.
51932
51933 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
51934
51935         [BZ #13550]
51936         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
51937         Remove __BOUNDED_POINTERS__ from condition.
51938         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
51939         * string/bits/string2.h [!__NO_STRING_INLINES &&
51940         !__BOUNDED_POINTERS__]: Likewise.
51941         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
51942         Likewise.
51943         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
51944         Remove conditional code.
51945         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
51946         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
51947         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
51948         condition.
51949
51950         [BZ #13550]
51951         * csu/libc-start.c: Do not include <bp-sym.h>.
51952         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
51953         * elf/dl-open.c: Do not include <bp-sym.h>.
51954         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
51955         * math/fegetenv.c: Do not include <bp-sym.h>.
51956         (fegetenv): Do not use BP_SYM in versioned symbols.
51957         * nptl/sysdeps/pthread/bits/libc-lockP.h
51958         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
51959         <bp-sym.h>.
51960         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51961         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
51962         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51963         (__pthread_mutex_destroy): Likewise.
51964         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51965         (__pthread_mutex_lock): Likewise.
51966         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51967         (__pthread_mutex_trylock): Likewise.
51968         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51969         (__pthread_mutex_unlock): Likewise.
51970         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51971         (__pthread_mutexattr_init): Likewise.
51972         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51973         (__pthread_mutexattr_destroy): Likewise.
51974         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51975         (__pthread_mutexattr_settype): Likewise.
51976         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51977         (__pthread_rwlock_init): Likewise.
51978         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51979         (__pthread_rwlock_destroy): Likewise.
51980         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51981         (__pthread_rwlock_rdlock): Likewise.
51982         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51983         (__pthread_rwlock_tryrdlock): Likewise.
51984         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51985         (__pthread_rwlock_wrlock): Likewise.
51986         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51987         (__pthread_rwlock_trywrlock): Likewise.
51988         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51989         (__pthread_rwlock_unlock): Likewise.
51990         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51991         (__pthread_key_create): Likewise.
51992         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51993         (__pthread_setspecific): Likewise.
51994         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51995         (__pthread_getspecific): Likewise.
51996         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
51997         Likewise.
51998         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51999         (_pthread_cleanup_push_defer): Likewise.
52000         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52001         (_pthread_cleanup_pop_restore): Likewise.
52002         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52003         (pthread_setcancelstate): Likewise.
52004         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
52005         <bp-sym.h>.
52006         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
52007         (memchr): Do not use BP_SYM in weak_alias.
52008         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
52009         (fegetenv): Do not use BP_SYM in versioned symbols.
52010         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
52011         (fesetenv): Do not use BP_SYM in versioned symbols.
52012         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
52013         (feupdateenv): Do not use BP_SYM in versioned symbols.
52014         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
52015         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
52016         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
52017         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
52018         (open64): Do not use BP_SYM in weak_alias.
52019         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
52020         (fegetenv): Do not use BP_SYM in versioned symbols.
52021         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
52022         (fesetenv): Do not use BP_SYM in versioned symbols.
52023         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
52024         (feupdateenv): Do not use BP_SYM in versioned symbols.
52025         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
52026         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
52027         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
52028         (feraiseexcept): Do not use BP_SYM in versioned symbols.
52029         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
52030         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
52031         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
52032         <bp-sym.h>.
52033         (__libc_start_main): Do not use BP_SYM.
52034
52035 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52036
52037         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
52038         redundant return line.
52039         (norm): Likewise.
52040         (denorm): Likewise.
52041         (dbl_mp): Likewise.
52042         (sub_magnitudes): Likewise.
52043         (__add): Likewise.
52044         (__sub): Likewise.
52045         (__mul): Likewise.
52046         (__inv): Likewise.
52047         (__dvd): Likewise.
52048         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
52049         (norm): Likewise.
52050         (denorm): Likewise.
52051         (dbl_mp): Likewise.
52052         (sub_magnitudes): Likewise.
52053         (__add): Likewise.
52054         (__sub): Likewise.
52055         (__mul): Likewise.
52056         (__inv): Likewise.
52057         (__dvd): Likewise.
52058
52059         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
52060         instead of __mul.
52061         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
52062         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
52063         (cc32): Likewise.
52064
52065         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
52066         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
52067         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
52068         of __mul for squares.
52069         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
52070         function
52071         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
52072         Likewise.
52073         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
52074         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
52075
52076 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
52077
52078         [BZ #13550]
52079         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
52080         code.
52081         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
52082         prototype or function definition.  Rename ubp_* variables and
52083         parameters.  Remove argv definitions conditional on
52084         [__BOUNDED_POINTERS__].
52085         * debug/backtrace.c (__backtrace): Do not use __unbounded.
52086         * elf/dl-runtime.c (_dl_fixup): Likewise.
52087         * include/set-hooks.h (RUN_HOOK): Likewise.
52088         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
52089         definition.
52090         * string/strcpy.c (strcpy): Do not use __unbounded.
52091         * sysdeps/generic/frame.h (struct layout): Likewise.
52092         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
52093         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
52094         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
52095         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
52096         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
52097         (__backtrace): Likewise.
52098         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
52099         use __ptrvalue.
52100         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
52101         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
52102         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
52103         Likewise.
52104         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
52105         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
52106         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
52107         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52108         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
52109         Do not use __unbounded.
52110         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
52111         Rename __unboundedrlimits parameter to rlimits in prototype.
52112         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
52113         Do not use __unbounded.
52114         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
52115         not use __ptrvalue.
52116         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52117         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
52118         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52119         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
52120         __ptrvalue or __unbounded.
52121         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
52122         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
52123         use __unbounded.
52124         (__new_msgctl): Do not use __ptrvalue.
52125         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
52126         __unbounded.
52127         (__libc_msgrcv): Do not use __ptrvalue.
52128         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
52129         startup_info): Do not use __unbounded.
52130         (__libc_start_main): Likewise.  Rename ubp_* variables and
52131         parameters.  Remove argv definitions conditional on
52132         [__BOUNDED_POINTERS__].
52133         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
52134         __ptrvalue.
52135         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
52136         use __unbounded.
52137         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
52138         or __ptrvalue.
52139         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
52140         use __unbounded.
52141         (__new_shmctl): Do not use __ptrvalue.
52142         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
52143         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
52144         Likewise.
52145         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
52146         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
52147         (__libc_sigaction): Likewise.
52148         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
52149         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
52150         Likewise.
52151         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52152
52153 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
52154
52155         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
52156
52157         * string/mempcpy.c: Implement by calling memcpy.
52158
52159 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
52160
52161         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
52162
52163         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
52164         evaluation.
52165
52166         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
52167         values in the mantissa.
52168
52169         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
52170         minimize writes to Z.
52171         (sub_magnitudes): Simplify code a bit.
52172
52173 2013-02-12  Roland McGrath  <roland@hack.frob.com>
52174
52175         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
52176         from the message.  The linker prefixes all warnings with that already.
52177
52178 2013-02-12  Andreas Schwab  <schwab@suse.de>
52179
52180         [BZ #15078]
52181         * posix/regexec.c (extend_buffers): Add parameter min_len.
52182         (check_matching): Pass minimum needed length.
52183         (clean_state_log_if_needed): Likewise.
52184         (get_subexp): Likewise.
52185         * posix/Makefile (tests): Add bug-regex34.
52186         (bug-regex34-ENV): Define.
52187         * posix/bug-regex34.c: New file.
52188
52189         [BZ #11561]
52190         * posix/regcomp.c (parse_bracket_exp): When looking up collating
52191         elements compare against the byte sequence of it, not its name.
52192         * posix/Makefile (tests): Add bug-regex35.
52193         (bug-regex35-ENV): Define.
52194         * posix/bug-regex35.c: New file.
52195
52196 2013-02-11  Tom de Vries  <tom@codesourcery.com>
52197
52198         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
52199         comment.
52200         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
52201         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
52202         (CHECK_EOL): Add undef.
52203
52204 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
52205
52206         * bits/stdlib-bsearch.h: New file.
52207         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
52208         * stdlib/stdlib.h: Likewise.
52209
52210 2013-02-11  Roland McGrath  <roland@hack.frob.com>
52211
52212         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
52213         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
52214         declaration.
52215         * manual/search.texi (Array Search Function): Add missing const in
52216         lfind prototype.
52217         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
52218         declaration to use rlim_t.
52219         (Basic Scheduling Functions): Remove erroneous const from
52220         sched_getparam prototype.  Remove erroneous * from
52221         sched_get_priority_max and sched_get_priority_min prototypes.
52222         (Resource Usage): Fix summary @comment on vtimes to refer to
52223         sys/vtimes.h rather than vtimes.h.
52224         Add missing *s in vtimes prototype.
52225         (Limits on Resources): Fix ulimit prototype to return long int.
52226         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
52227         prototypes to use long int rather than double.
52228         (BSD Random): Fix initstate and setstate to use char *, not void *.
52229         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
52230         prototype to make second argument 'struct aiocb64 *const[]'.
52231         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
52232         (Status of AIO Operations): Remove erroneous const in aio_return and
52233         aio_return64 prototypes.
52234         (Synchronizing I/O): Fix sync prototype to return void.
52235         * manual/startup.texi (Suboptions): Remove an erroneous const in
52236         getsubopt prototype.
52237         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
52238         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
52239         use size_t rather than int.
52240         (Scanning All Users): Likewise for getpwent_r.
52241         (Setting Groups): Add missing const to setgroups prototype.
52242         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
52243         * manual/socket.texi (Host Names): Fix gethostbyaddr and
52244         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
52245         'const void *' rather than 'const char *'.
52246         (Host Address Functions): Likewise for inet_ntop.
52247         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
52248         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
52249         ssize_t for return value.
52250         (Sending Data): Likewise for send, sendto, sendmsg.
52251         (Socket Option Functions): Add a missing const in setsockopt prototype.
52252         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
52253         use wchar_t for the argument.
52254         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
52255         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
52256         take no arguments.
52257         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
52258         double/float/long double for second argument.
52259         Fix return types of significand, significandf, significandl.
52260         * manual/filesys.texi (Setting Permissions): Use mode_t for second
52261         argument in fchmod prototype.
52262         (File Owner): Use uid_t and gid_t in fchown prototype.
52263         (File Times): Add const to utimes, futimes, and lutimes prototypes.
52264         (Making Special Files): Use mode_t and dev_t in mknod prototype.
52265         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
52266         use 'const struct dirent **' as argument types to CMP function pointer
52267         argument.
52268         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
52269         (File Times): Fix summary magic @comment for struct utimbuf and utime
52270         to refer to utime.h, not time.h.
52271         * manual/string.texi (Argz Functions): Add missing const in
52272         argz_extract and argz_next prototypes.
52273         (Finding Tokens in a String): Likewise for basename.
52274         (String/Array Comparison): Fix typo in wcscasecmp prototype.
52275         (Copying and Concatenation): Fix typo in wmemmove prototype.
52276         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
52277         (Signal Stack): Remove erroneous const in sigstack prototype.
52278         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
52279         prototype.
52280         (Simple Calendar Time): Likewise for stime.
52281         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
52282         prototype.
52283         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
52284         say sys/sysctl.h instead.
52285         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
52286         and vsyslog prototypes.
52287
52288 2013-02-11  Tom de Vries  <tom@codesourcery.com>
52289
52290         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
52291         Remove.
52292
52293 2013-02-11  Roland McGrath  <roland@hack.frob.com>
52294
52295         * misc/sys/mman.h: Fix typo in mremap comment.
52296
52297 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52298
52299         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
52300         the '\0' terminator.
52301
52302 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52303
52304         [BZ #13550]
52305         * debug/segfault.c: Don't include <bp-checks.h>.
52306         * sysdeps/generic/bp-checks.h: Remove file.
52307         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
52308         (__GETDENTS): Don't use CHECK_N.
52309         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
52310         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
52311         (__getgroups): Don't use CHECK_N.
52312         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
52313         (setgroups): Don't use CHECK_N.
52314         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
52315         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
52316         (__libc_msgrcv): Don't use CHECK_N.
52317         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
52318         (__libc_msgsnd): Don't use CHECK_N.
52319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
52320         <bp-checks.h>.
52321         (__libc_pread): Don't use CHECK_N.
52322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
52323         include <bp-checks.h>.
52324         (__libc_pread64): Don't use CHECK_N.
52325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
52326         include <bp-checks.h>.
52327         (__libc_pwrite): Don't use CHECK_N.
52328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
52329         include <bp-checks.h>.
52330         (__libc_pwrite64): Don't use CHECK_N.
52331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
52332         <bp-checks.h>.
52333         (__libc_pread): Don't use CHECK_N.
52334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
52335         include <bp-checks.h>.
52336         (__libc_pread64): Don't use CHECK_N.
52337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
52338         include <bp-checks.h>.
52339         (__libc_pwrite): Don't use CHECK_N.
52340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
52341         include <bp-checks.h>.
52342         (__libc_pwrite64): Don't use CHECK_N.
52343         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
52344         (do_pread): Don't use CHECK_N.
52345         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
52346         (do_pread64): Don't use CHECK_N.
52347         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
52348         (do_pwrite): Don't use CHECK_N.
52349         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
52350         (do_pwrite64): Don't use CHECK_N.
52351         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
52352         (__libc_readv): Don't use CHECK_N.
52353         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
52354         (semop): Don't use CHECK_N.
52355         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
52356         <bp-checks.h>.
52357         (semtimedop): Don't use CHECK_N.
52358         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
52359         (__libc_pread): Don't use CHECK_N.
52360         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
52361         <bp-checks.h>.
52362         (__libc_pread64): Don't use CHECK_N.
52363         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
52364         <bp-checks.h>.
52365         (__libc_pwrite): Don't use CHECK_N.
52366         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
52367         <bp-checks.h>.
52368         (__libc_pwrite64): Don't use CHECK_N.
52369         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
52370         <bp-checks.h>.
52371         (__libc_msgrcv): Don't use CHECK_N.
52372         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
52373         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
52374         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
52375         (__libc_writev): Don't use CHECK_N.
52376
52377 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52378
52379         * string/strcpy.c: Removed unused variable.
52380
52381         * Makeconfig (+sysdep-includes): Define with := rather than =.
52382         Use an existing include/ subdir of each sysdeps dir before it.
52383
52384 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52385
52386         * nscd/connection.c (register_traced_file): Comment function.
52387         [HAVE_INOTIFY] (union __inev): Define.
52388         [HAVE_INOTIFY] (inotify_check_files): New function.
52389         [HAVE_INOTIFY] (clear_db_cache): Likewise.
52390         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
52391         clear_db_cache.
52392         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
52393
52394 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52395
52396         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
52397         loaded if not already and that a failure is permanent.
52398
52399 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52400
52401         [BZ #15006]
52402         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
52403         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
52404
52405 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52406
52407         [BZ #13550]
52408         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
52409         (CHECK_1_NULL_OK): Likewise.
52410         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
52411         (__fxstat): Do not use CHECK_1.
52412         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
52413         <bp-checks.h>.
52414         (___fxstat64): Do not use CHECK_1.
52415         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
52416         <bp-checks.h>.
52417         (__fxstatat): Do not use CHECK_1.
52418         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
52419         <bp-checks.h>.
52420         (__fxstatat64): Do not use CHECK_1.
52421         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
52422         <bp-checks.h>.
52423         (__fxstat): Do not use CHECK_1.
52424         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
52425         <bp-checks.h>.
52426         (__fxstatat): Do not use CHECK_1.
52427         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
52428         <bp-checks.h>.
52429         (__getresgid): Do not use CHECK_1.
52430         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
52431         <bp-checks.h>.
52432         (__getresuid): Do not use CHECK_1.
52433         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
52434         <bp-checks.h>.
52435         (__lxstat): Do not use CHECK_1.
52436         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
52437         <bp-checks.h>.
52438         (__old_msgctl): Do not use CHECK_1.
52439         (__new_msgctl): Likewise.
52440         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
52441         <bp-checks.h>.
52442         (__new_setrlimit): Do not use CHECK_1.
52443         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
52444         <bp-checks.h>.
52445         (__old_shmctl): Do not use CHECK_1.
52446         (__new_shmctl): Likewise.
52447         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
52448         <bp-checks.h>.
52449         (__xstat): Do not use CHECK_1.
52450         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
52451         (__lxstat): Do not use CHECK_1.
52452         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
52453         <bp-checks.h>.
52454         (___lxstat64): Do not use CHECK_1.
52455         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
52456         (__old_msgctl): Do not use CHECK_1.
52457         (__new_msgctl): Likewise.
52458         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
52459         <bp-checks.h>.
52460         (__gettimeofday): Do not use CHECK_1.
52461         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
52462         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
52463         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
52464         <bp-checks.h>.
52465         (__gettimeofday): Do not use CHECK_1.
52466         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
52467         (__old_shmctl): Do not use CHECK_1_NULL_OK.
52468         (__new_shmctl): Do not use CHECK_1.
52469         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
52470         <bp-checks.h>.
52471         (do_sigtimedwait): Do not use CHECK_1.
52472         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
52473         <bp-checks.h>.
52474         (do_sigwaitinfo): Do not use CHECK_1.
52475         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
52476         <bp-checks.h>.
52477         (msgctl): Do not use CHECK_1.
52478         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
52479         <bp-checks.h>.
52480         (shmctl): Do not use CHECK_1.
52481         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
52482         (ustat): Do not use CHECK_1.
52483         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
52484         <bp-checks.h>.
52485         (__fxstat): Do not use CHECK_1.
52486         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
52487         <bp-checks.h>.
52488         (__fxstatat): Do not use CHECK_1.
52489         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
52490         <bp-checks.h>.
52491         (__lxstat): Do not use CHECK_1.
52492         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
52493         <bp-checks.h>.
52494         (__xstat): Do not use CHECK_1.
52495         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
52496         (__xstat): Do not use CHECK_1.
52497         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
52498         (___xstat64): Do not use CHECK_1.
52499
52500         [BZ #13550]
52501         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
52502         definitions.
52503         (CHECK_BOUNDS_HIGH): Likewise.
52504         * string/strcpy.c: Do not include <bp-checks.h>.
52505         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
52506
52507 2013-02-07  Roland McGrath  <roland@hack.frob.com>
52508
52509         * nscd/nscd-client.h (__nscd_drop_map_ref):
52510         Add __attribute__ ((unused)).
52511         * nis/nss-nisplus.h (niserr2nss): Likewise.
52512
52513         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
52514         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
52515
52516         * csu/libc-tls.c (init_static_tls, init_slotinfo):
52517         Remove inline keyword.
52518         * include/rounding-mode.h (round_away): Likewise.
52519         * libio/wfileops.c (adjust_wide_data): Likewise.
52520         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
52521         (__m128i_strloadu_tolower): Likewise.
52522         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
52523         (__m128i_strloadu_tolower): Likewise.
52524         * time/mktime.c (ydhms_diff): Likewise.
52525         * locale/elem-hash.h (elem_hash): Likewise.
52526         * locale/setlocale.c (setdata): Likewise.
52527         * posix/regex_internal.h (re_string_char_size_at): Likewise.
52528         (re_string_wchar_at): Likewise.
52529         (bitset_not, bitset_merge, bitset_mask): Likewise.
52530         [!(__GNUC__ > 3)] (inline): Remove macro.
52531         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
52532         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
52533         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
52534         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
52535         * string/memcmp.c (memcmp_bytes): Likewise.
52536         * locale/programs/locarchive.c (compute_hashval): Likewise.
52537         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
52538         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
52539         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
52540         * nss/getent.c (print_rpc, print_protocols): Likewise.
52541         (print_passwd, print_group, print_aliases): Likewise.
52542         * nis/nss-nisplus.h (niserr2nss): Likewise.
52543         * nscd/connections.c (restart_p): Likewise.
52544         Change return type to bool.
52545
52546 2013-02-05  Roland McGrath  <roland@hack.frob.com>
52547
52548         * Makeconfig (all-Depend-files): Add existing
52549         $(sorted-subdirs:=/Depend) files.
52550         (all-subdirs): Remove nss.
52551         * sysdeps/unix/inet/Subdirs: Add it here instead.
52552         * hesiod/Depend: New file.
52553
52554         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
52555         instead of calling alloca.
52556
52557         * io/lseek.c (__lseek): Rename to __libc_lseek.
52558         Define __lseek as an alias.
52559
52560         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
52561
52562 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
52563
52564         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
52565         else clause and remove check for non-standard endianness.
52566
52567 2013-02-04  David S. Miller  <davem@davemloft.net>
52568
52569         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52570
52571 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
52572
52573         [BZ #13550]
52574         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
52575         (__ubp_memchr): Remove prototype.
52576         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
52577         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52578         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
52579         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52580         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
52581         Remove alias.
52582         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
52583         (__ubp_memchr): Likewise.
52584         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
52585         (__ubp_memchr): Likewise.
52586         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
52587         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
52588         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
52589         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
52590         CHECK_STRING.
52591         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
52592         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
52593         (__getcwd): Do not use CHECK_STRING.
52594         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
52595         <bp-checks.h>.
52596         (__real_chown): Do not use CHECK_STRING.
52597         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
52598         <bp-checks.h>.
52599         (fchownat): Do not use CHECK_STRING.
52600         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
52601         CHECK_STRING.
52602         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
52603         <bp-checks.h>.
52604         (__lchown): Do not use CHECK_STRING.
52605         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52606         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52607         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52608         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
52609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
52610         include <bp-checks.h>.
52611         (truncate64): Do not use CHECK_STRING.
52612         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
52613         <bp-checks.h>.
52614         (__real_chown): Do not use CHECK_STRING.
52615         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
52616         <bp-checks.h>.
52617         (__lchown): Do not use CHECK_STRING.
52618         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
52619         <bp-checks.h>.
52620         (__chown): Do not use CHECK_STRING.
52621         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
52622         <bp-checks.h>.
52623         (truncate64): Do not use CHECK_STRING.
52624         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
52625         Likewise.
52626         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
52627         (__xmknod): Do not use CHECK_STRING.
52628         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
52629         <bp-checks.h>.
52630         (__xmknodat): Do not use CHECK_STRING.
52631         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52632         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
52633
52634 2013-02-04  Andreas Schwab  <schwab@suse.de>
52635
52636         [BZ #14142]
52637         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
52638         * include/netdb.h: Likewise for h_errno.
52639         * elf/tst-stackguard1.c: Include <tls.h>.
52640
52641 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
52642
52643         * elf/link.h (struct link_map): Extend the l_addr comment.
52644         * include/link.h (struct link_map): Likewise.
52645
52646 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
52647
52648         [BZ #13550]
52649         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
52650         (BOUNDED_1): Remove macro.
52651         * debug/backtrace.c: Don't include <bp-checks.h>.
52652         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
52653         (__backtrace): Likewise.
52654         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
52655         <bp-checks.h>.
52656         (__backtrace): Don't use BOUNDED_1.
52657         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
52658         <bp-checks.h>.
52659         (__backtrace): Don't use BOUNDED_1.
52660         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
52661         (__backtrace): Don't use BOUNDED_1.
52662         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
52663         (shmat): Don't use BOUNDED_N.
52664
52665 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
52666
52667         [BZ #13550]
52668         * sysdeps/generic/bp-start.h: Remove file.
52669         * csu/libc-start.c: Don't include <bp-start.h>.
52670         (LIBC_START_MAIN): Set up __environ directly instead of using
52671         INIT_ARGV_and_ENVIRON.
52672         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
52673         <bp-start.h>.
52674
52675         [BZ #13550]
52676         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
52677         definitions.
52678         (CHECK_FCNTL): Likewise.
52679         (CHECK_N_PAGES): Likewise.
52680
52681         [BZ #13550]
52682         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
52683         definitions.
52684         (CHECK_SIGSET_NULL_OK): Likewise.
52685         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
52686         <bp-checks.h>.
52687         (sigpending): Don't use CHECK_SIGSET.
52688         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
52689         <bp-checks.h>.
52690         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52691         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
52692         <bp-checks.h>.
52693         (do_sigsuspend): Don't use CHECK_SIGSET.
52694         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
52695         use CHECK_SIGSET.
52696         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
52697         (do_sigwait): Don't use CHECK_SIGSET.
52698         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
52699         use CHECK_SIGSET.
52700         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
52701         include <bp-checks.h>.
52702         (sigpending): Don't use CHECK_SIGSET.
52703         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
52704         include <bp-checks.h>.
52705         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52706         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
52707         <bp-checks.h>.
52708         (sigpending): Don't use CHECK_SIGSET.
52709         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
52710         <bp-checks.h>.
52711         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52712
52713         [BZ #13550]
52714         * sysdeps/generic/bp-semctl.h: Remove file.
52715         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
52716         <bp-checks.h> and <bp-semctl.h>.
52717         (__old_semctl): Don't use CHECK_SEMCTL.
52718         (__new_semctl): Likewise.
52719         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
52720         and <bp-semctl.h>.
52721         (__old_semctl): Don't use CHECK_SEMCTL.
52722         (__new_semctl): Likewise.
52723         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
52724         <bp-checks.h> and <bp-semctl.h>.
52725         (__old_semctl): Don't use CHECK_SEMCTL.
52726         (__new_semctl): Likewise.
52727         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
52728         <bp-checks.h> and <bp-semctl.h>.
52729         (semctl): Don't use CHECK_SEMCTL.
52730
52731         [BZ #13550]
52732         * Makerules (elide-bp-thunks): Remove variable.
52733         (elide-routines.oS): Don't use $(elide-bp-thunks).
52734         (elide-routines.os): Likewise.
52735         (elide-routines.o): Likewise.
52736         (elide-routines.op): Likewise.
52737         (elide-routines.og): Likewise.
52738         (objects): Don't use $(bp-thunks).
52739         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
52740         include.
52741         (common-generated): Do not add s-proto-bp.d.
52742         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
52743         (int): Likewise.
52744         (typ): Likewise.
52745         Do not generate makefile rules for bounded-pointer thunks.
52746         * sysdeps/generic/bp-thunks.h: Remove file.
52747         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
52748         * sysdeps/unix/s-proto-bp.S: Likewise.
52749
52750         [BZ #15062]
52751         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
52752         parts of result separately when argument is not close to line from
52753         -i to i and one part of argument is small.
52754         * math/k_casinhf.c (__kernel_casinhf): Likewise.
52755         * math/k_casinhl.c (__kernel_casinhl): Likewise.
52756         * math/libm-test.inc (cacos_test): Add more tests.
52757         (casin_test): Likewise.
52758         (casinh_test): Likewise.
52759         * sysdeps/i386/fpu/libm-test-ulps: Update.
52760         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52761
52762 2013-01-31  David S. Miller  <davem@davemloft.net>
52763
52764         * po/de.po: Update from translation team.
52765
52766 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
52767
52768         * time/tzfile.c: Include stdint.h for SIZE_MAX.
52769
52770 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
52771
52772         * configure.in (_AC_PROG_CC_C89): New definition.
52773         * configure: Regenerate.
52774
52775         * configure.in (AC_PROG_CPP): New definition.
52776         * configure: Regenerate.
52777
52778 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52779
52780         * debug/tst-backtrace.h: New file.
52781         * debug/tst-backtrace2.c: Include tst-backtrace.h.
52782         (ret): Remove variable.
52783         (x): Likewise.
52784         (FAIL): Remove macro.
52785         (NO_INLINE): Likewise.
52786         (fn1): Use match function instead of strstr.
52787         * debug/tst-backtrace3.c: Include tst-backtrace.h.
52788         (ret): Remove variable.
52789         (x): Likewise.
52790         (FAIL): Remove macro.
52791         (NO_INLINE): Likewise.
52792         (fn): Use match function instead of strstr.
52793         * debug/tst-backtrace4.c: Include tst-backtrace.h.
52794         (ret): Remove variable.
52795         (x): Likewise.
52796         (FAIL): Remove macro.
52797         (NO_INLINE): Likewise.
52798         (handle_signal): Use match function instead of strstr.
52799         * debug/tst-backtrace5.c: Include tst-backtrace.h.
52800         (ret): Remove variable.
52801         (x): Likewise.
52802         (FAIL): Remove macro.
52803         (NO_INLINE): Likewise.
52804         (handle_signal): Use match function instead of strstr.
52805
52806 2013-01-23  Roland McGrath  <roland@hack.frob.com>
52807
52808         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
52809
52810 2013-01-23  David S. Miller  <davem@davemloft.net>
52811
52812         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
52813         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
52814         argument of CAS if possible.
52815         * sysdeps/sparc/sparc64/bits/atomic.h
52816         (__arch_compare_and_exchange_val_32_acq): Likewise.
52817         (__arch_compare_and_exchange_val_64_acq): Likewise.
52818
52819 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52820
52821         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
52822         * sysdeps/posix/ulimit.c: ... this.
52823         Include <limits.h>.
52824         * sysdeps/unix/bsd/ulimit.c: Remove file.
52825
52826 2013-01-23  Adam Conrad  <adconrad@0c3.net>
52827
52828         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
52829         (LDFLAGS-tst-array5): Likewise.
52830
52831 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52832
52833         [BZ #15036]
52834         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
52835         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
52836         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
52837         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
52838
52839 2013-01-21  David S. Miller  <davem@davemloft.net>
52840
52841         * sysdeps/sparc/backtrace.c: New file.
52842         * sysdeps/sparc/sparc32/backtrace.h: New file.
52843         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
52844         * sysdeps/sparc/sparc64/backtrace.h: New file.
52845         * sysdeps/sparc/sparc64/backtrace.c: Delete.
52846         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
52847         -funwind-tables.
52848
52849 2013-01-21  Andreas Schwab  <schwab@suse.de>
52850
52851         [BZ #15020]
52852         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
52853         closed its stdout.
52854
52855 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
52856
52857         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
52858         "mpa2.h".
52859         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52860
52861 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
52862             Mark Mitchell  <mark@codesourcery.com>
52863             Tom de Vries  <tom@codesourcery.com>
52864             Paul Pluzhnikov  <ppluzhnikov@google.com>
52865
52866         * debug/tst-backtrace2.c: New file.
52867         * debug/tst-backtrace3.c: Likewise.
52868         * debug/tst-backtrace4.c: Likewise.
52869         * debug/tst-backtrace5.c: Likewise.
52870         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
52871         (CFLAGS-tst-backtrace3.c): Likewise.
52872         (CFLAGS-tst-backtrace4.c): Likewise.
52873         (CFLAGS-tst-backtrace5.c): Likewise.
52874         (LDFLAGS-tst-backtrace2): Likewise.
52875         (LDFLAGS-tst-backtrace3): Likewise.
52876         (LDFLAGS-tst-backtrace4): Likewise.
52877         (LDFLAGS-tst-backtrace5): Likewise.
52878         (tests): Add new tests tst-backtrace2, tst-backtrace3,
52879         tst-backtrace4 and tst-backtrace5.
52880
52881 2013-01-18  Anton Blanchard  <anton@samba.org>
52882             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52883
52884         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
52885         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
52886         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
52887         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
52888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
52889         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
52890         "+r" and remove output regs list as redundant.  Add explicit inline
52891         asm to specify register of return val to work around compiler codegen
52892         bug.  Remove (int) cast on return value.  Add return type parameter to
52893         use in macro so that this macro does not truncate return value for
52894         64-bit values.
52895         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
52896         pass to INTERNAL_VSYSCALL_NCS.
52897         (INLINE_VSYSCALL): Add 'long int' as return type to
52898         INTERNAL_VSYSCALL_NCS macro invocation.
52899         (INTERNAL_VSYSCALL): Add 'long int' as return type to
52900         INTERNAL_VSYSCALL_NCS macro invocation.
52901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
52902
52903 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
52904
52905         [BZ #14496]
52906         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
52907         Fix application of SIMD FP exception mask.
52908
52909         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
52910         mp_no from a power of two.
52911         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
52912         __mpexp_twomm1.  Use __pow_mp.
52913
52914         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
52915         multiplication.
52916
52917 2013-01-17  David S. Miller  <davem@davemloft.net>
52918
52919         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52920
52921 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52922
52923         [BZ #15023]
52924         * include/complex.h: Condition contents on [!_COMPLEX_H].
52925         (__kernel_casinhf): New prototype.
52926         (__kernel_casinh): Likewise.
52927         (__kernel_casinhl): Likewise.
52928         * math/Makefile (libm_calls): Add k_casinh.
52929         * math/k_casinh.c: New file.
52930         * math/k_casinhf.c: Likewise.
52931         * math/k_casinhl.c: Likewise.
52932         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
52933         finite nonzero arguments.
52934         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
52935         finite nonzero arguments.
52936         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
52937         finite nonzero arguments.
52938         * math/s_casinh.c: Do not include <float.h>.
52939         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
52940         * math/s_casinhf.c: Do not include <float.h>.
52941         (__casinhf): Move code for finite nonzero arguments to
52942         k_casinhf.c.
52943         * math/s_casinhl.c: Do not include <float.h>.
52944         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
52945         redefine.
52946         (__casinhl): Move code for finite nonzero arguments to
52947         k_casinhl.c.
52948         * math/libm-test.inc (cacos_test): Add more tests.
52949         * sysdeps/i386/fpu/libm-test-ulps: Update.
52950         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52951
52952 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
52953
52954         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
52955         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
52956         [!HAVE_MREMAP]: Remove [defined linux] case.
52957         * malloc/arena.c: Do not include <malloc-sysdep.h>.
52958
52959 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
52960
52961         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
52962
52963 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
52964
52965         * elf/elf.h (R_386_SIZE32): New relocation.
52966         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
52967         R_386_SIZE32.
52968         (elf_machine_rela): Likewise.
52969         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
52970         R_X86_64_SIZE64 and R_X86_64_SIZE32.
52971
52972 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52973
52974         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
52975         (FP_FAST_FMA): Do not define.
52976         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
52977         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
52978         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
52979         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
52980         !_SOFT_FLOAT]: Likewise.
52981         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
52982         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
52983         value.
52984         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
52985         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
52986         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
52987         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
52988         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
52989         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
52990         file.
52991
52992 2013-01-16  Andreas Schwab  <schwab@suse.de>
52993
52994         [BZ #14327]
52995         * include/stdlib.h (__mktemp): Add declaration.
52996         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
52997         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
52998
52999 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
53000
53001         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
53002         definitions.
53003         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53004         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
53005         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
53006         definitions here.
53007         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
53008         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
53009         definitions.
53010         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
53011         and ONE.
53012         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
53013         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
53014         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
53015         definitions.
53016         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
53017         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
53018         definitions.
53019         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53020
53021         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
53022
53023 2013-01-15  David S. Miller  <davem@davemloft.net>
53024
53025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53026         trunc{,f} to libm-sysdep_routes.
53027         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
53029         file.
53030         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
53031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
53032         file.
53033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
53034         file.
53035         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
53036         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
53037         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
53038         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
53039         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
53040         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
53041         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
53042         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
53043
53044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53045         nearbyint{,f} to libm-sysdep_routes.
53046         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
53048         New file.
53049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
53050         file.
53051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
53052         New file.
53053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
53054         file.
53055         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
53056         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
53057         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
53058         file.
53059         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
53060         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
53061         file.
53062         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
53063         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
53064         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
53065
53066         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
53067         libc_feholdexcept and libc_fesetenv.
53068
53069 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
53070
53071         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
53072
53073 2013-01-14  David S. Miller  <davem@davemloft.net>
53074
53075         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
53076         (SPARC_ASM_VIS2_IFUNC): Likewise.
53077         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
53078         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
53079         use of 'siam' instruction.
53080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
53081         Likewise.
53082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
53083         Likewise.
53084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
53085         Likewise.
53086         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
53087         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
53088         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
53089         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
53090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
53091         file.
53092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
53093         file.
53094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
53095         file.
53096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
53097         file.
53098         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
53099         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
53100         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
53101         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
53102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
53103         new VIS2 routines.
53104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
53105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
53106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
53107         Likewise.
53108         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
53109         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
53110         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
53111         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
53112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
53113         routines to libm-sysdep_routines.
53114         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53115
53116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53117         fdim/fdimf to libm-sysdep_routines.
53118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
53119         file.
53120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
53121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
53122         file.
53123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
53124         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
53125         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
53126         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
53127         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
53128         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
53129         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
53130
53131 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
53132
53133         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
53134         to optimize copies.
53135
53136         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
53137         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53138         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53139
53140         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
53141         local variable MPTWO.
53142         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
53143         Likewise.
53144
53145 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53146
53147         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
53148         GLOB_NOESCAPE.
53149
53150 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53151
53152         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
53153
53154 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53155
53156         * manual/pattern.texi (glob_t): Document gl_flags.
53157         (glob64_t): Likewise.
53158
53159 2013-01-11  David S. Miller  <davem@davemloft.net>
53160
53161         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
53162         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
53163         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
53164         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
53165         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
53166         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
53167         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
53168         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
53169         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
53170         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
53171         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
53172         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
53173         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
53174
53175         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53176         sparc V9 rather than using V8 code.
53177         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53178         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53179
53180         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
53181         Move to...
53182         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
53183         Here.
53184
53185 2013-01-11  Roland McGrath  <roland@hack.frob.com>
53186
53187         [BZ #14941]
53188         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
53189         not in the main loop.
53190         * configure: Regenerated.
53191
53192 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
53193
53194         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
53195         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
53196         to just #else.
53197         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
53198         [!__GLIBC_HAVE_LONG_LONG] case.
53199         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
53200         condition to just #else.
53201         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
53202         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
53203         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
53204         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
53205         unconditional.
53206         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
53207         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
53208         #elif condition to just #else.
53209         * sysdeps/unix/sysv/linux/sys/sysmacros.h
53210         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
53211         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
53212         #elif condition to just #else.
53213
53214 2013-01-11  Steve Ellcey  <sellcey@mips.com>
53215
53216         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
53217         (EF_MIPS_ARCH_64): Fix value.
53218         (EF_MIPS_ARCH_32R2): New.
53219         (EF_MIPS_ARCH_64R2): New.
53220
53221 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
53222
53223         * Makeconfig (+link-pie-before-libc): New.
53224         (+link-pie-after-libc): Likewise.
53225         (+link-pie-tests): Likewise.
53226         (+link-pie): Rewritten.
53227         (link-before-libc): Remove $(config-LDFLAGS).
53228         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
53229         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
53230         (config-LDFLAGS): Renamed to ...
53231         (rtld-LDFLAGS): This.
53232         (rtld-tests-LDFLAGS): New macro.
53233         (link-libc-rpath-link): Likewise.
53234         (link-libc-tests-rpath-link): Likewise.
53235         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
53236         (link-libc): Prepand $(link-libc-rpath-link).
53237         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
53238         (test-program-prefix): New macro.
53239         (test-via-rtld-prefix): Likewise.
53240         (test-program-cmd): Likewise.
53241         (host-test-program-cmd): Likewise.
53242         * Makefile ($(common-objpfx)testrun.sh): Replace
53243         $(run-program-prefix) with $(test-program-prefix).
53244         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
53245         $(rtld-LDFLAGS).
53246         ($(common-objpfx)shlib.lds): Likewise.
53247         (build-module-helper): Likewise.
53248         ($(common-objpfx)format.lds): Likewise.
53249         * Rules (binaries-pie-tests): New.
53250         (binaries-pie-notests): Likewise.
53251         (binaries-pie): Rewritten.
53252         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
53253         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
53254         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
53255         (make-test-out): Replace $(host-built-program-cmd) with
53256         $(host-test-program-cmd).
53257         * config.make.in (build-hardcoded-path-in-tests): New variable.
53258         * configure.in (--enable-hardcoded-path-in-tests): New configure
53259         option.
53260         (hardcoded_path_in_tests): New AC_SUBST.
53261         * configure: Regenerated.
53262         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
53263         $(built-program-cmd) with $(test-program-cmd).
53264         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
53265         (test_program_cmd): This.
53266         * elf/Makefile ($(objpfx)order.out): Run test with
53267         $(test-program-prefix).
53268         ($(objpfx)order2.out): Likewise.
53269         ($(objpfx)tst-initorder.out): Likewise.
53270         ($(objpfx)tst-initorder2.out): Likewise.
53271         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
53272         $(test-program-cmd).
53273         ($(objpfx)tst-array1-static.out): Likewise.
53274         ($(objpfx)tst-array2.out): Likewise.
53275         ($(objpfx)tst-array3.out): Likewise.
53276         ($(objpfx)tst-array4.out): Likewise.
53277         ($(objpfx)tst-array5.out): Likewise.
53278         ($(objpfx)tst-array5-static.out): Likewise.
53279         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
53280         $(test-program-cmd).
53281         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
53282         $(run-program-prefix) with $(test-program-prefix).
53283         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
53284         (test_program_prefix): This.
53285         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
53286         $(run-program-prefix) with $(test-program-prefix).
53287         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
53288         (test_program_prefix): This.
53289         * iconvdata/tst-tables.sh: Likewise.
53290         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
53291         $(run-program-prefix) with $(test-program-prefix).
53292         ($(objpfx)tst-translit.out): Likewise.
53293         ($(objpfx)tst-gettext2.out): Likewise.
53294         ($(objpfx)tst-gettext4.out): Likewise.
53295         ($(objpfx)tst-gettext6.out): Likewise.
53296         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
53297         (test_program_prefix): This.
53298         * intl/tst-gettext2.sh: Likewise.
53299         * intl/tst-gettext4.sh  Likewise.
53300         * intl/tst-gettext6.sh: Likewise.
53301         * intl/tst-translit.sh: Likewise.
53302         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
53303         with $(test-program-cmd).
53304         * libio/Makefile ($(objpfx)test-freopen.out): Replace
53305         $(run-program-prefix) with $(test-program-prefix).
53306         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
53307         (test_program_prefix): This.
53308         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
53309         $(run-program-prefix) with $(test-program-prefix).
53310         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
53311         (test_program_prefix): This.
53312         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
53313         * posix/Makefile ($(objpfx)globtest.out): Replace
53314         $(run-via-rtld-prefix) and $(test-wrapper) with
53315         $(test-program-prefix) and $(test-via-rtld-prefix).
53316         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
53317         $(test-program-prefix).
53318         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
53319         $(host-test-program-cmd).
53320         (tst-spawn-ARGS): Likewise.
53321         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
53322         $(test-program-prefix).
53323         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
53324         (test_via_rtld_prefix): This.
53325         (test_wrapper): Renamed to ...
53326         (test_program_prefix): This.
53327         (run_program_prefix): Replaced by test_program_prefix.
53328         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
53329         (test_program_prefix): This.
53330         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
53331         with $(host-test-program-cmd).
53332         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
53333         $(run-program-prefix) with $(test-program-prefix).
53334         ($(objpfx)tst-printf.out): Likewise.
53335         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
53336         $(test-program-cmd).
53337         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
53338         (test_program_prefix): This.
53339         * stdio-common/tst-unbputc.sh: Likewise.
53340         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
53341         $(run-program-prefix) with $(test-program-prefix).
53342         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
53343         (test_program_prefix): This.
53344         * string/Makefile ($(objpfx)tst-svc.out):  Replace
53345         $(built-program-cmd) with $(test-program-cmd).
53346
53347 2013-01-11  Andreas Jaeger  <aj@suse.de>
53348
53349         [BZ #15003]
53350         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
53351         value. Sync with Linux 3.7.
53352
53353 2013-01-10  David S. Miller  <davem@davemloft.net>
53354
53355         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
53356         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53357         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53358
53359 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53360
53361         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
53362         never set.
53363         * configure: Regenerated.
53364
53365 2013-01-10  David S. Miller  <davem@davemloft.net>
53366
53367         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53368         sparc V9 rather than using V8 code.
53369         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53370         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53371
53372 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53373
53374         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
53375         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
53376         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
53377         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
53378         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
53379         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
53380         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
53381         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
53382         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
53383         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
53384         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
53385         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
53386         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
53387         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
53388         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
53389         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
53390         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
53391         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
53392         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
53393         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
53394         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
53395         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
53396         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
53397         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
53398         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
53399         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
53400         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
53401
53402 2013-01-10  David S. Miller  <davem@davemloft.net>
53403
53404         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53405
53406 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53407
53408         * posix/Makefile (tests-static): New variable.
53409         (tests): Add $(tests-static).
53410         (tst-exec-static-ARGS): New variable.
53411         (tst-spawn-static-ARGS): Likewise.
53412         * posix/tst-exec-static.c: New file.
53413         * posix/tst-spawn-static.c: Likewise.
53414         * posix/tst-exec.c: Support run directly.
53415         * posix/tst-spawn.c: Likewise.
53416
53417 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
53418
53419         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
53420         long.
53421         * math/bits/mathcalls.h (llrint): Likewise.
53422         (llround): Likewise.
53423         * stdlib/stdlib.h (struct drand48_data): Likewise.
53424         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
53425         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
53426         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
53427         Likewise.
53428         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
53429         Likewise.
53430         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
53431         (elf_greg_t): Likewise.
53432         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
53433         (__jmp_buf): Likewise.
53434         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
53435         definitions.
53436         (llrint): Likewise, for all definitions.
53437         (llrintl): Likewise.
53438
53439         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
53440         Remove [__GNUC__] condition.
53441         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
53442         condition to just [__USE_ISOC99].
53443         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
53444
53445 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53446
53447         [BZ #14200]
53448         * sysdeps/unix/sysv/linux/x86/bits/environments.h
53449         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
53450         defined.
53451         (_POSIX_V6_ILP32_OFF32): Likewise.
53452         (_XBS5_ILP32_OFF32): Likewise.
53453         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
53454         (__ILP32_OFFBIG_LDFLAGS): Likewise.
53455
53456 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
53457
53458         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
53459
53460         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
53461         doubles __mpexp_twomm1.  Adjust usage.
53462         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
53463         Remove.
53464
53465 2013-01-10  Andreas Schwab  <schwab@suse.de>
53466
53467         [BZ #14964]
53468         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
53469         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
53470
53471 2013-01-09  David S. Miller  <davem@davemloft.net>
53472
53473         [BZ #15003]
53474         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
53475         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
53476         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
53477         (TCP_FASTOPEN): Define.
53478         (tcp_repair_opt): New structure.
53479         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
53480         enum values.
53481         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
53482         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
53483         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
53484         (tcp_cookie_transactions): New structure.
53485
53486 2013-01-09  Anton Blanchard  <anton@samba.org>
53487
53488         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
53489         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
53490         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
53491         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
53492
53493 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
53494
53495         * include/features.h (__USE_ANSI): Remove.
53496
53497 2013-01-09  Roland McGrath  <roland@hack.frob.com>
53498
53499         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
53500
53501         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
53502
53503 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
53504
53505         * sysdeps/s390/fpu/libm-test-ulps: Update.
53506
53507         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53508
53509         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
53510         (__acr): Likewise.
53511         (__cpy): Likewise.
53512         (norm): Likewise.
53513         (denorm): Likewise.
53514         (__mp_dbl): Likewise.
53515         (__dbl_mp): Likewise.
53516         (add_magnitudes): Likewise.
53517         (sub_magnitudes): Likewise.
53518         (__add): Likewise.
53519         (__sub): Likewise.
53520         (__mul): Likewise.
53521         (__inv): Likewise.
53522         (__dvd): Likewise.
53523         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
53524         (__acr): Likewise.
53525         (__cpy): Likewise.
53526         (norm): Likewise.
53527         (denorm): Likewise.
53528         (__mp_dbl): Likewise.
53529         (__dbl_mp): Likewise.
53530         (add_magnitudes): Likewise.
53531         (sub_magnitudes): Likewise.
53532         (__add): Likewise.
53533         (__sub): Likewise.
53534         (__mul): Likewise.
53535         (__inv): Likewise.
53536         (__dvd): Likewise.
53537         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
53538         (__acr): Likewise.
53539         (__cpy): Likewise.
53540         (norm): Likewise.
53541         (denorm): Likewise.
53542         (__mp_dbl): Likewise.
53543         (__dbl_mp): Likewise.
53544         (add_magnitudes): Likewise.
53545         (sub_magnitudes): Likewise.
53546         (__add): Likewise.
53547         (__sub): Likewise.
53548         (__mul): Likewise.
53549         (__inv): Likewise.
53550         (__dvd): Likewise.
53551
53552 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
53553
53554         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
53555         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
53556         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
53557         2 && __USE_EXTERN_INLINES]: Likewise.
53558
53559 2013-01-08  Andreas Jaeger  <aj@suse.de>
53560
53561         [BZ# 14985]
53562         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
53563         Remove.
53564         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53565         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53566
53567 2013-01-07  Anton Blanchard  <anton@samba.org>
53568
53569         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
53570         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
53571         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
53572         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
53573         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
53574         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
53575         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
53576         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53577         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53578         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53579         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
53580         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
53581         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
53582         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
53583         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
53584         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
53585         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
53586         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
53587         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
53588         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
53589         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
53590         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
53591         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
53592         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
53593         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
53594         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
53595         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
53596         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
53597         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
53598         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
53599         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
53600         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53601         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53602         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
53603         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
53604         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
53605         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
53606         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
53607         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
53608         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
53609         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
53610         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
53611         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
53612
53613 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
53614
53615         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
53616         (__MALLOC_PMT): Likewise.
53617         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
53618         [__GNUC__], only on [_LIBC].
53619         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53620         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
53621         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53622         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
53623         forward declaration.
53624         (realloc_hook_ini): Likewise.
53625         (memalign_hook_ini): Likewise.
53626         (__libc_memalign): Do not use __MALLOC_PMT in variable
53627         declaration.
53628         (__libc_valloc): Likewise.
53629         (__libc_pvalloc): Likewise.
53630         (__libc_calloc): Likewise.
53631         (__posix_memalign): Likewise.
53632
53633         [BZ #14996]
53634         * math/s_casinh.c: Include <float.h>.
53635         (__casinh): Do not do computation with squaring and square root
53636         for large arguments.
53637         * math/s_casinhf.c: Include <float.h>.
53638         (__casinhf): Do not do computation with squaring and square root
53639         for large arguments.
53640         * math/s_casinhl.c: Include <float.h>.
53641         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
53642         (__casinhl): Do not do computation with squaring and square root
53643         for large arguments.
53644         * math/libm-test.inc (casin_test): Add more tests.
53645         (casinh_test): Likewise.
53646         * sysdeps/i386/fpu/libm-test-ulps: Update.
53647         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53648
53649 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
53650
53651         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
53652         (__x86_64_raw_data_cache_size): Likewise.
53653         (__x86_64_data_cache_size_half): Likewise.
53654         (__x86_64_raw_data_cache_size_half): Likewise.
53655         (__x86_64_shared_cache_size): Likewise.
53656         (__x86_64_raw_shared_cache_size): Likewise.
53657         (__x86_64_shared_cache_size_half): Likewise.
53658         (__x86_64_raw_shared_cache_size_half): Likewise.
53659         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
53660         to ...
53661         (__x86_data_cache_size): This.
53662         (__x86_64_raw_data_cache_size): Renamed to ...
53663         (__x86_raw_data_cache_size): This.
53664         (__x86_64_data_cache_size_half): Renamed to ...
53665         (__x86_data_cache_size_half): This.
53666         (__x86_64_raw_data_cache_size_half): Renamed to ...
53667         (__x86_raw_data_cache_size_half): This.
53668         (__x86_64_shared_cache_size): Renamed to ...
53669         (__x86_shared_cache_size): This.
53670         (__x86_64_raw_shared_cache_size): Renamed to ...
53671         (__x86_raw_shared_cache_size): This.
53672         (__x86_64_shared_cache_size_half): Renamed to ...
53673         (__x86_shared_cache_size_half): This.
53674         (__x86_64_raw_shared_cache_size_half): Renamed to ...
53675         (__x86_raw_shared_cache_size_half): This.
53676         * sysdeps/x86_64/memcpy.S: Updated.
53677         * sysdeps/x86_64/memset.S: Likewise.
53678         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
53679         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
53680         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
53681
53682 2013-01-04  David S. Miller  <davem@davemloft.net>
53683
53684         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53685
53686 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
53687
53688         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
53689         1 to avoid redefinition warning.
53690         (__USE_GNU): Don't define.
53691         (init_signaling_nan): Protoize.
53692
53693         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53694
53695 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53696
53697         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
53698         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
53699         (__cpymn): Likewise.
53700         (norm): Remove commented code.
53701         (denorm): Likewise.
53702         (__mp_dbl): Likewise.
53703         (__inv): Likewise.
53704         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
53705         (__cpymn): Likewise.
53706         (norm): Remove commented code.
53707         (denorm): Likewise.
53708         (__mp_dbl): Likewise.
53709         (__inv): Likewise.
53710
53711         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
53712         mp_no value for 1.0 and 2.0.
53713         (norm): Use RADIXI instead of radixi.d.
53714         (denorm): Likewise.
53715         (__mul): Use 0.0 instead of zero.d.
53716         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
53717         mp_no value for 1.0 and 2.0.
53718         (norm): Use RADIXI instead of radixi.d.
53719         (denorm): Likewise.
53720         (__mul): Use 0.0 instead of zero.d.
53721
53722 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
53723
53724         [BZ #14994]
53725         * math/s_casinh.c (__casinh): Reduce finite argument to first
53726         quadrant then set signs of results at the end.
53727         * math/s_casinhf.c (__casinhf): Likewise.
53728         * math/s_casinhl.c (__casinhl): Likewise.
53729         * math/libm-test.inc (casin_test): Add more tests.
53730         (casinh_test): Likewise.
53731         * sysdeps/i386/fpu/libm-test-ulps: Update.
53732         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53733
53734 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53735
53736         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
53737
53738         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
53739
53740         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
53741         declarations.
53742         (denorm): Likewise.
53743         (__mp_dbl): Likewise.
53744         (__inv): Likewise.
53745
53746         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
53747         and adjust the header comment.
53748
53749         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
53750         variable name from declaration.
53751
53752 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
53753
53754         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
53755         Initialize COMMON_CPUID_INDEX_7 element.
53756         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
53757         (CPUID_RTM): Likewise.
53758         (HAS_RTM): Likewise.
53759         (COMMON_CPUID_INDEX_7): New enum.
53760
53761 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
53762
53763         [BZ #14981]
53764         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
53765         size is zero, record memory as freed.
53766
53767 2013-01-03  Andreas Jaeger  <aj@suse.de>
53768
53769         * po/ia.po: Add new Interlingua translation.
53770
53771 2012-01-03  Allan McRae  <allan@archlinux.org>
53772
53773         * locale/programs/localedef.c: Fix description of '--posix' flag.
53774
53775 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
53776
53777         * NEWS: Update dates in second copyright notice.
53778         * README: Update copyright dates in example.
53779         * manual/libc.texinfo: Update copyright dates.
53780         * scripts/test-installation.pl: Update copyright date in --version
53781         output.
53782
53783         * hurd/ctty-input.c: Fix copyright notice formatting.
53784         * hurd/ctty-output.c: Likewise.
53785         * hurd/dtable.c: Likewise.
53786         * hurd/hurd-raise.c: Likewise.
53787         * hurd/hurdprio.c: Likewise.
53788         * hurd/msgportdemux.c: Likewise.
53789         * misc/sys/file.h: Likewise.
53790         * misc/sys/ioctl.h: Likewise.
53791         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
53792         * sysdeps/mach/hurd/chdir.c: Likewise.
53793         * sysdeps/mach/hurd/fchdir.c: Likewise.
53794         * sysdeps/mach/hurd/rename.c: Likewise.
53795         * sysdeps/mach/hurd/rmdir.c: Likewise.
53796         * sysdeps/mach/hurd/seekdir.c: Likewise.
53797         * sysdeps/mach/hurd/setsid.c: Likewise.
53798         * sysdeps/posix/wait3.c: Likewise.
53799
53800         * All files with FSF copyright notices: Update copyright dates
53801         using scripts/update-copyrights.
53802         * intl/plural.c: Regenerated.
53803         * locale/programs/charmap-kw.h: Likewise.
53804         * locale/programs/locfile-kw.h: Likewise.
53805
53806 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53807
53808         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
53809         four values.
53810
53811         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
53812         calculation loop and add branch prediction.
53813
53814         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
53815         check access beyond bounds of m1np.
53816
53817         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53818         MPTWO.
53819         (__inv): Remove local variable MPTWO to use the global
53820         constant.
53821         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
53822         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53823         variable MPTWO.
53824         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
53825         MP3HALFS static const.
53826
53827 2013-01-01  David S. Miller  <davem@davemloft.net>
53828
53829         * po/ca.po: Update from translation team.
53830
53831 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
53832
53833         * scripts/update-copyrights: New file.
53834         * Makeconfig: Reformat copyright notice.
53835         * ctype/ctype.h: Likewise.
53836         * debug/swprintf_chk.c: Likewise.
53837         * elf/dl-cache.c: Likewise.
53838         * elf/dl-debug.c: Likewise.
53839         * elf/dl-object.c: Likewise.
53840         * grp/initgroups.c: Likewise.
53841         * hurd/Makefile: Likewise.
53842         * hurd/hurd/signal.h: Likewise.
53843         * hurd/hurdfault.c: Likewise.
53844         * hurd/hurdioctl.c: Likewise.
53845         * hurd/hurdlookup.c: Likewise.
53846         * hurd/intr-msg.c: Likewise.
53847         * iconv/gconv_open.c: Likewise.
53848         * libio/swprintf.c: Likewise.
53849         * locale/lc-ctype.c: Likewise.
53850         * locale/nl_langinfo.c: Likewise.
53851         * mach/Machrules: Likewise.
53852         * mach/Makefile: Likewise.
53853         * malloc/obstack.h: Likewise.
53854         * manual/Makefile: Likewise.
53855         * manual/tsort.awk: Likewise.
53856         * misc/bits/stab.def: Likewise.
53857         * nis/nis_print_group_entry.c: Likewise.
53858         * nis/nis_table.c: Likewise.
53859         * nis/nss_compat/compat-pwd.c: Likewise.
53860         * nis/nss_compat/compat-spwd.c: Likewise.
53861         * po/Makefile: Likewise.
53862         * posix/fnmatch.c: Likewise.
53863         * posix/regex.h: Likewise.
53864         * resolv/Makefile: Likewise.
53865         * resolv/nss_dns/dns-network.c: Likewise.
53866         * resolv/res_hconf.c: Likewise.
53867         * scripts/gen-sorted.awk: Likewise.
53868         * soft-fp/soft-fp.h: Likewise.
53869         * stdio-common/printf.h: Likewise.
53870         * stdlib/monetary.h: Likewise.
53871         * stdlib/random.c: Likewise.
53872         * stdlib/random_r.c: Likewise.
53873         * sysdeps/generic/Makefile: Likewise.
53874         * sysdeps/gnu/Makefile: Likewise.
53875         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
53876         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
53877         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
53878         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
53879         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
53880         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
53881         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
53882         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
53883         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
53884         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
53885         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
53886         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
53887         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
53888         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
53889         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
53890         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
53891         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
53892         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
53893         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
53894         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
53895         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
53896         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
53897         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
53898         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
53899         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
53900         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
53901         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
53902         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
53903         * sysdeps/mach/hurd/errnos.awk: Likewise.
53904         * sysdeps/mach/hurd/fork.c: Likewise.
53905         * sysdeps/mach/hurd/getcwd.c: Likewise.
53906         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
53907         * sysdeps/mach/hurd/mmap.c: Likewise.
53908         * sysdeps/mach/hurd/utimes.c: Likewise.
53909         * sysdeps/mach/hurd/xmknod.c: Likewise.
53910         * sysdeps/posix/profil.c: Likewise.
53911         * sysdeps/posix/readdir_r.c: Likewise.
53912         * sysdeps/powerpc/bits/mathdef.h: Likewise.
53913         * sysdeps/powerpc/bits/setjmp.h: Likewise.
53914         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
53915         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53916         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53917         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
53918         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53919         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
53920         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53921         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
53922         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53923         * sysdeps/pthread/lio_listio.c: Likewise.
53924         * sysdeps/sparc/dl-procinfo.h: Likewise.
53925         * sysdeps/unix/i386/sysdep.S: Likewise.
53926         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
53927         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
53928         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
53929         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
53930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
53931         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
53932         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
53933         * sysdeps/unix/sysv/linux/speed.c: Likewise.
53934         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
53935         * sysdeps/wordsize-32/divdi3.c: Likewise.
53936         * time/sys/time.h: Likewise.
53937         * wcsmbs/Makefile: Likewise.
53938
53939 2013-01-01  David S. Miller  <davem@davemloft.net>
53940
53941         * po/fr.po: Update from translation team.
53942
53943         * catgets/gencat.c: Update copyright year.
53944         * csu/version.c: Likewise.
53945         * debug/catchsegv.sh: Likewise.
53946         * debug/pcprofiledump.c: Likewise.
53947         * debug/xtrace.sh: Likewise.
53948         * elf/ldconfig.c: Likewise.
53949         * elf/ldd.bash.in: Likewise.
53950         * elf/pldd.c: Likewise.
53951         * elf/sotruss.ksh: Likewise.
53952         * elf/sprof.c: Likewise.
53953         * iconv/iconv_prog.c: Likewise.
53954         * iconv/iconvconfig.c: Likewise.
53955         * locale/programs/locale.c: Likewise.
53956         * locale/programs/localedef.c: Likewise.
53957         * login/programs/pt_chown.c: Likewise.
53958         * malloc/memusage.sh: Likewise.
53959         * malloc/memusagestat.c: Likewise.
53960         * malloc/mtrace.pl: Likewise.
53961         * nscd/nscd.c: Likewise.
53962         * nss/getent.c: Likewise.
53963         * nss/makedb.c: Likewise.
53964         * posix/getconf.c: Likewise.
53965
53966 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
53967
53968         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
53969         numbers.
53970
53971 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
53972
53973         * math/bits/mathcalls.h (modf): Use __nonnull.
53974
53975 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
53976
53977         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
53978         (split): Use macro CN instead of the bare value.
53979         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
53980         could be used.
53981         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
53982         instead of the bare value.
53983         (power1): Likewise.
53984
53985 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53986
53987         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
53988         __ATAN_TWOM.
53989         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53990
53991         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
53992         their values.
53993         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53994         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
53995         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
53996         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53997
53998 2012-12-28  Andreas Jaeger  <aj@suse.de>
53999
54000         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
54001         values are from Linux 3.7.
54002
54003         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
54004         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
54005
54006 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54007
54008         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
54009         TRUE case.
54010
54011         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
54012         (norm): Likewise.
54013         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
54014         variables with preprocessor constants.
54015         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
54016         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
54017         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
54018
54019 2012-12-27  Bruno Haible  <bruno@clisp.org>
54020
54021         [BZ #14317]
54022         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
54023         only if needed.
54024
54025 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54026
54027         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
54028         and use variable directly.
54029         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
54030
54031         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
54032         MPONE.
54033         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
54034         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
54035         variable MPONE.
54036         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
54037         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
54038         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
54039         include directive.  Remove local variable MPONE.
54040         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
54041         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
54042         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
54043
54044 2012-12-25  David S. Miller  <davem@davemloft.net>
54045
54046         * version.h (RELEASE): Set to "development".
54047         (VERSION): Set to "2.17.90".
54048         * NEWS: Add 2.18 section.
54049
54050 2012-12-21  David S. Miller  <davem@davemloft.net>
54051
54052         * po/hr.po: Update from translation team.
54053
54054 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54055
54056         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
54057
54058 2012-12-19  Steve Ellcey  <sellcey@mips.com>
54059
54060         * NEWS:  Mention new memcpy for MIPS.
54061
54062 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54063
54064         * manual/contrib.texi (Contributors): Spelling correction.
54065
54066 2012-12-15  David S. Miller  <davem@davemloft.net>
54067
54068         * po/ru.po: Update from translation team.
54069
54070 2012-12-13  David S. Miller  <davem@davemloft.net>
54071
54072         * NEWS: Mention IFUNC testsuite enhancements.
54073
54074         * po/pl.po: Update from translation team.
54075         * po/bg.po: Likewise.
54076
54077         * manual/contrib.texi (Contributors): Update entries for Hongjiu
54078         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
54079
54080 2012-12-11  David S. Miller  <davem@davemloft.net>
54081
54082         * po/sv.po: Update from translation team.
54083
54084         * po/vi.po: Update from translation team.
54085
54086         * po/cs.po: Update from translation team.
54087
54088         * po/de.po: Update from translation team.
54089         * po/eo.po: Likewise.
54090         * po/nl.po: Likewise.
54091
54092 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
54093
54094         [BZ #14246]
54095         * manual/argp.texi (Argp Helper Functions): Move node to follow
54096         Argp Parsing State.
54097
54098         [BZ #14872]
54099         * manual/conf.texi (Limits on File System Capacity): Mention if
54100         terminating null is included in the max size.
54101
54102 2012-12-10  Andreas Jaeger  <aj@suse.de>
54103
54104         * po/cs.po: Update from translation team.
54105
54106 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
54107
54108         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
54109         void pointer and cast to uintptr_t.
54110         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
54111         path.
54112         * sysdeps/s390/s390-64/memcpy.S: Likewise.
54113         * sysdeps/s390/s390-64/memset.S: Likewise.
54114
54115 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
54116
54117         [BZ #14833]
54118         * menual/message.texi (Message Translation): Fix typos.
54119         (Helper programs for gettext): Likewise.
54120
54121 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
54122
54123         [BZ #14898]
54124         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
54125         Change to -1.
54126
54127 2012-12-07  David S. Miller  <davem@davemloft.net>
54128
54129         * po/libc.pot: Update.
54130
54131 2012-12-07  Richard Henderson  <rth@redhat.com>
54132
54133         [BZ #10114]
54134         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
54135         normal/normal case to before the switch.
54136         (_FP_DIV): Likewise.
54137
54138 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
54139             Mike Frysinger  <vapier@gentoo.org>
54140
54141         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
54142         check for __NR_fadvise64_64.
54143
54144 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
54145
54146         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
54147         0, not just to plain "0" as a statement.
54148         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
54149         with cw.
54150
54151 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
54152
54153         * NEWS: Use sourceware.org in Bugzilla URL.
54154
54155 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
54156
54157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
54158         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
54159
54160         * stdio-common/tst-put-error.c (do_test): Add newline to the
54161         padded test to ensure flush.
54162
54163 2012-12-05  Jeff Law  <law@redhat.com>
54164
54165         * sunrpc/etc.rpc (fedfs_admin): Add entry.
54166
54167 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
54168
54169         * README: Don't refer to ports add-on as distributed separately.
54170         Mention AArch64 in list of systems supported in the ports add-on.
54171
54172         * LICENSES: Add more non-FSF copyright and license notices.
54173
54174         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
54175         ((unused)).
54176
54177         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
54178
54179         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
54180         10000 as width of padded output.
54181
54182 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
54183
54184         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
54185
54186         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
54187         variable LX with __attribute__ ((unused)).
54188         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
54189         Likewise.
54190         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
54191         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
54192         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
54193         with __attribute__ ((unused)).
54194
54195 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
54196
54197         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
54198
54199 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
54200
54201         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
54202         (CFLAGS-nldbl-acos.c): New variable.
54203         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
54204         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
54205         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
54206         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
54207         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
54208         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
54209         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
54210         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
54211         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
54212         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
54213         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
54214         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
54215         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
54216         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
54217         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
54218         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
54219         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
54220         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
54221         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
54222         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
54223         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
54224         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
54225         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
54226         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
54227         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
54228         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
54229         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
54230         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
54231         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
54232         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
54233         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
54234         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
54235         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
54236         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
54237         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
54238         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
54239         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
54240         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
54241         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
54242         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
54243         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
54244         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
54245         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
54246         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
54247         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
54248         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
54249         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
54250         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
54251         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
54252         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
54253         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
54254         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
54255         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
54256         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
54257         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
54258         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
54259         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
54260         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
54261         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
54262         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
54263         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
54264         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
54265         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
54266         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
54267         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
54268         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
54269         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
54270         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
54271         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
54272         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
54273         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
54274         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
54275         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
54276         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
54277         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
54278         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
54279         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
54280         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
54281         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
54282         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
54283         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
54284         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
54285         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
54286         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
54287         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
54288         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
54289         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
54290         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
54291         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
54292         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
54293         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
54294         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
54295         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
54296         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
54297         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
54298         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
54299         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
54300
54301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
54302         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
54303
54304         [BZ #14914]
54305         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
54306         whole low double instead of just low 47 bits when splitting values
54307         into two parts.
54308
54309 2012-12-03  Allan McRae  <allan@archlinux.org>
54310
54311         * manual/stdio.texi (Predefined Printf Handlers): Remove
54312         @hsep and @vsep usage.
54313
54314 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
54315
54316         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
54317         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
54318
54319 2012-12-03  Jeff Law  <law@redhat.com>
54320
54321         * time/sys/time.h (settimeofday): Do not mark TV argument
54322         as __nonnull.
54323
54324 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
54325
54326         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
54327         when currently writing and seek to current position when not.
54328         * libio/Makefile (tests): Remove bug-fclose1.
54329         * libio/bug-fclose1.c: Delete.
54330
54331 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
54332
54333         * manual/arith.texi (feenableexcept): Fix typo.
54334         (fedisableexcept): Likewise.
54335
54336 2012-11-30  Roland McGrath  <roland@hack.frob.com>
54337
54338         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
54339         second, differently-typed declaration, rather than a cast.
54340
54341 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
54342
54343         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
54344         * include/rpc/svc.h: ... here.
54345
54346 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
54347
54348         [BZ #13013]
54349         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
54350         depending n and resplen2 to catch cases where answer
54351         equals answerp2.
54352
54353 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
54354
54355         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
54356         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
54357
54358 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
54359
54360         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
54361
54362 2012-11-29  Roland McGrath  <roland@hack.frob.com>
54363
54364         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
54365
54366 2012-11-28  Jeff Law  <law@redhat.com>
54367
54368         [BZ #13761]
54369         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
54370         dataset_temporary.  Track alloca usage into alloca_used.
54371         If dataset is large allocate and release it via malloc/free.
54372
54373 2012-06-04  Florian Weimer  <fweimer@redhat.com>
54374
54375         [BZ #14197]
54376         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
54377
54378 2012-11-28  David S. Miller  <davem@davemloft.net>
54379
54380         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54381
54382 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54383
54384         [BZ #14803]
54385         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
54386         of pi/2 rounded to nearest to 64 bits.
54387         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
54388         nearest to 64 bits.
54389         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
54390         bits.
54391
54392 2012-11-28  Jeff Law <law@redhat.com>
54393             Martin Osvald <mosvald@redhat.com>
54394
54395         [BZ #14889]
54396         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
54397         * sunrpc/svc.c: Include time.h.
54398         (__svc_accept_failed): New function.
54399         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
54400         any reason other than EINTR, call __svc_accept_failed.
54401         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
54402         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
54403
54404 2012-11-28  Andreas Schwab  <schwab@suse.de>
54405
54406         * scripts/abilist.awk: Also handle indirect functions in .opd
54407         section.
54408
54409 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54410
54411         [BZ #13881]
54412         * sysdeps/x86/fpu/powl_helper.c: New file.
54413         * sysdeps/x86/fpu/Makefile: Likewise.
54414         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
54415         (p3): New object.
54416         (__ieee754_powl): Use __powl_helper for finite arguments except
54417         integer exponents below 8.
54418         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
54419         (p3): New object.
54420         (__ieee754_powl): Use __powl_helper for finite arguments except
54421         integer exponents below 8.
54422         * math/libm-test.inc (pow_test): Add more tests and enable some
54423         previously disabled tests.
54424         * sysdeps/i386/fpu/libm-test-ulps: Update.
54425         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54426
54427 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54428             Carlos O'Donell  <carlos_odonell@mentor.com>
54429
54430         * nss/makedb.c (is_prime): Assert that input is odd and greater
54431         than 4.  Note that fact in a comment too.
54432         (next_prime): Add 4 to input.
54433
54434 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54435
54436         [BZ #11741]
54437         * libio/Makefile (tests): Add test case tst-fwrite-error.
54438         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
54439         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
54440         * libio/tst-fwrite-error.c: New test case.
54441
54442 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
54443
54444         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
54445         before casting to void *.
54446         * include/libc-internal.h (__pointer_type): New macro.
54447         (__integer_if_pointer_type_sub): Likewise.
54448         (__integer_if_pointer_type): Likewise.
54449         (cast_to_integer): Likewise.
54450         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
54451         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
54452         before casting to atomic64_t.
54453         (atomic_exchange_acq): Likewise.
54454         (__arch_exchange_and_add_body): Likewise.
54455         (__arch_add_body): Likewise.
54456         (atomic_add_negative): Likewise.
54457         (atomic_add_zero): Likewise.
54458
54459 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
54460
54461         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
54462         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
54463         (add_fdes): Likewise.
54464         (linear_search_fdes): Likewise.
54465         (binary_search_unencoded_fdes): Likewise.
54466
54467 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
54468
54469         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
54470
54471 2012-11-24  Adam Conrad  <adconrad@0c3.net>
54472
54473         * configure.in: Autodetect C++ header directories.
54474         * configure: Regenerated.
54475
54476 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
54477
54478         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
54479
54480 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
54481
54482         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54483
54484 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
54485
54486         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
54487         LDBL_MANT_DIG == 106]: Disable some tests.
54488         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54489         Likewise.
54490         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54491         Likewise.
54492
54493         [BZ #14871]
54494         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
54495         input for small inputs.  Return +/- pi/2 for large inputs.
54496         * math/libm-test.inc (atan_test): Add more tests.
54497
54498         * sysdeps/generic/unwind-dw2-fde-glibc.c
54499         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
54500         __attribute__ ((unused)).
54501
54502         [BZ #14645]
54503         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
54504         x * y if x and y are nonzero and z is zero.
54505
54506         [BZ #14811]
54507         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
54508         nonzero exponents with absolute value below 0x1p-117 to +/-
54509         0x1p-117.
54510
54511         [BZ #14869]
54512         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
54513         up arguments below 2**-450, not just those below 2**-500.
54514         * math/libm-test.inc (hypot_test): Add another test.
54515
54516         [BZ #14868]
54517         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
54518         Return a+b for ratio over 2**120, not 2**60.
54519         * math/libm-test.inc (hypot_test): Add another test.
54520
54521         * math/libm-test.inc (clog_test): Use
54522         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
54523         (clog10_test): Likewise.
54524
54525         [BZ #6778]
54526         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
54527
54528 2012-11-22  Andreas Schwab  <schwab@suse.de>
54529
54530         * sysdeps/i386/fpu/libm-test-ulps: Update.
54531
54532 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
54533
54534         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
54535         printf output with newline.
54536
54537 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
54538
54539         [BZ #14865]
54540         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
54541         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
54542         -z nodlopen, -z initfirst and -z execstack support.
54543         * configure: Regenerated.
54544
54545         * elf/elf.h (DF_1_NODIRECT): New macro.
54546         (DF_1_IGNMULDEF): Likewise.
54547         (DF_1_NOKSYMS): Likewise.
54548         (DF_1_NOHDR): Likewise.
54549         (DF_1_EDITED): Likewise.
54550         (DF_1_NORELOC): Likewise.
54551         (DF_1_SYMINTPOSE): Likewise.
54552         (DF_1_GLOBAUDIT): Likewise.
54553         (DF_1_SINGLETON): Likewise.
54554         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
54555         DT_1_SUPPORTED_MASK bits.
54556         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
54557
54558 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
54559
54560         * sysdeps/unix/make-syscalls.sh: Document prefixes.
54561
54562 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
54563
54564         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
54565         macro.
54566
54567         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
54568         (sendmmsg): Move declarations...
54569         * socket/sys/socket.h: ... here.
54570         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
54571         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
54572         include it from...
54573         * socket/recvmmsg.c: ... this new file.
54574         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
54575         (sendmmsg): Rename to __sendmmsg, create weak alias and make
54576         definition of __sendmmsg hidden.
54577         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
54578         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
54579         Move ENOSYS stub into and include it from...
54580         * socket/sendmmsg.c: ... this new file.
54581         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
54582         (sysdep_routines): Move recvmmsg and sendmmsg...
54583         * socket/Makefile (routines): ... here.
54584         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
54585         (GLIBC_PRIVATE): Add __sendmmsg.
54586         * include/sys/socket.h (__sendmmsg): Add declarations.
54587         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
54588         sendmmsg.
54589
54590 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
54591
54592         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
54593         variable I1 with __attribute__ ((unused)).
54594         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
54595
54596 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54597
54598         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
54599         DUMMY variables with __attribute__ ((unused)).
54600
54601         * bits/byteswap.h: Include <bits/types.h>.
54602         (__bswap_64): Use __uint64_t instead of unsigned long long int.
54603
54604 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54605
54606         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
54607         string_t.  Do not manually set errno.
54608         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
54609         length with __strnlen.  Make sure to both set errno and return it on
54610         failure.
54611
54612 2012-11-19  David S. Miller  <davem@davemloft.net>
54613
54614         With help from Joseph Myers.
54615         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
54616         very large arguments properly.
54617         * math/libm-test.inc (atan_test): New tests.
54618         (atan2_test): New tests.
54619         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54620         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54621
54622 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54623
54624         [BZ #14856]
54625         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
54626         Define to 3.
54627
54628         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
54629         [POSIX] (EADDRNOTAVAIL): Likewise.
54630         [POSIX] (EAFNOSUPPORT): Likewise.
54631         [POSIX] (EALREADY): Likewise.
54632         [POSIX] (ECONNABORTED): Likewise.
54633         [POSIX] (ECONNREFUSED): Likewise.
54634         [POSIX] (ECONNRESET): Likewise.
54635         [POSIX] (EDESTADDRREQ): Likewise.
54636         [POSIX] (EDQUOT): Likewise.
54637         [POSIX] (EHOSTUNREACH): Likewise.
54638         [POSIX] (EIDRM): Likewise.
54639         [POSIX] (EISCONN): Likewise.
54640         [POSIX] (ELOOP): Likewise.
54641         [POSIX] (EMULTIHOP): Likewise.
54642         [POSIX] (ENETDOWN): Likewise.
54643         [POSIX] (ENETUNREACH): Likewise.
54644         [POSIX] (ENOBUFS): Likewise.
54645         [POSIX] (ENODATA): Likewise.
54646         [POSIX] (ENOLINK): Likewise.
54647         [POSIX] (ENOMSG): Likewise.
54648         [POSIX] (ENOPROTOOPT): Likewise.
54649         [POSIX] (ENOSR): Likewise.
54650         [POSIX] (ENOSTR): Likewise.
54651         [POSIX] (ENOTCONN): Likewise.
54652         [POSIX] (ENOTSOCK): Likewise.
54653         [POSIX] (EOPNOTSUPP): Likewise.
54654         [POSIX] (EOVERFLOW): Likewise.
54655         [POSIX] (EPROTO): Likewise.
54656         [POSIX] (EPROTONOSUPPORT): Likewise.
54657         [POSIX] (EPROTOTYPE): Likewise.
54658         [POSIX] (ESTALE): Likewise.
54659         [POSIX] (ETIME): Likewise.
54660         [POSIX] (ETXTBSY): Likewise.
54661         [POSIX] (EWOULDBLOCK): Likewise.
54662         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
54663         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
54664         [POSIX] (SEEK_CUR): Likewise.
54665         [POSIX] (SEEK_END): Likewise.
54666         [POSIX || UNIX98] (mode_t): Do not require.
54667         [POSIX] (off_t): Likewise.
54668         [POSIX] (pid_t): Likewise.
54669         [POSIX] (sys/stat.h): Do not allow header.
54670         [POSIX] (unistd.h): Likewise.
54671         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
54672         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
54673         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
54674         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
54675         require.
54676         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
54677         sigevent): Specify elements.
54678         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
54679         entry.
54680         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
54681         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
54682
54683         * conform/data/cpio.h-data [POSIX]: Disable whole file.
54684         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
54685         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
54686         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
54687         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
54688         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
54689         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
54690         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
54691         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
54692         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
54693         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
54694         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
54695         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
54696         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
54697         Likewise.
54698         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
54699         Likewise.
54700         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
54701         Likewise.
54702         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
54703         Likewise.
54704         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
54705         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
54706         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
54707         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
54708         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
54709         Specify lower bound on value.
54710         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
54711         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
54712         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
54713         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
54714         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
54715         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
54716         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
54717         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
54718         value.
54719         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
54720         as optional.
54721         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
54722         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
54723         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
54724         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
54725         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
54726         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
54727         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
54728         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
54729         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
54730         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
54731         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
54732         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
54733         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
54734         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
54735         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
54736         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
54737         entry.
54738         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
54739         optional.
54740         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
54741         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
54742         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
54743         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
54744         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
54745         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
54746         Likewise.
54747         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
54748         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
54749         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
54750         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
54751         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
54752         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
54753         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
54754         as optional.
54755         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
54756         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
54757         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
54758         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
54759         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
54760         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
54761         specify as optional.
54762         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
54763         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
54764         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
54765         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
54766         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
54767         [XPG3] (NL_LANGMAX): Likewise.
54768         [POSIX || XPG3] (NL_MSGMAX): Likewise.
54769         [POSIX || XPG3] (NL_NMAX): Likewise.
54770         [POSIX || XPG3] (NL_SETMAX): Likewise.
54771         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
54772         [XPG3] (NZERO): Likewise.
54773         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
54774         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
54775         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
54776         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
54777         (REG_ERANGE): Expect.
54778         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
54779         optional-constant.
54780         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
54781         Use (void) in prototype.
54782         [POSIX] (*_t): Allow.
54783         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
54784         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
54785         (WRDE_BADVAL): Expect.
54786
54787         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
54788         expect.
54789         [XPG3 || XPG4] (O_RSYNC): Likewise.
54790         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
54791         Likewise.
54792         [XPG3 || XPG4] (pthread_sigmask): Likewise.
54793         [XPG3 || XPG4] (sigqueue): Likewise.
54794         [XPG3 || XPG4] (sigtimedwait): Likewise.
54795         [XPG3 || XPG4] (sigwaitinfo): Likewise.
54796         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
54797         [XPG3 || XPG4] (vsnprintf): Likewise.
54798         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
54799         Likewise.
54800         [XPG3 || XPG4] (blksize_t): Likewise.
54801         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
54802         Likewise.
54803         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
54804         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
54805         [XPG3 || XPG4] (struct itimerspec): Likewise.
54806         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
54807         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
54808         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
54809         [XPG3 || XPG4] (clockid_t): Likewise.
54810         [XPG3 || XPG4] (timer_t): Likewise.
54811         [XPG3 || XPG4] (clock_getres): Likewise.
54812         [XPG3 || XPG4] (clock_gettime): Likewise.
54813         [XPG3 || XPG4] (clock_settime): Likewise.
54814         [XPG3 || XPG4] (nanosleep): Likewise.
54815         [XPG3 || XPG4] (timer_create): Likewise.
54816         [XPG3 || XPG4] (timer_delete): Likewise.
54817         [XPG3 || XPG4] (timer_gettime): Likewise.
54818         [XPG3 || XPG4] (timer_getoverrun): Likewise.
54819         [XPG3 || XPG4] (timer_settime): Likewise.
54820         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
54821         [XPG3 || XPG4] (getlogin_r): Likewise.
54822         [XPG3 || XPG4] (pread): Likewise.
54823         [XPG3 || XPG4] (pthread_atfork): Likewise.
54824         [XPG3 || XPG4] (pwrite): Likewise.
54825
54826         [BZ #14835]
54827         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
54828         <bits/siginfo.h>.
54829
54830 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54831
54832         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
54833         finalizing MALLSTREAM.
54834
54835         * sysdeps/mach/hurd/syncfs.c: New file.
54836
54837 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54838
54839         [BZ #14719]
54840         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
54841         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
54842         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
54843         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
54844         (_nss_dns_gethostbyname4_r): Likewise.
54845         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
54846         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
54847
54848 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
54849
54850         [BZ #13763]
54851         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
54852
54853 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
54854
54855         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
54856         * elf/cache.c (print_entry): Print ",AArch64" for
54857         FLAG_AARCH64_LIB64
54858
54859         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
54860         * elf/cache.c (print_entry): Print ",hard-float" for
54861         FLAG_ARM_LIBHF.
54862
54863 2012-11-18  David S. Miller  <davem@davemloft.net>
54864
54865         With help from Joseph Myers.
54866         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
54867         cutoff to 2**-13.
54868         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
54869         cutoff to 2**-25.
54870         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
54871         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
54872         small.
54873         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
54874         * math/libm-test.inc (y0_test): New tests.
54875         (y1_test): New tests.
54876         * sysdeps/i386/fpu/libm-test-ulps: Update.
54877         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54878         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54879
54880 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
54881
54882         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
54883         64-bit targets.
54884         * configure: Regenerated.
54885
54886 2012-11-17  David S. Miller  <davem@davemloft.net>
54887
54888         [BZ #14811]
54889         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
54890         nonzero exponents with absolute value below 0x1p-128 to +/-
54891         0x1p-128.
54892
54893 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
54894
54895         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
54896
54897         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
54898
54899         * posix/getconf-speclist.c: New file.
54900         * posix/posix-envs.def: Likewise.
54901         * posix/confstr.c (START_ENV_GROUP): New macro.
54902         (END_ENV_GROUP): Likewise.
54903         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54904         (KNOWN_PRESENT_ENV_STRING): Likewise.
54905         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54906         (UNKNOWN_ENVIRONMENT): Likewise.
54907         (confstr): Include posix-envs.def instead of handling
54908         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
54909         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
54910         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
54911         (END_ENV_GROUP): Likewise.
54912         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54913         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54914         (UNKNOWN_ENVIRONMENT): Likewise.
54915         (__sysconf): Include posix-envs.def instead of handling associated
54916         cases directly here.
54917         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
54918         preprocessing getconf-speclist.c rather than running getconf or
54919         generating empty file.
54920
54921 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
54922
54923         * scripts/check-local-headers.sh: Ignore 'mach' headers.
54924
54925 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
54926
54927         [BZ #14672]
54928         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
54929
54930 2012-11-16  David S. Miller  <davem@davemloft.net>
54931
54932         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
54933         smaller than LDBL_EPSILON/2.0L, just return xm1.
54934
54935 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
54936
54937         * elf/tst-array1.c (init): Set constructor priority to 1000.
54938         (fini): Set destructor priority to 1000.
54939         * elf/tst-array2dep.c: Likewise.
54940
54941 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54942
54943         [BZ #11741]
54944         * libio/fileops.c (_IO_new_file_write): Correctly return error.
54945         (_IO_new_file_xsputn): Also return EOF if none of the input
54946         data was written when overflow failed.
54947         * libio/iopadn.c (_IO_padn): Likewise.
54948         * libio/iowpadn.c (_IO_wpadn): Likewise.
54949         * stdio-common/tst-put-error.c: Add copyright notice.
54950         (do_test): Add case for printing padded string.
54951         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
54952         _IO_padn returned error.
54953         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
54954         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
54955         return EOF.
54956
54957 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54958
54959         * libio/libioP.h: Add comment note that the references to C++
54960         bits are now obsolete.
54961
54962 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54963
54964         * math/libm-test.inc (check_complex): Use asprintf.
54965
54966 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
54967
54968         * debug/pcprofiledump.c (print_version): Update copyright year.
54969         * malloc/memusagestat.c (print_version): Likewise.
54970
54971 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
54972
54973         [BZ #14831]
54974         * elf/Makefile (tests): Add tst-audit8.
54975         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
54976         ($(objpfx)tst-audit8.out): New target.
54977         (tst-audit8-ENV): New variable.
54978         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
54979         audit if l_reloc_result is NULL.
54980         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
54981         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
54982         * elf/tst-audit8.c: New file.
54983
54984 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54985
54986         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
54987         * misc/Makefile (CFLAGS-select.c): Define.
54988         * posix/Makefile (CFLAGS-pause.c): Define.
54989
54990 2012-11-13  David S. Miller  <davem@davemloft.net>
54991
54992         * crypt/Makefile: Move test targets after toplevel Rules
54993         inclusion.  Grab any necessary sysdep routines when linking.
54994         * crypt/md5.c (md5_process_block): Remove define, we will always
54995         name it __md5_process_block.
54996         (md5_finish_ctx): Update md5_process_block call.
54997         (md5_stream): Likewise.
54998         (md5_process_bytes): Likewise.
54999         (md5_process_block): Rename to __md5_process_block and move to ...
55000         * crypt/md5-block.c: ... here.
55001         * crypt/sha256.c (sha256_process_block): Move to ...
55002         * crypt/sha256-block.c: ... here.
55003         * crypt/sha512.c (sha512_process_block): Move to ...
55004         * crypt/sha512-block.c: ... here.
55005         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
55006         path.
55007         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
55008         * sysdeps/sparc/sparc64/multiarch/Makefile
55009         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
55010         crypt subdir.
55011         (localedef-aux): Add md5 crypto assembler when in locale subdir.
55012         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
55013         multiarch changes.
55014         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
55015         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
55016         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
55017         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
55018         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
55019         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
55020         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
55021         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
55022         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
55023         file.
55024         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
55025         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
55026         file.
55027         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
55028
55029 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
55030
55031         * timezone/tzselect.ksh: Update from tzcode git revision
55032         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
55033         * timezone/zdump.c: Likewise.
55034         * timezone/zic.c: Likewise.
55035         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
55036         in TZVERSION setting, not $(PKGVERSION).
55037         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
55038         REPORT_BUGS_TO settings.
55039
55040         [BZ #14838]
55041         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
55042         macro.
55043
55044 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55045
55046         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
55047         detection to immediately after _FP_ROUND().
55048         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
55049         bits are 0.
55050
55051 2012-11-11  David S. Miller  <davem@davemloft.net>
55052
55053         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
55054         inttypes.h
55055         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
55056         __close rather than their public counterparts.
55057
55058 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
55059
55060         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
55061         file.
55062         [UNIX98] (sem_timedwait): Do not expect.
55063         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
55064         [XPG4 || UNIX98] (sockatmark): Do not expect.
55065         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
55066         (clock_getcpuclockid): Do not expect.
55067         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
55068         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
55069         Do not expect.
55070         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
55071         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
55072         [UNIX98] (vwscanf): Likewise.
55073         [UNIX98] (vswscanf): Likewise.
55074
55075 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
55076
55077         * timezone/version.h: Remove file.
55078         * timezone/README: Do not refer to version.h.
55079         * timezone/Makefile ($(objpfx)zic.o): New dependency on
55080         $(objpfx)version.h.
55081         ($(objpfx)zdump.o): Likewise.
55082         ($(objpfx)version.h): New target.
55083
55084         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
55085         2012i.
55086         * timezone/README: Don't mention modification to tzselect.ksh.
55087         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
55088         work on unmodified tzselect.ksh.  Substitute version numbers in
55089         tzselect.ksh.
55090
55091         * Makefile (format-me): Remove.
55092         (INSTALL): Adjust indentation.  Use commands directly instead of
55093         using $(format-me).
55094
55095         * aclocal.m4 (ACX_PKGVERSION): New macro.
55096         (ACX_BUGURL): Likewise.
55097         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
55098         (PKGVERSION): New AC_DEFINE_UNQUOTED.
55099         (REPORT_BUGS_TO): Likewise.
55100         * configure: Regenerated.
55101         * config.h.in (PKGVERSION): New macro.
55102         (REPORT_BUGS_TO): Likewise.
55103         * config.make.in (PKGVERSION): New variable.
55104         (PKGVERSION_TEXI): Likewise.
55105         (REPORT_BUGS_TO): Likewise.
55106         (REPORT_BUGS_TEXI): Likewise.
55107         * Makefile (format-me): Use -I$(common-objpfx)manual.
55108         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
55109         ($(common-objpfx)manual/%): New target.
55110         (manual/%): Remove target.
55111         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
55112         (print_version): Use PKGVERSION.
55113         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
55114         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
55115         and REPORT_BUGS_TO.
55116         ($(objpfx)xtrace): Likewise.
55117         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
55118         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
55119         (print_version): Use PKGVERSION.
55120         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
55121         (do_version): Use PKGVERSION.
55122         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
55123         REPORT_BUGS_TO.
55124         (common-ldd-rewrite): Likewise.
55125         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
55126         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
55127         (print_version): Use PKGVERSION.
55128         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
55129         * elf/pldd.c (argp_program_bug_address): Remove variable.
55130         (more_help): New function.
55131         (argp): Use more_help.
55132         (print_version): Use PKGVERSION.
55133         * elf/sln.c (main): Use PKGVERSION.
55134         (usage): Use REPORT_BUGS_TO.
55135         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
55136         (top level): Use PKGVERSION.
55137         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
55138         (print_version): Use PKGVERSION.
55139         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
55140         (print_version): Use PKGVERSION.
55141         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
55142         (print_version): Use PKGVERSION.
55143         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
55144         (print_version): Use PKGVERSION.
55145         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
55146         (print_version): Use PKGVERSION.
55147         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
55148         (print_version): Use PKGVERSION.
55149         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
55150         and BUGURL.
55151         ($(objpfx)memusage): Likewise.
55152         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
55153         (do_version): Use PKGVERSION.
55154         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
55155         (print_version): Use PKGVERSION.
55156         * malloc/mtrace.pl ($PACKAGE): Remove variable.
55157         ($PKGVERSION): New variable.
55158         ($REPORT_BUGS_TO): Likewise.
55159         (usage): Use $REPORT_BUGS_TO.
55160         (top level): Use $PKGVERSION.
55161         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
55162         ($(objpfx)pkgvers.texi): New rule.
55163         ($(objpfx)stamp-pkgvers): Likewise.
55164         * manual/install.texi: Include pkgvers.texi.
55165         (--with-pkgversion): Document new configure option.
55166         (--with-bugurl): Likewise.
55167         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
55168         than necessarily for this particular distribution.  Use
55169         REPORT_BUGS_TO for where to report bugs.
55170         * INSTALL: Regenerated.
55171         * manual/libc.texinfo: Include pkgvers.texi.
55172         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
55173         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
55174         (print_version): Use PKGVERSION.
55175         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
55176         (print_version): Use PKGVERSION.
55177         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
55178         (print_version): Use PKGVERSION.
55179         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
55180         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
55181         macro.
55182         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
55183         (print_version): Use PKGVERSION.
55184         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
55185         (print_version): Use PKGVERSION.
55186         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
55187         and PKGVERSION.
55188
55189         * timezone/checktab.awk: Update from tzcode 2012i.
55190         * timezone/ialloc.c: Likewise.
55191         * timezone/private.h: Likewise.
55192         * timezone/scheck.c: Likewise.
55193         * timezone/tzfile.h: Likewise.
55194         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
55195         (TZVERSION): Hardcode tzcode version number.
55196         * timezone/zdump.c: Update from tzcode 2012i.
55197         * timezone/zic.c: Likewise.
55198         * timezone/version.h: New file.
55199         * timezone/README: Describe version.h.  Update upstream location.
55200
55201         [BZ #14824]
55202         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
55203         (mktemp): Enable declaration.
55204         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
55205         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
55206         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
55207         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
55208         Likewise.
55209         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
55210         Likewise.
55211         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
55212         Likewise.
55213         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
55214         Likewise.
55215         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
55216         Likewise.
55217         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
55218         Likewise.
55219
55220         [BZ #14821]
55221         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
55222         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
55223         for copies of such integer values.
55224         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
55225         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
55226
55227 2012-11-09  Andreas Jaeger  <aj@suse.de>
55228
55229         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
55230         definitions and declarations that are provided by
55231         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
55232
55233 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55234
55235         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
55236         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
55237         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
55238         definition.
55239
55240 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55241
55242         * elf/elf.h: Update comment before AArch64 relocations.
55243
55244 2012-11-07  David S. Miller  <davem@davemloft.net>
55245
55246         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
55247         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
55248         (__start_context): Declare.
55249         (__makecontext_ret): Delete.
55250         (__makecontext): Hook up __start_context instead of
55251         __makecontext_ret.
55252         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
55253         (sysdep_routines): Add __start_context when in stdlib.
55254
55255 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55256
55257         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
55258         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
55259         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
55260         hardcoded "nm".
55261         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
55262         (READELF): New variable.  Use it instead of hardcoded "readelf".
55263
55264 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
55265
55266         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
55267         * sysdeps/x86/Makefile: Here.
55268         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
55269         * sysdeps/x86/tst-xmmymm.sh: This.
55270
55271 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55272
55273         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
55274         expectations.
55275         [UNIX98] (pthread_barrier_t): Do not expect.
55276         [UNIX98] (pthread_barrierattr_t): Likewise.
55277         [UNIX98] (pthread_spinlock_t): Likewise.
55278         [UNIX98] (pthread_barrier_destroy): Likewise.
55279         [UNIX98] (pthread_barrier_init): Likewise.
55280         [UNIX98] (pthread_barrier_wait): Likewise.
55281         [UNIX98] (pthread_barrierattr_destroy): Likewise.
55282         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
55283         [UNIX98] (pthread_barrierattr_init): Likewise.
55284         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
55285         [UNIX98] (pthread_getcpuclockid): Likewise.
55286         [UNIX98] (pthread_mutex_timedlock): Likewise.
55287         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
55288         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
55289         [UNIX98] (pthread_sigmask): Likewise.
55290         [UNIX98] (pthread_spin_destroy): Likewise.
55291         [UNIX98] (pthread_spin_init): Likewise.
55292         [UNIX98] (pthread_spin_lock): Likewise.
55293         [UNIX98] (pthread_spin_trylock): Likewise.
55294         [UNIX98] (pthread_spin_unlock): Likewise.
55295         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
55296         Do not expect.
55297         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
55298         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
55299         [XPG3 || XPG4] (pthread_cond_t): Likewise.
55300         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
55301         [XPG3 || XPG4] (pthread_key_t): Likewise.
55302         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
55303         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
55304         [XPG3 || XPG4] (pthread_once_t): Likewise.
55305         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
55306         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
55307         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
55308         [XPG3 || XPG4] (pthread_t): Likewise.
55309
55310         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
55311         not expect.
55312         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
55313
55314         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
55315         Change function return type to int.
55316
55317         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
55318         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
55319         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
55320         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
55321         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
55322         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
55323         [!POSIX] (posix_madvise): Likewise.
55324         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
55325         && !UNIX98].
55326         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
55327         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
55328         (mode_t): Likewise.
55329         (posix_mem_offset): Likewise.
55330         (posix_typed_mem_get_info): Likewise.
55331         (posix_typed_mem_open): Likewise.
55332
55333         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
55334         Change condition to [XOPEN2K8].
55335
55336         * conform/conformtest.pl: Preprocess allow-header data with -x c
55337         instead of from stdin.
55338         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
55339         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
55340         [C99-based standards] (cerfc): Likewise.
55341         [C99-based standards] (cexp2): Likewise.
55342         [C99-based standards] (cexpm1): Likewise.
55343         [C99-based standards] (clog10): Likewise.
55344         [C99-based standards] (clog1p): Likewise.
55345         [C99-based standards] (clog2): Likewise.
55346         [C99-based standards] (clgamma): Likewise.
55347         [C99-based standards] (ctgamma): Likewise.
55348         [C99-based standards] (cerff): Likewise.
55349         [C99-based standards] (cerfcf): Likewise.
55350         [C99-based standards] (cexp2f): Likewise.
55351         [C99-based standards] (cexpm1f): Likewise.
55352         [C99-based standards] (clog10f): Likewise.
55353         [C99-based standards] (clog1pf): Likewise.
55354         [C99-based standards] (clog2f): Likewise.
55355         [C99-based standards] (clgammaf): Likewise.
55356         [C99-based standards] (ctgammaf): Likewise.
55357         [C99-based standards] (cerfl): Likewise.
55358         [C99-based standards] (cerfcl): Likewise.
55359         [C99-based standards] (cexp2l): Likewise.
55360         [C99-based standards] (cexpm1l): Likewise.
55361         [C99-based standards] (clog10l): Likewise.
55362         [C99-based standards] (clog1pl): Likewise.
55363         [C99-based standards] (clog2l): Likewise.
55364         [C99-based standards] (clgammal): Likewise.
55365         [C99-based standards] (ctgammal): Likewise.
55366         * conform/data/inttypes.h-data [C99-based standards]: Include
55367         stdint.h-data.  Remove all expectations for stdint.h contents.
55368         [C99-based standards] (PRI*): Do not allow.
55369         [C99-based standards] (SCN*): Likewise.
55370         [C99-based standards] (*_t): Likewise.
55371         [C99-based-standards] (PRId8): Expect macro.
55372         [C99-based-standards] (PRIi8): Likewise.
55373         [C99-based-standards] (PRIo8): Likewise.
55374         [C99-based-standards] (PRIu8): Likewise.
55375         [C99-based-standards] (PRIx8): Likewise.
55376         [C99-based-standards] (PRIX8): Likewise.
55377         [C99-based-standards] (SCNd8): Likewise.
55378         [C99-based-standards] (SCNi8): Likewise.
55379         [C99-based-standards] (SCNo8): Likewise.
55380         [C99-based-standards] (SCNu8): Likewise.
55381         [C99-based-standards] (SCNx8): Likewise.
55382         [C99-based-standards] (PRIdLEAST8): Likewise.
55383         [C99-based-standards] (PRIiLEAST8): Likewise.
55384         [C99-based-standards] (PRIoLEAST8): Likewise.
55385         [C99-based-standards] (PRIuLEAST8): Likewise.
55386         [C99-based-standards] (PRIxLEAST8): Likewise.
55387         [C99-based-standards] (PRIXLEAST8): Likewise.
55388         [C99-based-standards] (SCNdLEAST8): Likewise.
55389         [C99-based-standards] (SCNiLEAST8): Likewise.
55390         [C99-based-standards] (SCNoLEAST8): Likewise.
55391         [C99-based-standards] (SCNuLEAST8): Likewise.
55392         [C99-based-standards] (SCNxLEAST8): Likewise.
55393         [C99-based-standards] (PRIdFAST8): Likewise.
55394         [C99-based-standards] (PRIiFAST8): Likewise.
55395         [C99-based-standards] (PRIoFAST8): Likewise.
55396         [C99-based-standards] (PRIuFAST8): Likewise.
55397         [C99-based-standards] (PRIxFAST8): Likewise.
55398         [C99-based-standards] (PRIXFAST8): Likewise.
55399         [C99-based-standards] (SCNdFAST8): Likewise.
55400         [C99-based-standards] (SCNiFAST8): Likewise.
55401         [C99-based-standards] (SCNoFAST8): Likewise.
55402         [C99-based-standards] (SCNuFAST8): Likewise.
55403         [C99-based-standards] (SCNxFAST8): Likewise.
55404         [C99-based-standards] (PRId16): Likewise.
55405         [C99-based-standards] (PRIi16): Likewise.
55406         [C99-based-standards] (PRIo16): Likewise.
55407         [C99-based-standards] (PRIu16): Likewise.
55408         [C99-based-standards] (PRIx16): Likewise.
55409         [C99-based-standards] (PRIX16): Likewise.
55410         [C99-based-standards] (SCNd16): Likewise.
55411         [C99-based-standards] (SCNi16): Likewise.
55412         [C99-based-standards] (SCNo16): Likewise.
55413         [C99-based-standards] (SCNu16): Likewise.
55414         [C99-based-standards] (SCNx16): Likewise.
55415         [C99-based-standards] (PRIdLEAST16): Likewise.
55416         [C99-based-standards] (PRIiLEAST16): Likewise.
55417         [C99-based-standards] (PRIoLEAST16): Likewise.
55418         [C99-based-standards] (PRIuLEAST16): Likewise.
55419         [C99-based-standards] (PRIxLEAST16): Likewise.
55420         [C99-based-standards] (PRIXLEAST16): Likewise.
55421         [C99-based-standards] (SCNdLEAST16): Likewise.
55422         [C99-based-standards] (SCNiLEAST16): Likewise.
55423         [C99-based-standards] (SCNoLEAST16): Likewise.
55424         [C99-based-standards] (SCNuLEAST16): Likewise.
55425         [C99-based-standards] (SCNxLEAST16): Likewise.
55426         [C99-based-standards] (PRIdFAST16): Likewise.
55427         [C99-based-standards] (PRIiFAST16): Likewise.
55428         [C99-based-standards] (PRIoFAST16): Likewise.
55429         [C99-based-standards] (PRIuFAST16): Likewise.
55430         [C99-based-standards] (PRIxFAST16): Likewise.
55431         [C99-based-standards] (PRIXFAST16): Likewise.
55432         [C99-based-standards] (SCNdFAST16): Likewise.
55433         [C99-based-standards] (SCNiFAST16): Likewise.
55434         [C99-based-standards] (SCNoFAST16): Likewise.
55435         [C99-based-standards] (SCNuFAST16): Likewise.
55436         [C99-based-standards] (SCNxFAST16): Likewise.
55437         [C99-based-standards] (PRId32): Likewise.
55438         [C99-based-standards] (PRIi32): Likewise.
55439         [C99-based-standards] (PRIo32): Likewise.
55440         [C99-based-standards] (PRIu32): Likewise.
55441         [C99-based-standards] (PRIx32): Likewise.
55442         [C99-based-standards] (PRIX32): Likewise.
55443         [C99-based-standards] (SCNd32): Likewise.
55444         [C99-based-standards] (SCNi32): Likewise.
55445         [C99-based-standards] (SCNo32): Likewise.
55446         [C99-based-standards] (SCNu32): Likewise.
55447         [C99-based-standards] (SCNx32): Likewise.
55448         [C99-based-standards] (PRIdLEAST32): Likewise.
55449         [C99-based-standards] (PRIiLEAST32): Likewise.
55450         [C99-based-standards] (PRIoLEAST32): Likewise.
55451         [C99-based-standards] (PRIuLEAST32): Likewise.
55452         [C99-based-standards] (PRIxLEAST32): Likewise.
55453         [C99-based-standards] (PRIXLEAST32): Likewise.
55454         [C99-based-standards] (SCNdLEAST32): Likewise.
55455         [C99-based-standards] (SCNiLEAST32): Likewise.
55456         [C99-based-standards] (SCNoLEAST32): Likewise.
55457         [C99-based-standards] (SCNuLEAST32): Likewise.
55458         [C99-based-standards] (SCNxLEAST32): Likewise.
55459         [C99-based-standards] (PRIdFAST32): Likewise.
55460         [C99-based-standards] (PRIiFAST32): Likewise.
55461         [C99-based-standards] (PRIoFAST32): Likewise.
55462         [C99-based-standards] (PRIuFAST32): Likewise.
55463         [C99-based-standards] (PRIxFAST32): Likewise.
55464         [C99-based-standards] (PRIXFAST32): Likewise.
55465         [C99-based-standards] (SCNdFAST32): Likewise.
55466         [C99-based-standards] (SCNiFAST32): Likewise.
55467         [C99-based-standards] (SCNoFAST32): Likewise.
55468         [C99-based-standards] (SCNuFAST32): Likewise.
55469         [C99-based-standards] (SCNxFAST32): Likewise.
55470         [C99-based-standards] (PRId64): Likewise.
55471         [C99-based-standards] (PRIi64): Likewise.
55472         [C99-based-standards] (PRIo64): Likewise.
55473         [C99-based-standards] (PRIu64): Likewise.
55474         [C99-based-standards] (PRIx64): Likewise.
55475         [C99-based-standards] (PRIX64): Likewise.
55476         [C99-based-standards] (SCNd64): Likewise.
55477         [C99-based-standards] (SCNi64): Likewise.
55478         [C99-based-standards] (SCNo64): Likewise.
55479         [C99-based-standards] (SCNu64): Likewise.
55480         [C99-based-standards] (SCNx64): Likewise.
55481         [C99-based-standards] (PRIdLEAST64): Likewise.
55482         [C99-based-standards] (PRIiLEAST64): Likewise.
55483         [C99-based-standards] (PRIoLEAST64): Likewise.
55484         [C99-based-standards] (PRIuLEAST64): Likewise.
55485         [C99-based-standards] (PRIxLEAST64): Likewise.
55486         [C99-based-standards] (PRIXLEAST64): Likewise.
55487         [C99-based-standards] (SCNdLEAST64): Likewise.
55488         [C99-based-standards] (SCNiLEAST64): Likewise.
55489         [C99-based-standards] (SCNoLEAST64): Likewise.
55490         [C99-based-standards] (SCNuLEAST64): Likewise.
55491         [C99-based-standards] (SCNxLEAST64): Likewise.
55492         [C99-based-standards] (PRIdFAST64): Likewise.
55493         [C99-based-standards] (PRIiFAST64): Likewise.
55494         [C99-based-standards] (PRIoFAST64): Likewise.
55495         [C99-based-standards] (PRIuFAST64): Likewise.
55496         [C99-based-standards] (PRIxFAST64): Likewise.
55497         [C99-based-standards] (PRIXFAST64): Likewise.
55498         [C99-based-standards] (SCNdFAST64): Likewise.
55499         [C99-based-standards] (SCNiFAST64): Likewise.
55500         [C99-based-standards] (SCNoFAST64): Likewise.
55501         [C99-based-standards] (SCNuFAST64): Likewise.
55502         [C99-based-standards] (SCNxFAST64): Likewise.
55503         [C99-based-standards] (PRIdMAX): Likewise.
55504         [C99-based-standards] (PRIiMAX): Likewise.
55505         [C99-based-standards] (PRIoMAX): Likewise.
55506         [C99-based-standards] (PRIuMAX): Likewise.
55507         [C99-based-standards] (PRIxMAX): Likewise.
55508         [C99-based-standards] (PRIXMAX): Likewise.
55509         [C99-based-standards] (SCNdMAX): Likewise.
55510         [C99-based-standards] (SCNiMAX): Likewise.
55511         [C99-based-standards] (SCNoMAX): Likewise.
55512         [C99-based-standards] (SCNuMAX): Likewise.
55513         [C99-based-standards] (SCNxMAX): Likewise.
55514         [C99-based-standards] (PRIdPTR): Likewise.
55515         [C99-based-standards] (PRIiPTR): Likewise.
55516         [C99-based-standards] (PRIoPTR): Likewise.
55517         [C99-based-standards] (PRIuPTR): Likewise.
55518         [C99-based-standards] (PRIxPTR): Likewise.
55519         [C99-based-standards] (PRIXPTR): Likewise.
55520         [C99-based-standards] (SCNdPTR): Likewise.
55521         [C99-based-standards] (SCNiPTR): Likewise.
55522         [C99-based-standards] (SCNoPTR): Likewise.
55523         [C99-based-standards] (SCNuPTR): Likewise.
55524         [C99-based-standards] (SCNxPTR): Likewise.
55525         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
55526         allow.
55527         * conform/data/stdint.h-data: Update comments to clarify
55528         requirements.
55529         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
55530         type.
55531         [C99-based standards] (INT8_MAX): Likewise.
55532         [C99-based standards] (INT16_MIN): Likewise.
55533         [C99-based standards] (INT16_MAX): Likewise.
55534         [C99-based standards] (INT32_MIN): Likewise.
55535         [C99-based standards] (INT32_MAX): Likewise.
55536         [C99-based standards] (INT64_MIN): Likewise.
55537         [C99-based standards] (INT64_MAX): Likewise.
55538         [C99-based standards] (UINT8_MAX): Likewise.
55539         [C99-based standards] (UINT16_MAX): Likewise.
55540         [C99-based standards] (UINT32_MAX): Likewise.
55541         [C99-based standards] (UINT64_MAX): Likewise.
55542         [C99-based standards] (INT_LEAST8_MIN): Likewise.
55543         [C99-based standards] (INT_LEAST8_MAX): Likewise.
55544         [C99-based standards] (INT_LEAST16_MIN): Likewise.
55545         [C99-based standards] (INT_LEAST16_MAX): Likewise.
55546         [C99-based standards] (INT_LEAST32_MIN): Likewise.
55547         [C99-based standards] (INT_LEAST32_MAX): Likewise.
55548         [C99-based standards] (INT_LEAST64_MIN): Likewise.
55549         [C99-based standards] (INT_LEAST64_MAX): Likewise.
55550         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
55551         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
55552         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
55553         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
55554         [C99-based standards] (INT_FAST8_MIN): Likewise.
55555         [C99-based standards] (INT_FAST8_MAX): Likewise.
55556         [C99-based standards] (INT_FAST16_MIN): Likewise.
55557         [C99-based standards] (INT_FAST16_MAX): Likewise.
55558         [C99-based standards] (INT_FAST32_MIN): Likewise.
55559         [C99-based standards] (INT_FAST32_MAX): Likewise.
55560         [C99-based standards] (INT_FAST64_MIN): Likewise.
55561         [C99-based standards] (INT_FAST64_MAX): Likewise.
55562         [C99-based standards] (UINT_FAST8_MAX): Likewise.
55563         [C99-based standards] (UINT_FAST16_MAX): Likewise.
55564         [C99-based standards] (UINT_FAST32_MAX): Likewise.
55565         [C99-based standards] (UINT_FAST64_MAX): Likewise.
55566         [C99-based standards] (INTPTR_MIN): Likewise.
55567         [C99-based standards] (INTPTR_MAX): Likewise.
55568         [C99-based standards] (UINTPTR_MAX): Likewise.
55569         [C99-based standards] (INTMAX_MIN): Likewise.
55570         [C99-based standards] (INTMAX_MAX): Likewise.
55571         [C99-based standards] (UINTMAX_MAX): Likewise.
55572         [C99-based standards] (PTRDIFF_MIN): Likewise.
55573         [C99-based standards] (PTRDIFF_MAX): Likewise.
55574         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
55575         [C99-based standards] (SIZE_MAX): Likewise.
55576         [C99-based standards] (WCHAR_MAX): Likewise.
55577         [C99-based standards] (WINT_MAX): Likewise.
55578         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
55579         constraint on value.
55580         [C99-based standards] (WCHAR_MIN): Likewise.
55581         [C99-based standards] (WINT_MIN): Likewise.
55582         [C99-based standards] (*_t): Allow.
55583         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
55584         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
55585         Include math.h-data and complex.h-data.  Remove all expectations
55586         of math.h and complex.h contents.
55587         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
55588         at end of line.
55589         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
55590         (struct tm): Expect tag.
55591         [C99-based-standards] (wcstof): Expect function.
55592         [C99-based-standards] (wcstold): Likewise.
55593         [C99-based-standards] (wcstoll): Likewise.
55594         [C99-based-standards] (wcstoull): Likewise.
55595         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
55596         macro-int-constant.  Specify type.
55597         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
55598         constraint on value.
55599         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55600         Specify type.
55601         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
55602         Specify value.
55603         [ISO C standards]: Do not allow headers.
55604         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
55605         wcs[abcdefghijklmnopqrstuvwxyz]*.
55606         [ISO C standards] (*_t): Do not allow.
55607         * conform/data/wctype.h-data [C99-based standards] (iswblank):
55608         Expect function.
55609         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
55610         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55611         Specify type.
55612         [ISO C standards]: Do not allow headers.
55613         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
55614         is[abcdefghijklmnopqrstuvwxyz]*.
55615         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
55616         to[abcdefghijklmnopqrstuvwxyz]*.
55617         [ISO C standards] (*_t): Do not allow.
55618         * conform/data/stdalign.h-data: New file.
55619         * conform/data/stdbool.h-data: Likewise.
55620         * conform/data/stdnoreturn.h-data: Likewise.
55621
55622 2012-11-07  Roland McGrath  <roland@hack.frob.com>
55623
55624         [BZ #14815]
55625         * manual/filesys.texi (Directory Entries): Typo fix.
55626         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
55627
55628 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55629
55630         * elf/elf.h (EM_AARCH64): New macro.
55631         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
55632         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
55633         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
55634         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
55635         (R_AARCH64_TLSDESC): Likewise.
55636         (NT_ARM_TLS): Likewise.
55637         (NT_ARM_HW_BREAK): Likewise.
55638         (NT_ARM_HW_WATCH): Likewise.
55639
55640 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55641
55642         [BZ #14811]
55643         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
55644         (__ieee754_powl): Saturate nonzero exponents with absolute value
55645         below 0x1p-79 to +/- 0x1p-79.
55646         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
55647         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
55648         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
55649         nonzero exponents with absolute value below 0x1p-32 to +/-
55650         0x1p-32.
55651         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
55652         (__ieee754_powl): Saturate nonzero exponents with absolute value
55653         below 0x1p-79 to +/- 0x1p-79.
55654         * math/libm-test.inc (pow_test): Add more tests.
55655
55656 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55657
55658         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
55659         _dl_s390_cap_flags with kernel. Increase string length.
55660         (_dl_s390_platforms): Add z196 and zEC12.
55661
55662 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55663
55664         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
55665         Change XOPEN21K to XOPEN2K.
55666
55667 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
55668
55669         * string/memmove.c: Use memcpy when possible.
55670
55671 2012-11-06  Andreas Jaeger  <aj@suse.de>
55672
55673         * po/eo.po: Update from translation team.
55674
55675 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
55676
55677         [BZ #14793]
55678         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
55679         exponent and small x and y exponents, scale x or y up.  Increase
55680         by 2 the exponent used in scaling up.
55681         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55682         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55683         * math/libm-test.inc (fma_test): Add more tests.
55684         (fma_test_towardzero): Likewise.
55685         (fma_test_downward): Likewise.
55686         (fma_test_upward): Likewise.
55687
55688 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
55689
55690         [BZ #14805]
55691         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
55692         fenv_t *.
55693
55694         [BZ #14801]
55695         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
55696         namespace for names of struct fields.
55697         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
55698         fenv_t fields.
55699         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
55700         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
55701
55702 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
55703
55704         [BZ #3665]
55705         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
55706
55707 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55708
55709         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
55710         PTR_DEMANGLE.
55711
55712         [BZ #5246]
55713         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
55714         PTR_DEMANGLE.
55715
55716 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
55717
55718         [BZ #14797]
55719         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
55720         definitely overflow as x * y not x * y + z.
55721         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55722         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55723         * math/libm-test.inc (fma_test): Add more tests.
55724         (fma_test_towardzero): Likewise.
55725         (fma_test_downward): Likewise.
55726         (fma_test_upward): Likewise.
55727
55728 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55729
55730         [BZ #157]
55731
55732         * include/stub-tag.h: Remove file.
55733         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
55734         '#include' of it.
55735         * manual/maint.texi (Porting): Don't reference it.
55736         * Makerules ($(objpfx)stubs): Likewise.
55737         * dirent/closedir.c: Don't include <stub-tag.h>.
55738         * dirent/dirfd.c: Likewise.
55739         * dirent/fdopendir.c: Likewise.
55740         * dirent/getdents.c: Likewise.
55741         * dirent/getdents64.c: Likewise.
55742         * dirent/opendir.c: Likewise.
55743         * dirent/readdir.c: Likewise.
55744         * dirent/readdir64.c: Likewise.
55745         * dirent/readdir64_r.c: Likewise.
55746         * dirent/readdir_r.c: Likewise.
55747         * dirent/rewinddir.c: Likewise.
55748         * dirent/seekdir.c: Likewise.
55749         * dirent/telldir.c: Likewise.
55750         * gmon/profil.c: Likewise.
55751         * grp/setgroups.c: Likewise.
55752         * inet/if_index.c: Likewise.
55753         * io/access.c: Likewise.
55754         * io/chdir.c: Likewise.
55755         * io/chmod.c: Likewise.
55756         * io/chown.c: Likewise.
55757         * io/close.c: Likewise.
55758         * io/dup.c: Likewise.
55759         * io/dup2.c: Likewise.
55760         * io/dup3.c: Likewise.
55761         * io/euidaccess.c: Likewise.
55762         * io/faccessat.c: Likewise.
55763         * io/fchdir.c: Likewise.
55764         * io/fchmod.c: Likewise.
55765         * io/fchmodat.c: Likewise.
55766         * io/fchown.c: Likewise.
55767         * io/fchownat.c: Likewise.
55768         * io/fcntl.c: Likewise.
55769         * io/flock.c: Likewise.
55770         * io/fstatfs.c: Likewise.
55771         * io/fstatfs64.c: Likewise.
55772         * io/fstatvfs.c: Likewise.
55773         * io/fstatvfs64.c: Likewise.
55774         * io/futimens.c: Likewise.
55775         * io/fxstat.c: Likewise.
55776         * io/fxstat64.c: Likewise.
55777         * io/fxstatat.c: Likewise.
55778         * io/fxstatat64.c: Likewise.
55779         * io/getcwd.c: Likewise.
55780         * io/isatty.c: Likewise.
55781         * io/lchmod.c: Likewise.
55782         * io/lchown.c: Likewise.
55783         * io/link.c: Likewise.
55784         * io/linkat.c: Likewise.
55785         * io/lseek.c: Likewise.
55786         * io/lseek64.c: Likewise.
55787         * io/lxstat64.c: Likewise.
55788         * io/mkdir.c: Likewise.
55789         * io/mkdirat.c: Likewise.
55790         * io/mkfifo.c: Likewise.
55791         * io/mkfifoat.c: Likewise.
55792         * io/open.c: Likewise.
55793         * io/open64.c: Likewise.
55794         * io/openat.c: Likewise.
55795         * io/openat64.c: Likewise.
55796         * io/pipe.c: Likewise.
55797         * io/pipe2.c: Likewise.
55798         * io/poll.c: Likewise.
55799         * io/posix_fadvise.c: Likewise.
55800         * io/posix_fadvise64.c: Likewise.
55801         * io/posix_fallocate.c: Likewise.
55802         * io/posix_fallocate64.c: Likewise.
55803         * io/read.c: Likewise.
55804         * io/readlink.c: Likewise.
55805         * io/readlinkat.c: Likewise.
55806         * io/rmdir.c: Likewise.
55807         * io/sendfile.c: Likewise.
55808         * io/sendfile64.c: Likewise.
55809         * io/statfs.c: Likewise.
55810         * io/statfs64.c: Likewise.
55811         * io/statvfs.c: Likewise.
55812         * io/statvfs64.c: Likewise.
55813         * io/symlink.c: Likewise.
55814         * io/symlinkat.c: Likewise.
55815         * io/ttyname.c: Likewise.
55816         * io/ttyname_r.c: Likewise.
55817         * io/umask.c: Likewise.
55818         * io/unlink.c: Likewise.
55819         * io/unlinkat.c: Likewise.
55820         * io/utime.c: Likewise.
55821         * io/utimensat.c: Likewise.
55822         * io/write.c: Likewise.
55823         * io/xmknod.c: Likewise.
55824         * io/xmknodat.c: Likewise.
55825         * io/xstat.c: Likewise.
55826         * io/xstat64.c: Likewise.
55827         * login/getpt.c: Likewise.
55828         * login/grantpt.c: Likewise.
55829         * login/unlockpt.c: Likewise.
55830         * math/e_acoshl.c: Likewise.
55831         * math/e_acosl.c: Likewise.
55832         * math/e_asinl.c: Likewise.
55833         * math/e_atan2l.c: Likewise.
55834         * math/e_atanhl.c: Likewise.
55835         * math/e_coshl.c: Likewise.
55836         * math/e_expl.c: Likewise.
55837         * math/e_fmodl.c: Likewise.
55838         * math/e_gammal_r.c: Likewise.
55839         * math/e_hypotl.c: Likewise.
55840         * math/e_j0l.c: Likewise.
55841         * math/e_j1l.c: Likewise.
55842         * math/e_jnl.c: Likewise.
55843         * math/e_lgammal_r.c: Likewise.
55844         * math/e_log10l.c: Likewise.
55845         * math/e_log2l.c: Likewise.
55846         * math/e_logl.c: Likewise.
55847         * math/e_powl.c: Likewise.
55848         * math/e_rem_pio2l.c: Likewise.
55849         * math/e_sinhl.c: Likewise.
55850         * math/e_sqrtl.c: Likewise.
55851         * math/fclrexcpt.c: Likewise.
55852         * math/fedisblxcpt.c: Likewise.
55853         * math/feenablxcpt.c: Likewise.
55854         * math/fegetenv.c: Likewise.
55855         * math/fegetexcept.c: Likewise.
55856         * math/fegetround.c: Likewise.
55857         * math/feholdexcpt.c: Likewise.
55858         * math/fesetenv.c: Likewise.
55859         * math/fesetround.c: Likewise.
55860         * math/feupdateenv.c: Likewise.
55861         * math/fgetexcptflg.c: Likewise.
55862         * math/fraiseexcpt.c: Likewise.
55863         * math/fsetexcptflg.c: Likewise.
55864         * math/ftestexcept.c: Likewise.
55865         * math/k_cosl.c: Likewise.
55866         * math/k_rem_pio2l.c: Likewise.
55867         * math/k_sinl.c: Likewise.
55868         * math/k_tanl.c: Likewise.
55869         * math/s_asinhl.c: Likewise.
55870         * math/s_atanl.c: Likewise.
55871         * math/s_cbrtl.c: Likewise.
55872         * math/s_erfl.c: Likewise.
55873         * math/s_expm1l.c: Likewise.
55874         * math/s_log1pl.c: Likewise.
55875         * math/s_tanhl.c: Likewise.
55876         * misc/acct.c: Likewise.
55877         * misc/brk.c: Likewise.
55878         * misc/chflags.c: Likewise.
55879         * misc/chroot.c: Likewise.
55880         * misc/fchflags.c: Likewise.
55881         * misc/fgetxattr.c: Likewise.
55882         * misc/flistxattr.c: Likewise.
55883         * misc/fremovexattr.c: Likewise.
55884         * misc/fsetxattr.c: Likewise.
55885         * misc/fsync.c: Likewise.
55886         * misc/ftruncate.c: Likewise.
55887         * misc/futimes.c: Likewise.
55888         * misc/futimesat.c: Likewise.
55889         * misc/getdomain.c: Likewise.
55890         * misc/getdtsz.c: Likewise.
55891         * misc/gethostid.c: Likewise.
55892         * misc/gethostname.c: Likewise.
55893         * misc/getloadavg.c: Likewise.
55894         * misc/getpagesize.c: Likewise.
55895         * misc/getsysstats.c: Likewise.
55896         * misc/getxattr.c: Likewise.
55897         * misc/gtty.c: Likewise.
55898         * misc/ioctl.c: Likewise.
55899         * misc/lgetxattr.c: Likewise.
55900         * misc/listxattr.c: Likewise.
55901         * misc/llistxattr.c: Likewise.
55902         * misc/lremovexattr.c: Likewise.
55903         * misc/lsetxattr.c: Likewise.
55904         * misc/lutimes.c: Likewise.
55905         * misc/madvise.c: Likewise.
55906         * misc/mincore.c: Likewise.
55907         * misc/mlock.c: Likewise.
55908         * misc/mlockall.c: Likewise.
55909         * misc/mmap.c: Likewise.
55910         * misc/mprotect.c: Likewise.
55911         * misc/msync.c: Likewise.
55912         * misc/munlock.c: Likewise.
55913         * misc/munlockall.c: Likewise.
55914         * misc/munmap.c: Likewise.
55915         * misc/preadv.c: Likewise.
55916         * misc/preadv64.c: Likewise.
55917         * misc/ptrace.c: Likewise.
55918         * misc/pwritev.c: Likewise.
55919         * misc/pwritev64.c: Likewise.
55920         * misc/readv.c: Likewise.
55921         * misc/reboot.c: Likewise.
55922         * misc/remap_file_pages.c: Likewise.
55923         * misc/removexattr.c: Likewise.
55924         * misc/revoke.c: Likewise.
55925         * misc/select.c: Likewise.
55926         * misc/setdomain.c: Likewise.
55927         * misc/setegid.c: Likewise.
55928         * misc/seteuid.c: Likewise.
55929         * misc/sethostid.c: Likewise.
55930         * misc/sethostname.c: Likewise.
55931         * misc/setregid.c: Likewise.
55932         * misc/setreuid.c: Likewise.
55933         * misc/setxattr.c: Likewise.
55934         * misc/sstk.c: Likewise.
55935         * misc/stty.c: Likewise.
55936         * misc/swapoff.c: Likewise.
55937         * misc/swapon.c: Likewise.
55938         * misc/sync.c: Likewise.
55939         * misc/syncfs.c: Likewise.
55940         * misc/syscall.c: Likewise.
55941         * misc/truncate.c: Likewise.
55942         * misc/ualarm.c: Likewise.
55943         * misc/usleep.c: Likewise.
55944         * misc/ustat.c: Likewise.
55945         * misc/utimes.c: Likewise.
55946         * misc/vhangup.c: Likewise.
55947         * misc/writev.c: Likewise.
55948         * posix/_exit.c: Likewise.
55949         * posix/alarm.c: Likewise.
55950         * posix/execve.c: Likewise.
55951         * posix/fexecve.c: Likewise.
55952         * posix/fork.c: Likewise.
55953         * posix/fpathconf.c: Likewise.
55954         * posix/getaddrinfo.c: Likewise.
55955         * posix/getegid.c: Likewise.
55956         * posix/geteuid.c: Likewise.
55957         * posix/getgid.c: Likewise.
55958         * posix/getgroups.c: Likewise.
55959         * posix/getlogin.c: Likewise.
55960         * posix/getlogin_r.c: Likewise.
55961         * posix/getpgid.c: Likewise.
55962         * posix/getpid.c: Likewise.
55963         * posix/getppid.c: Likewise.
55964         * posix/getresgid.c: Likewise.
55965         * posix/getresuid.c: Likewise.
55966         * posix/getsid.c: Likewise.
55967         * posix/getuid.c: Likewise.
55968         * posix/glob64.c: Likewise.
55969         * posix/nanosleep.c: Likewise.
55970         * posix/pathconf.c: Likewise.
55971         * posix/pause.c: Likewise.
55972         * posix/posix_madvise.c: Likewise.
55973         * posix/pread.c: Likewise.
55974         * posix/pread64.c: Likewise.
55975         * posix/pwrite.c: Likewise.
55976         * posix/pwrite64.c: Likewise.
55977         * posix/sched_getaffinity.c: Likewise.
55978         * posix/sched_getp.c: Likewise.
55979         * posix/sched_gets.c: Likewise.
55980         * posix/sched_primax.c: Likewise.
55981         * posix/sched_primin.c: Likewise.
55982         * posix/sched_rr_gi.c: Likewise.
55983         * posix/sched_setaffinity.c: Likewise.
55984         * posix/sched_setp.c: Likewise.
55985         * posix/sched_sets.c: Likewise.
55986         * posix/sched_yield.c: Likewise.
55987         * posix/setgid.c: Likewise.
55988         * posix/setlogin.c: Likewise.
55989         * posix/setpgid.c: Likewise.
55990         * posix/setresgid.c: Likewise.
55991         * posix/setresuid.c: Likewise.
55992         * posix/setsid.c: Likewise.
55993         * posix/setuid.c: Likewise.
55994         * posix/sleep.c: Likewise.
55995         * posix/spawni.c: Likewise.
55996         * posix/sysconf.c: Likewise.
55997         * posix/times.c: Likewise.
55998         * posix/wait.c: Likewise.
55999         * posix/wait3.c: Likewise.
56000         * posix/wait4.c: Likewise.
56001         * posix/waitpid.c: Likewise.
56002         * resolv/gai_sigqueue.c: Likewise.
56003         * resource/getpriority.c: Likewise.
56004         * resource/getrlimit.c: Likewise.
56005         * resource/getrusage.c: Likewise.
56006         * resource/nice.c: Likewise.
56007         * resource/setpriority.c: Likewise.
56008         * resource/setrlimit.c: Likewise.
56009         * resource/ulimit.c: Likewise.
56010         * rt/aio_cancel.c: Likewise.
56011         * rt/aio_fsync.c: Likewise.
56012         * rt/aio_read.c: Likewise.
56013         * rt/aio_sigqueue.c: Likewise.
56014         * rt/aio_suspend.c: Likewise.
56015         * rt/aio_write.c: Likewise.
56016         * rt/clock_getres.c: Likewise.
56017         * rt/clock_gettime.c: Likewise.
56018         * rt/clock_nanosleep.c: Likewise.
56019         * rt/clock_settime.c: Likewise.
56020         * rt/lio_listio.c: Likewise.
56021         * rt/mq_close.c: Likewise.
56022         * rt/mq_getattr.c: Likewise.
56023         * rt/mq_notify.c: Likewise.
56024         * rt/mq_open.c: Likewise.
56025         * rt/mq_receive.c: Likewise.
56026         * rt/mq_send.c: Likewise.
56027         * rt/mq_setattr.c: Likewise.
56028         * rt/mq_timedreceive.c: Likewise.
56029         * rt/mq_timedsend.c: Likewise.
56030         * rt/mq_unlink.c: Likewise.
56031         * rt/shm_open.c: Likewise.
56032         * rt/shm_unlink.c: Likewise.
56033         * rt/timer_create.c: Likewise.
56034         * rt/timer_delete.c: Likewise.
56035         * rt/timer_getoverr.c: Likewise.
56036         * rt/timer_gettime.c: Likewise.
56037         * rt/timer_settime.c: Likewise.
56038         * setjmp/__longjmp.c: Likewise.
56039         * setjmp/setjmp.c: Likewise.
56040         * signal/kill.c: Likewise.
56041         * signal/killpg.c: Likewise.
56042         * signal/raise.c: Likewise.
56043         * signal/sigaction.c: Likewise.
56044         * signal/sigaltstack.c: Likewise.
56045         * signal/sigblock.c: Likewise.
56046         * signal/sigignore.c: Likewise.
56047         * signal/sigintr.c: Likewise.
56048         * signal/signal.c: Likewise.
56049         * signal/sigpause.c: Likewise.
56050         * signal/sigpending.c: Likewise.
56051         * signal/sigqueue.c: Likewise.
56052         * signal/sigreturn.c: Likewise.
56053         * signal/sigset.c: Likewise.
56054         * signal/sigsetmask.c: Likewise.
56055         * signal/sigstack.c: Likewise.
56056         * signal/sigsuspend.c: Likewise.
56057         * signal/sigtimedwait.c: Likewise.
56058         * signal/sigvec.c: Likewise.
56059         * signal/sigwait.c: Likewise.
56060         * signal/sigwaitinfo.c: Likewise.
56061         * signal/sysv_signal.c: Likewise.
56062         * socket/accept.c: Likewise.
56063         * socket/accept4.c: Likewise.
56064         * socket/bind.c: Likewise.
56065         * socket/connect.c: Likewise.
56066         * socket/getpeername.c: Likewise.
56067         * socket/getsockname.c: Likewise.
56068         * socket/getsockopt.c: Likewise.
56069         * socket/isfdtype.c: Likewise.
56070         * socket/listen.c: Likewise.
56071         * socket/recv.c: Likewise.
56072         * socket/recvfrom.c: Likewise.
56073         * socket/recvmsg.c: Likewise.
56074         * socket/send.c: Likewise.
56075         * socket/sendmsg.c: Likewise.
56076         * socket/sendto.c: Likewise.
56077         * socket/setsockopt.c: Likewise.
56078         * socket/shutdown.c: Likewise.
56079         * socket/sockatmark.c: Likewise.
56080         * socket/socket.c: Likewise.
56081         * socket/socketpair.c: Likewise.
56082         * stdio-common/ctermid.c: Likewise.
56083         * stdio-common/cuserid.c: Likewise.
56084         * stdio-common/remove.c: Likewise.
56085         * stdio-common/rename.c: Likewise.
56086         * stdio-common/renameat.c: Likewise.
56087         * stdio-common/tempname.c: Likewise.
56088         * stdlib/getcontext.c: Likewise.
56089         * stdlib/makecontext.c: Likewise.
56090         * stdlib/setcontext.c: Likewise.
56091         * stdlib/swapcontext.c: Likewise.
56092         * stdlib/system.c: Likewise.
56093         * streams/fattach.c: Likewise.
56094         * streams/fdetach.c: Likewise.
56095         * streams/getmsg.c: Likewise.
56096         * streams/getpmsg.c: Likewise.
56097         * streams/putmsg.c: Likewise.
56098         * streams/putpmsg.c: Likewise.
56099         * sysdeps/unix/bsd/getpt.c: Likewise.
56100         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
56101         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
56102         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
56103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
56104         Likewise.
56105         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
56106         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
56107         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
56108         * sysvipc/msgctl.c: Likewise.
56109         * sysvipc/msgget.c: Likewise.
56110         * sysvipc/msgrcv.c: Likewise.
56111         * sysvipc/msgsnd.c: Likewise.
56112         * sysvipc/semctl.c: Likewise.
56113         * sysvipc/semget.c: Likewise.
56114         * sysvipc/semop.c: Likewise.
56115         * sysvipc/semtimedop.c: Likewise.
56116         * sysvipc/shmat.c: Likewise.
56117         * sysvipc/shmctl.c: Likewise.
56118         * sysvipc/shmdt.c: Likewise.
56119         * sysvipc/shmget.c: Likewise.
56120         * termios/tcdrain.c: Likewise.
56121         * termios/tcflow.c: Likewise.
56122         * termios/tcflush.c: Likewise.
56123         * termios/tcgetattr.c: Likewise.
56124         * termios/tcgetpgrp.c: Likewise.
56125         * termios/tcsendbrk.c: Likewise.
56126         * termios/tcsetattr.c: Likewise.
56127         * termios/tcsetpgrp.c: Likewise.
56128         * time/adjtime.c: Likewise.
56129         * time/clock.c: Likewise.
56130         * time/getitimer.c: Likewise.
56131         * time/gettimeofday.c: Likewise.
56132         * time/setitimer.c: Likewise.
56133         * time/settimeofday.c: Likewise.
56134         * time/stime.c: Likewise.
56135         * time/time.c: Likewise.
56136
56137 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
56138
56139         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
56140         /usr/old/bin.
56141
56142         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
56143         instead of spaces.
56144         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
56145
56146 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
56147
56148         [BZ #14796]
56149         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
56150         FE_TONEAREST before applying Dekker multiplication and Knuth
56151         addition.  Clear inexact exceptions and check for exact zero
56152         results afterwards.
56153         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56154         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
56155         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56156         * math/libm-test.inc (fma_test): Add more tests.
56157         (fma_test_towardzero): Likewise.
56158         (fma_test_downward): Likewise.
56159         (fma_test_upward): Likewise.
56160         * sysdeps/generic/math_private.h (default_libc_fesetround): New
56161         function.
56162         (libc_fesetround): New macro.
56163         (libc_fesetroundf): Likewise.
56164         (libc_fesetroundl): Likewise.
56165         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
56166         function.
56167         (libc_fesetround_387): Likewise.
56168         (libc_fesetroundf): New macro.
56169         (libc_fesetround): Likewise.
56170         (libc_fesetroundl): Likewise.
56171         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
56172         function.
56173         (libc_fesetroundf): New macro.
56174         (libc_fesetround): Likewise.
56175         (libc_fesetroundl): Likewise.
56176         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
56177         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
56178         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
56179         libm_hidden_ver.
56180         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
56181         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
56182         libm_hidden_def.
56183         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
56184         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
56185         libm_hidden_ver.
56186         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
56187         libm_hidden_def.
56188
56189         [BZ #3439]
56190         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
56191         integer constant usable in #if and use that to give value to enum
56192         constant.
56193         (FE_DIVBYZERO): Likewise.
56194         (FE_UNDERFLOW): Likewise.
56195         (FE_OVERFLOW): Likewise.
56196         (FE_INVALID): Likewise.
56197         (FE_INVALID_SNAN): Likewise.
56198         (FE_INVALID_ISI): Likewise.
56199         (FE_INVALID_IDI): Likewise.
56200         (FE_INVALID_ZDZ): Likewise.
56201         (FE_INVALID_IMZ): Likewise.
56202         (FE_INVALID_COMPARE): Likewise.
56203         (FE_INVALID_SOFTWARE): Likewise.
56204         (FE_INVALID_SQRT): Likewise.
56205         (FE_INVALID_INTEGER_CONVERSION): Likewise.
56206         (FE_TONEAREST): Likewise.
56207         (FE_TOWARDZERO): Likewise.
56208         (FE_UPWARD): Likewise.
56209         (FE_DOWNWARD): Likewise.
56210         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
56211         (FE_DIVBYZERO): Likewise.
56212         (FE_OVERFLOW): Likewise.
56213         (FE_UNDERFLOW): Likewise.
56214         (FE_INEXACT): Likewise.
56215         (FE_TONEAREST): Likewise.
56216         (FE_DOWNWARD): Likewise.
56217         (FE_UPWARD): Likewise.
56218         (FE_TOWARDZERO): Likewise.
56219         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
56220         (FE_UNDERFLOW): Likewise.
56221         (FE_OVERFLOW): Likewise.
56222         (FE_DIVBYZERO): Likewise.
56223         (FE_INVALID): Likewise.
56224         (FE_TONEAREST): Likewise.
56225         (FE_TOWARDZERO): Likewise.
56226         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
56227         (FE_OVERFLOW): Likewise.
56228         (FE_UNDERFLOW): Likewise.
56229         (FE_DIVBYZERO): Likewise.
56230         (FE_INEXACT): Likewise.
56231         (FE_TONEAREST): Likewise.
56232         (FE_TOWARDZERO): Likewise.
56233         (FE_UPWARD): Likewise.
56234         (FE_DOWNWARD): Likewise.
56235         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
56236         (FE_DIVBYZERO): Likewise.
56237         (FE_OVERFLOW): Likewise.
56238         (FE_UNDERFLOW): Likewise.
56239         (FE_INEXACT): Likewise.
56240         (FE_TONEAREST): Likewise.
56241         (FE_DOWNWARD): Likewise.
56242         (FE_UPWARD): Likewise.
56243         (FE_TOWARDZERO): Likewise.
56244
56245 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
56246
56247         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
56248
56249 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
56250
56251         * scripts/cross-test-ssh.sh (command): Use newlines to separate
56252         commands.  Quote $PWD.
56253         (blacklist_exports): Don't use remove_newlines.  Replace "declare
56254         -x" by "export".
56255         (remove_newlines): Remove.
56256
56257 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
56258
56259         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
56260         * stdlib/stdlib.h (atof): Moved to ...
56261         * include/bits/stdlib-float.h: Here.  New file.
56262         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
56263         * stdlib/bits/stdlib-float.h: New file.
56264         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
56265         -mno-sse -mno-mmx.
56266         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
56267         <xmmintrin.h>.
56268
56269 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
56270
56271         * conform/conformtest.pl (@headers): Add fenv.h.
56272         * conform/data/fenv.h-data: New file.
56273         * include/fenv.h [_ISOMAC]: Disable all contents of file except
56274         include of <math/fenv.h>.
56275
56276         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
56277         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
56278         && !UNIX98].  Enables tests for XOPEN2K8.
56279         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
56280         POSIX2008]: Likewise.
56281
56282         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
56283         (struct rusage): Do not expect type or its members.
56284
56285         [BZ #3439]
56286         * math/math.h (FP_NAN): Define macro to integer constant usable in
56287         #if and use that to give value to enum constant.
56288         (FP_INFINITE): Likewise.
56289         (FP_ZERO): Likewise.
56290         (FP_SUBNORMAL): Likewise.
56291         (FP_NORMAL): Likewise.
56292
56293 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
56294
56295         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
56296         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
56297         arguments.
56298
56299 2012-11-02  Roland McGrath  <roland@hack.frob.com>
56300
56301         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
56302         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
56303         autoconf-time if not.
56304         * configure.in: Remove AC_PREREQ.
56305
56306 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56307
56308         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
56309         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
56310         of the internal implementation.
56311
56312 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
56313
56314         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
56315         except include of <misc/sys/syslog.h>.
56316
56317 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56318
56319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
56320         function returns with a NULL context exit with zero.
56321
56322 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56323
56324         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
56325
56326 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
56327
56328         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
56329         (run_program_cmd): This.
56330         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
56331         (tst_langinfo): New variable.  Use it.
56332
56333 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
56334
56335         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
56336         floating point opcodes.
56337
56338 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56339
56340         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
56341         variable.
56342
56343         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
56344
56345         * sysdeps/mach/hurd/powerpc: Remove directory.
56346         * sysdeps/mach/powerpc: Likewise.
56347
56348 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56349
56350         * scripts/check-local-headers.sh: Ignore c++ headers.
56351
56352 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56353
56354         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
56355         __libc_cleanup_region_start argument.
56356
56357 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
56358
56359         [BZ #14784]
56360         [BZ #14785]
56361         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
56362         x * y using scaling, not as x * y + z.
56363         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56364         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56365         * math/libm-test.inc (fma_test): Add more tests.
56366         (fma_test_towardzero): Likewise.
56367         (fma_test_downward): Likewise.
56368         (fma_test_upward): Likewise.
56369
56370 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56371
56372         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
56373
56374 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56375
56376         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
56377         New variable.
56378
56379 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
56380
56381         * rt/tst-shm.c (worker): Correct checking for mmap failure.
56382
56383 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56384
56385         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56386         Fix sort order.
56387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56388         Likewise.
56389
56390 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56391
56392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56393         Fix the order of the list for glibc 2.17.
56394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56395         Likewise.
56396
56397 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56398
56399         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56400
56401 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56402
56403         [BZ #14610]
56404         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
56405         for low part of x being zero before using __atanl (y).
56406         * math/libm-test.inc (atan2_test): Add another test.
56407
56408         * manual/install.texi (Configuring and compiling): Document
56409         general use of test-wrapper and test-wrapper-env.
56410         * INSTALL: Regenerated.
56411
56412         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
56413         (__fma): Do not extract and scale down low bits on after-rounding
56414         systems when result rounded to normal precision would have normal
56415         exponent.
56416         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
56417         (__fmal): Do not extract and scale down low bits on after-rounding
56418         systems when result rounded to normal precision would have normal
56419         exponent.
56420         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
56421         (__fmal): Do not extract and scale down low bits on after-rounding
56422         systems when result rounded to normal precision would have normal
56423         exponent.
56424         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
56425         macro.
56426         (fma_test): Add more tests.
56427         (fma_test_towardzero): Likewise.
56428         (fma_test_downward): Likewise.
56429         (fma_test_upward): Likewise.
56430
56431 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
56432
56433         * sysdeps/i386/tininess.h: Renamed to ...
56434         * sysdeps/x86/tininess.h: This.
56435         * sysdeps/x86_64/tininess.h: Removed.
56436
56437 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56438
56439         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
56440         input.  Use $(build-program-cmd).
56441         ($(objpfx)tst-array1-static.out): Likewise.
56442         ($(objpfx)tst-array2.out): Likewise.
56443         ($(objpfx)tst-array3.out): Likewise.
56444         ($(objpfx)tst-array4.out): Likewise.
56445         ($(objpfx)tst-array5.out): Likewise.
56446         ($(objpfx)tst-array5-static.out): Likewise.
56447
56448 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
56449
56450         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
56451         if defined.
56452
56453         * nss/nsswitch.h (nss_interface_function): Provide new
56454         macro for use with NSS functions.
56455         * grp/initgroups.c: Use new macro.
56456         * nss/getXXbyYY.c: Likewise.
56457         * nss/getXXbyYY_r.c: Likewise.
56458         * nss/getXXent.c: Likewise.
56459         * nss/getXXent_r.c: Likewise.
56460         * sysdeps/posix/getaddrinfo.c: Likewise.
56461
56462 2012-10-30  Andreas Jaeger  <aj@suse.de>
56463
56464         * po/ru.po: Update Russion translation from translation project.
56465
56466 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56467
56468         [BZ #14152]
56469         [BZ #14783]
56470         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
56471         result and shift together with sticky bit instead of replicating
56472         round-to-nearest rounding.
56473         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56474         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56475         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
56476         missing underflow exceptions.
56477         (fma_test_towardzero): Add more tests.
56478         (fma_test_downward): Likewise.
56479         (fma_test_upward): Likewise.
56480
56481         [BZ #14047]
56482         * sysdeps/generic/tininess.h: New file.
56483         * sysdeps/i386/tininess.h: Likewise.
56484         * sysdeps/sh/tininess.h: Likewise.
56485         * sysdeps/x86_64/tininess.h: Likewise.
56486         * stdlib/tst-strtod-underflow.c: Likewise.
56487         * stdlib/tst-tininess.c: Likewise.
56488         * stdlib/strtod_l.c: Include <tininess.h>.
56489         (round_and_return): Do not set errno for exact underflow cases.
56490         Force an underflow exception when setting errno for underflow.
56491         Determine underflow based on rounding to normal precision if
56492         TININESS_AFTER_ROUNDING.
56493         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
56494         ERANGE for exact underflow cases.
56495         * stdlib/Makefile (tests): Add tst-tininess and
56496         tst-strtod-underflow.
56497         ($(objpfx)tst-tininess): Use $(link-libm).
56498         ($(objpfx)tst-strtod-underflow): Likewise.
56499
56500 2012-10-30  Andreas Jaeger  <aj@suse.de>
56501
56502         [BZ#14767]
56503         * elf/Makefile (tests): Remove conditional for have-initfini-array
56504         since this is now always required and the variable does not exist
56505         anymore.
56506         (tests-static): Likewise.
56507         (modules-names): Likewise.
56508
56509         * po/eo.po: Add Esperanto translation from translation project.
56510
56511         * elf/tst-array1.c (fini_array): Make writeable so that it can be
56512         merged with constructor/destructor.
56513         (init_array): Likewise.
56514         * elf/tst-array2dep.c (fini_array): Likewise.
56515         (init_array): Likewise.
56516
56517 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
56518
56519         * manual/message.texi: Delete @cartouche tags.
56520
56521 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
56522
56523         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
56524         EOPNOTSUPP.
56525         * sysdeps/mach/hurd/fsync.c: Likewise.
56526
56527         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
56528         [_POSIX_REALTIME_SIGNALS]: Change condition to
56529         [_POSIX_REALTIME_SIGNALS > 0].
56530
56531 2012-10-27  Andreas Jaeger  <aj@suse.de>
56532
56533         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
56534         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
56535         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
56536         [__WORDSIZE != 64]: Likewise.
56537
56538 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
56539
56540         *  iconvdata/tst-table.sh: Remove ${SHELL}.
56541         *  iconvdata/tst-tables.sh: Likewise.
56542
56543 2012-10-25  David S. Miller  <davem@davemloft.net>
56544
56545         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56546         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
56547         of strtoull.
56548
56549         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
56550         ifunc-impl-list.c
56551         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
56552         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
56553         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
56554         file.
56555
56556 2012-10-25  Roland McGrath  <roland@hack.frob.com>
56557
56558         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56559         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
56560         __getdirentries.
56561
56562 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56563             Jim Blandy  <jimb@codesourcery.com>
56564
56565         * scripts/cross-test-ssh.sh: New file.
56566         * manual/install.texi (Configuring and compiling): Document use of
56567         cross-test-ssh.sh.
56568         * INSTALL: Regenerated.
56569
56570 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
56571
56572         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
56573         EOPNOTSUPP.
56574
56575 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56576
56577         * Makeconfig (run-program-prefix): Fix comment.
56578
56579 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56580             Jim Blandy  <jimb@codesourcery.com>
56581
56582         * Makeconfig (test-wrapper): New variable,
56583         (test-wrapper-env): Likewise.
56584         [$(cross-compiling) = yes && $(test-wrapper) != ""]
56585         (run-built-tests): Define to yes.
56586         (run-program-prefix): Use $(test-wrapper).
56587         (built-program-cmd): Likewise.
56588         * Rules (make-test-out): Use $(test-wrapper-env) and
56589         $(host-built-program-cmd).
56590         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
56591         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
56592         tst-pathopt.sh.
56593         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
56594         $(test-wrapper-env) to tst-rtld-load-self.sh.
56595         ($(objpfx)order2.out): Use $(test-wrapper).
56596         ($(objpfx)tst-initorder.out): Likewise.
56597         ($(objpfx)tst-initorder2.out): Likewise.
56598         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
56599         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
56600         (test_wrapper_env): New variable.  Use it to run ld.so.
56601         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
56602         Use it to run ld.so.
56603         (test_wrapper_env): Likewise.
56604         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
56605         $(test-wrapper) to run-iconv-test.sh.
56606         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
56607         (ICONV): Use $test_wrapper.
56608         * posix/Makefile ($(objpfx)globtest.out): Pass
56609         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
56610         globtest.sh, not $(run-program-prefix).
56611         * posix/globtest.sh (run_via_rtld_prefix): New variable.
56612         (test_wrapper): Likewise.
56613         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
56614         set together with run_via_rtld_prefix.
56615         (run_program_prefix): Define in terms of test_wrapper and
56616         run_via_rtld_prefix.
56617
56618 2012-10-24  Roland McGrath  <roland@hack.frob.com>
56619
56620         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
56621         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
56622         Targets removed.
56623
56624         [BZ #14743]
56625         * include/time.h: Remove librt_hidden_proto (clock_gettime).
56626         Declare __clock_getres, __clock_gettime, __clock_settime,
56627         __clock_nanosleep, and __clock_getcpuclockid.
56628         * rt/clock_gettime.c: Define __clock_gettime as an alias.
56629         Remove librt_hidden_def (clock_gettime).
56630         * sysdeps/unix/clock_gettime.c: Likewise.
56631         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
56632         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
56633         * rt/clock_getres.c: Define __clock_getres as an alias.
56634         * sysdeps/posix/clock_getres.c: Likewise.
56635         * rt/clock_settime.c: Define __clock_settime as an alias.
56636         * sysdeps/unix/clock_settime.c: Likewise.
56637         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
56638         * sysdeps/unix/clock_nanosleep.c: Likewise.
56639         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
56640         * rt/clock-compat.c: New file.
56641         * rt/Makefile (librt-routines): Add clock-compat and move
56642         $(clock-routines) to ...
56643         (routines): ... here, new variable.
56644         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
56645         Don't add get_clockfreq here.
56646         * rt/Versions (libc: GLIBC_2.17): New version set.
56647         Add clock_* symbols here.
56648         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
56649         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
56650         (GLIBC_2.17): Add clock_* symbols.
56651         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
56652         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
56653         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
56654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56655         Likewise.
56656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56657         Likewise.
56658         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
56659         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
56660         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
56661         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
56662         * NEWS: Mention the move.
56663
56664         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
56665         Use __open, __read, __close rather than their public counterparts.
56666         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56667         (__get_clockfreq_via_cpuinfo): Likewise.
56668         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
56669         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
56670
56671         * config.h.in (HAVE_IFUNC): New #undef.
56672         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
56673         was successful.
56674         * configure: Regenerated.
56675
56676 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56677
56678         * configure.in: Move READELF check to start of file.
56679         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
56680         libc_cv_asm_gnu_indirect_function in the process.
56681         * configure: Regenerated.
56682
56683 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56684
56685         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
56686         send the output to /dev/null.
56687         (libc_cv_cc_with_libunwind): Likewise.
56688         (libc_cv_as_noexecstack): Likewise.
56689         * configure: Regenerate.
56690
56691 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56692
56693         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
56694
56695         * posix/globtest.sh (TMPDIR): Do not set.
56696         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
56697         (testout): Likewise.
56698
56699 2012-10-24  Andreas Jaeger  <aj@suse.de>
56700
56701         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
56702         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
56703         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
56704         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
56705         posix_fadvise64, posix_fallocate64.
56706
56707         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
56708         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
56709         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
56710         Likewise.
56711         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
56712         Likewise.
56713         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
56714
56715         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
56716         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
56717         <bits/fcntl-linux.h>.
56718         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
56719
56720         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
56721         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
56722         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
56723         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
56724         [__WORDSIZE != 64]: Likewise.
56725
56726 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56727
56728         * Makeconfig (run-built-tests): New variable.
56729         * Rules [$(cross-compiling) = yes]: Change condition to
56730         [$(run-built-tests) = no].
56731         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
56732         to [$(run-built-tests) = yes].
56733         * elf/Makefile [$(cross-compiling) = no]: Likewise.
56734         * grp/Makefile [$(cross-compiling) = no]: Likewise.
56735         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
56736         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
56737         * intl/Makefile [$(cross-compiling) = no]: Likewise.
56738         * io/Makefile [$(cross-compiling) = no]: Likewise.
56739         * libio/Makefile [$(cross-compiling) = no]: Likewise.
56740         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
56741         * misc/Makefile [$(cross-compiling) = no]: Likewise.
56742         * posix/Makefile [$(cross-compiling) = no]: Likewise.
56743         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
56744         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
56745         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
56746         * string/Makefile [$(cross-compiling) = no]: Likewise.
56747
56748         * posix/Makefile ($(objpfx)globtest.out): Pass
56749         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
56750         $(rtld-installed-name).
56751         * posix/globtest.sh (elf_objpfx): Remove variable.
56752         (rtld_installed_name): Likewise.
56753         (library_path): Likewise.
56754         (run_program_prefix): New variable.  Use for running globtest
56755         binary.
56756
56757 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
56758             Joseph Myers  <joseph@codesourcery.com>
56759
56760         * Makeconfig (host-built-program-cmd): New variable.
56761         * elf/Makefile (tst-stackguard1-ARGS): Use
56762         $(host-built-program-cmd).
56763         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
56764         (tst-spawn-ARGS): Likewise.
56765         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
56766
56767 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56768             Jim Blandy  <jimb@codesourcery.com>
56769
56770         * Makeconfig (run-via-rtld-prefix): New variable.
56771         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
56772         (built-program-cmd): Likewise.
56773
56774 2012-10-22  Andreas Jaeger  <aj@suse.de>
56775
56776         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
56777         __O_RSYNC if it exists, otherwise to O_SYNC.
56778
56779 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
56780             Joseph Myers  <joseph@codesourcery.com>
56781
56782         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
56783         /dev/null.
56784         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
56785         from /dev/null
56786         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
56787         /dev/null.
56788
56789 2012-10-22  Andreas Jaeger  <aj@suse.de>
56790
56791         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
56792         Define always.
56793         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
56794
56795         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56796         bits/fcntl-linux.h.
56797
56798         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
56799         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
56800
56801         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
56802         to __O_LARGEFILE.
56803         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
56804         to __O_LARGEFILE.
56805
56806 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
56807             Joseph Myers  <joseph@codesourcery.com>
56808
56809         * config.make.in (NM): New variable.
56810
56811 2012-10-21  Andreas Jaeger  <aj@suse.de>
56812
56813         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
56814         definitions and declarations that are provided by
56815         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
56816
56817 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56818
56819         [BZ #14683]
56820         * elf/Makefile (tests-static): Add tst-leaks1-static.
56821         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
56822         ($(objpfx)tst-leaks1-static): New rule.
56823         ($(objpfx)tst-leaks1-static-mem): Likewise.
56824         (tst-leaks1-static-ENV): New macro.
56825         * elf/dl-open.c (dl_open_worker): Check the main application
56826         only if SHARED is defined.
56827         * elf/tst-leaks1-static.c: New file.
56828
56829 2012-10-20  Andreas Jaeger  <aj@suse.de>
56830
56831         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
56832         generic values for Linux.
56833         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
56834         and declarations that are provided by <bits/fcntl-linux.h> and
56835         include <bits/fcntl-linux.h>.
56836         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
56837         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
56838
56839 2012-10-20  Roland McGrath  <roland@hack.frob.com>
56840
56841         * io/fcntl.h: Move include of <bits/types.h> to the top and
56842         include it unconditionally.
56843
56844 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56845
56846         * wcsmbs/Makefile (tests-ifunc): New variable.
56847         (tests): Add $(tests-ifunc).
56848         * wcsmbs/test-wcschr-ifunc.c: New file.
56849         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
56850         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
56851         * wcsmbs/test-wcslen-ifunc.c: Likewise.
56852         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
56853         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
56854
56855         * string/Makefile (tests-ifunc): New variable.
56856         (tests): Add $(tests-ifunc).
56857         * string/test-memccpy.c (TEST_NAME): New macro.
56858         * string/test-memchr.c (TEST_NAME): Likewise.
56859         * string/test-memcmp.c (TEST_NAME): Likewise.
56860         * string/test-memcpy.c (TEST_NAME): Likewise.
56861         * string/test-memmem.c (TEST_NAME): Likewise.
56862         * string/test-memmove.c (TEST_NAME): Likewise.
56863         * string/test-memset.c (TEST_NAME): Likewise.
56864         * string/test-rawmemchr.c (TEST_NAME): Likewise.
56865         * string/test-stpcpy.c (TEST_NAME): Likewise.
56866         * string/test-stpncpy.c (TEST_NAME): Likewise.
56867         * string/test-strcasecmp.c (TEST_NAME): Likewise.
56868         * string/test-strcasestr.c (TEST_NAME): Likewise.
56869         * string/test-strcat.c (TEST_NAME): Likewise.
56870         * string/test-strchr.c (TEST_NAME): Likewise.
56871         * string/test-strcmp.c(TEST_NAME): Likewise.
56872         * string/test-strcpy.c (TEST_NAME): Likewise.
56873         * string/test-strcspn.c (TEST_NAME): Likewise.
56874         * string/test-strlen.c (TEST_NAME): Likewise.
56875         * string/test-strncasecmp.c (TEST_NAME): Likewise.
56876         * string/test-strncmp.c (TEST_NAME): Likewise.
56877         * string/test-strncpy.c (TEST_NAME): Likewise.
56878         * string/test-strnlen.c (TEST_NAME): Likewise.
56879         * string/test-strpbrk.c (TEST_NAME): Likewise.
56880         * string/test-strrchr.c (TEST_NAME): Likewise.
56881         * string/test-strspn.c (TEST_NAME): Likewise.
56882         * string/test-strstr.c (TEST_NAME): Likewise.
56883         * string/test-bcopy-ifunc.c: New file.
56884         * string/test-bzero-ifunc.c: Likewise.
56885         * string/test-memccpy-ifunc.c: Likewise.
56886         * string/test-memchr-ifunc.c: Likewise.
56887         * string/test-memcmp-ifunc.c: Likewise.
56888         * string/test-memcpy-ifunc.c: Likewise.
56889         * string/test-memmem-ifunc.c: Likewise.
56890         * string/test-memmove-ifunc.c: Likewise.
56891         * string/test-mempcpy-ifunc.c: Likewise.
56892         * string/test-memset-ifunc.c: Likewise.
56893         * string/test-rawmemchr-ifunc.c: Likewise.
56894         * string/test-stpcpy-ifunc.c: Likewise.
56895         * string/test-stpncpy-ifunc.c: Likewise.
56896         * string/test-strcasecmp-ifunc.c: Likewise.
56897         * string/test-strcasestr-ifunc.c: Likewise.
56898         * string/test-strcat-ifunc.c: Likewise.
56899         * string/test-strchr-ifunc.c: Likewise.
56900         * string/test-strchrnul-ifunc.c: Likewise.
56901         * string/test-strcmp-ifunc.c: Likewise.
56902         * string/test-strcpy-ifunc.c: Likewise.
56903         * string/test-strcspn-ifunc.c: Likewise.
56904         * string/test-strlen-ifunc.c: Likewise.
56905         * string/test-strncasecmp-ifunc.c: Likewise.
56906         * string/test-strncat-ifunc.c: Likewise.
56907         * string/test-strncmp-ifunc.c: Likewise.
56908         * string/test-strncpy-ifunc.c: Likewise.
56909         * string/test-strnlen-ifunc.c: Likewise.
56910         * string/test-strpbrk-ifunc.c: Likewise.
56911         * string/test-strrchr-ifunc.c: Likewise.
56912         * string/test-strspn-ifunc.c: Likewise.
56913         * string/test-strstr-ifunc.c: Likewise.
56914
56915         * debug/Makefile (tests-ifunc): New variable.
56916         (tests): Add $(tests-ifunc).
56917         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
56918         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
56919         * debug/test-stpcpy_chk-ifunc.c: New file.
56920         * debug/test-strcpy_chk-ifunc.c: Likewise.
56921
56922 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
56923
56924         [BZ #13601]
56925         * elf/dl-load.c (open_verify): Retry read if the entire ELF
56926         header is not read in.
56927
56928 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
56929
56930         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
56931         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
56932         directly.  Pass built executable to script as
56933         $(built-program-cmd).
56934         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
56935         $testprogram without using LD_LIBRARY_PATH and $ldso.
56936
56937         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
56938         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
56939         $(rtld-installed-name).
56940         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
56941         (rtld_installed_name): Likewise.
56942         (library_path): Likewise.
56943         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
56944         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
56945         $(run-program-prefix) to tst-tables.sh.
56946         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
56947         it to run tst-table-from and tst-table-to.
56948         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
56949         Pass it to tst-table.sh.
56950         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
56951         $(run-program-prefix) to tst-gettext.sh.
56952         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
56953         tst-translit.sh.
56954         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
56955         tst-gettext2.sh.
56956         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
56957         to run tst-gettext.
56958         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
56959         to run tst-gettext2.
56960         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
56961         to run tst-translit.
56962         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
56963         $(run-program-prefix) to tst-mtrace.sh.
56964         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
56965         to run tst-mtrace.
56966         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
56967         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
56968         $(rtld-installed-name).
56969         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
56970         (rtld_installed_name): Likewise.
56971         (run_program_prefix): New variable.  Use it to run wordexp-test.
56972
56973         * Makeconfig (ARCH): Remove all definitions.
56974         (machine): Likewise.
56975         [ARCH]: Remove conditional code.
56976         [!objdir]: Give error.
56977         [!objdir] (objpfx): Remove.
56978         [!objdir] (common-objpfx): Likewise.
56979         [!objdir] (common-objdir): Likewise.
56980         * configure.in (config_makefile): Remove.  Hardcode Makefile in
56981         AC_CONFIG_FILES call.
56982         * configure: Regenerated.
56983
56984         [BZ #13888]
56985         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
56986         or TMPDIR.
56987         (testout): Likewise.
56988
56989         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
56990         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
56991         $(rtld-installed-name).
56992         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
56993         (rtld_installed_name): Likwise.
56994         (runit): Remove function.
56995         (run_getconf): New variable,  Use it for running getconf binary.
56996
56997 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
56998
56999         [BZ #14716]
57000         * string/test-memmem.c (check_result): New function.
57001         (do_one_test): Use it.
57002         (check1): New function.
57003         (test_main): Use it.
57004
57005 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
57006
57007         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
57008
57009 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
57010
57011         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
57012         (_G_LSEEK64): Likewise.
57013         (_G_MMAP64): Likewise.
57014         (_G_FSTAT64): Likewise.
57015         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
57016         (_G_LSEEK64): Likewise.
57017         (_G_MMAP64): Likewise.
57018         (_G_FSTAT64): Likewise.
57019         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
57020         unconditional.  Call __mmap64 directly.
57021         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
57022         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
57023         __lseek64 directly.
57024         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
57025         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
57026         __mmap64 directly.
57027         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
57028         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
57029         __lseek64 directly.
57030         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
57031         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
57032         __lseek64 directly.
57033         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
57034         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
57035         __lseek64 directly.
57036         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
57037         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
57038         __fxstat64 directly.
57039         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
57040         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
57041         unconditional.
57042         (freopen64) [!_G_OPEN64]: Remove conditional code.
57043         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
57044         unconditional.
57045         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
57046         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
57047         unconditional.
57048         (ftello64) [!_G_LSEEK64]: Remove conditional code.
57049         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
57050         unconditional.
57051         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
57052         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
57053         unconditional.
57054         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
57055         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
57056         unconditional.
57057         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
57058         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
57059         unconditional.
57060         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
57061         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
57062         unconditional.
57063         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
57064
57065 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
57066
57067         [BZ #12140]
57068         * manual/memory.texi (Malloc Tunable Parameters): Add note
57069         about free list pointers overwriting some perturb bytes.
57070         Wording suggested by Roland McGrath.
57071
57072 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
57073
57074         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
57075         (lgamma_test): Likewise.
57076         (tgamma_test): Likewise.
57077
57078 2012-10-16  Florian Weimer  <fweimer@redhat.com>
57079
57080         [BZ #14700]
57081         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
57082         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
57083
57084 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
57085
57086         * NEWS: Mention BZ #14716.
57087         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
57088         when removing AVAILABLE1_USES_J macro.
57089
57090 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
57091
57092         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
57093         (__bswap_64): __uint64_t for unsigned 64-bit int.
57094
57095 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
57096
57097         * include/string.h (memmem): Declare libc hidden alias.
57098         * string/memmem.c (memmem): Define libc hidden alias.
57099         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
57100         __read, __close instead of open, read, close.
57101
57102 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
57103
57104         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
57105         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
57106         global and hidden.
57107         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
57108         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
57109         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
57110         Likewise.
57111         (__rawmemchr_sse2): Likewise.
57112         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
57113         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
57114         (__strchr_sse2): Likewise.
57115         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
57116         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
57117         (__strcasecmp_sse2): Likewise.
57118         (__strncasecmp_sse2): Likewise.
57119         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
57120         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
57121         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
57122         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
57123         (__strrchr_sse2): Likewise.
57124         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
57125         ifunc-impl-list.c.
57126         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
57127         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
57128         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
57129         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
57130         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
57131         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
57132         * sysdeps/x86_64/multiarch/memset.S: Likewise.
57133         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
57134         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
57135         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
57136         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
57137         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
57138         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
57139         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
57140         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
57141         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
57142         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
57143         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
57144         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
57145         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
57146         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
57147         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
57148         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
57149         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
57150         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
57151         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
57152         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
57153         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
57154         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
57155         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
57156
57157         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
57158         global and hidden.
57159         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
57160         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
57161         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
57162         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
57163         Likewise.
57164         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
57165         Likewise.
57166         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
57167         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
57168         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
57169         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
57170         ifunc-impl-list.c.
57171         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
57172         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
57173         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
57174         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
57175         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
57176         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
57177         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
57178         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
57179         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
57180         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
57181         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
57182         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
57183         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
57184         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
57185         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
57186         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
57187         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
57188         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
57189         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
57190         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
57191         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
57192         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
57193         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
57194         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
57195         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
57196         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
57197         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
57198         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
57199         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
57200         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
57201         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
57202         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
57203         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
57204         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
57205         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
57206         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
57207         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
57208         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
57209         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
57210         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
57211         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
57212
57213         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
57214         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
57215         * include/ifunc-impl-list.h: New file.
57216         * misc/ifunc-impl-list.c: Likewise.
57217         * misc/Makefile (routines): Add ifunc-impl-list.
57218         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
57219         * string/test-string.h: Include <ifunc-impl-list.h>.
57220         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
57221         TEST_NAME]: New variables.
57222         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
57223         are defined.
57224         (test_init): Call __libc_ifunc_impl_list to initialize
57225         func_list if TEST_IFUNC and TEST_NAME are defined.
57226
57227         * string/Makefile (strop-tests): Add bcopy and bzero.
57228         * string/test-bcopy.c: New file.
57229         * string/test-bzero.c: Likewise.
57230         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
57231         defined.
57232         * string/test-memset.c: Support bzero test if TEST_BZERO is
57233         defined.
57234         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
57235         __libc_memmove.
57236         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
57237         __libc_memset.
57238         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
57239         of memset.
57240
57241 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
57242
57243         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
57244         * configure: Regenerated.
57245
57246         * Makeconfig (+link-static-before-libc): Don't include
57247         $(link-static-libc).
57248
57249         * libio/libio.h (_IO_pos_t): Remove.
57250
57251 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57252
57253         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
57254         McGrath.
57255
57256 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57257
57258         * crypt/crypt-entry.c: Include fips-private.h.
57259         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
57260         * crypt/md5c-test.c (main): Tolerate disabled MD5.
57261         * sysdeps/unix/sysv/linux/fips-private.h: New file.
57262         * sysdeps/generic/fips-private.h: New file, dummy fallback.
57263
57264 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57265
57266         * crypt/crypt-private.h: Include stdbool.h.
57267         (_ufc_setup_salt_r): Return bool.
57268         * crypt/crypt-entry.c: Include errno.h.
57269         (__crypt_r): Return NULL with EINVAL for bad salt.
57270         * crypt/crypt_util.c (bad_for_salt): New.
57271         (_ufc_setup_salt_r): Check that salt is long enough and within
57272         the specified alphabet.
57273         * crypt/badsalttest.c: New file.
57274         * crypt/Makefile (tests): Add it.
57275         ($(objpfx)badsalttest): New.
57276
57277 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
57278
57279         * NEWS: Add entry for BZ #14602.
57280
57281 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
57282
57283         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
57284         type-generic.
57285         * math/libm-test.inc: Update comment listing what functions and
57286         macros are tested.
57287         (isgreater_test): New function.
57288         (isgreaterequal_test): Likewise.
57289         (isless_test): Likewise.
57290         (islessequal_test): Likewise.
57291         (islessgreater_test): Likewise.
57292         (isunordered_test): Likewise.
57293         (main): Call the new functions.
57294
57295 2012-10-09  Roland McGrath  <roland@hack.frob.com>
57296
57297         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
57298         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
57299         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
57300         * sysdeps/i386/configure: Regenerated.
57301         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
57302         * sysdeps/mach/configure: Regenerated.
57303         * sysdeps/mach/hurd/configure: Regenerated.
57304         * sysdeps/powerpc/configure: Regenerated.
57305         * sysdeps/powerpc/powerpc32/configure: Regenerated.
57306         * sysdeps/powerpc/powerpc64/configure: Regenerated.
57307         * sysdeps/s390/s390-32/configure: Regenerated.
57308         * sysdeps/s390/s390-64/configure: Regenerated.
57309         * sysdeps/sh/configure: Regenerated.
57310         * sysdeps/sparc/configure: Regenerated.
57311         * sysdeps/unix/sysv/linux/configure: Regenerated.
57312         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
57313         * sysdeps/x86_64/configure: Regenerated.
57314
57315         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
57316         defined.  Don't check if MAP is NULL.
57317
57318 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
57319
57320         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
57321         (_G_stat64): Likewise.
57322         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
57323         (_G_stat64): Likewise.
57324         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
57325         instead of struct _G_stat64.
57326         * libio/fileops.c (mmap_remap_check): Likewise.
57327         (decide_maybe_mmap): Likewise.
57328         (_IO_new_file_seekoff): Likewise.
57329         (_IO_file_stat): Likewise.
57330         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
57331         _G_off64_t.
57332         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
57333         instead of struct _G_stat64.
57334         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57335
57336 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
57337
57338         [BZ #14602]
57339         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57340         Replace with ...
57341         (CHECK_EOL): New macro.
57342         (two_way_short_needle): Check beginning of haystack for EOL.  Use
57343         CHECK_EOL.
57344         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57345         Replace with CHECK_EOL.
57346         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57347         Replace with CHECK_EOL.
57348
57349 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
57350
57351         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
57352         type-generic.
57353         * math/libm-test.inc: Update comment listing what functions and
57354         macros are tested.
57355         (finite_test): New function.
57356         (isinf_test): Likewise.
57357         (isnan_test): Likewise.
57358         (fpclassify_test): Test subnormal input.
57359         (isfinite_test): Likewise.
57360         (isnormal_test): Likewise.
57361         (main): Call the new functions.
57362
57363 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
57364
57365         [BZ #14660]
57366         * Makerules (%.dynsym): Force C locale when running
57367         $(OBJDUMP) --dynamic-syms.
57368
57369 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
57370
57371         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
57372         <stdint.h>.
57373
57374 2012-10-06  David S. Miller  <davem@davemloft.net>
57375
57376         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
57377         upper 32-bits of the length value in %o2 since we use branch-on-register
57378         tests which consider the entire 64-bit register.
57379
57380 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
57381
57382         * string/test-strstr.c (check2): Add a test for page boundary.
57383
57384 2012-10-05  David S. Miller  <davem@davemloft.net>
57385
57386         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
57387         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
57388         file.
57389         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57390         sysdep_routines.
57391         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57392         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
57393         and bzero when HWCAP_SPARC_CRYPTO is present.
57394
57395 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
57396
57397         [BZ #14602]
57398         * string/test-strstr.c (check2): New function.
57399         (test_main): Call check2.
57400
57401         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
57402         and bug-strchr1.
57403         * string/bug-strcasestr1.c (do_test): Moved to ...
57404         * string/test-strcasestr.c (check1): Here.  New function.
57405         (do_one_test): Break out result checking code into ...
57406         (check_result): This.  New function.
57407         (do_one_test): Call check_result.
57408         (test_main): Call check1.
57409         * string/bug-strchr1.c (do_test): Moved to ...
57410         * string/test-strchr.c (check1): Here.  New function.
57411         (do_one_test): Break out result checking code into ...
57412         (check_result): This.  New function.
57413         (do_one_test): Call check_result.
57414         (test_main): Call check1.
57415         * string/bug-strstr1.c (main): Moved to ...
57416         * string/test-strstr.c (check1): Here.  New function.
57417         (do_one_test): Break out result checking code into ...
57418         (check_result): This.  New function.
57419         (do_one_test): Call check_result.
57420         (test_main): Call check1.
57421         * string/bug-strcasestr1.c: Removed.
57422         * string/bug-strchr1.c: Likewise.
57423         * string/bug-strstr1.c: Likewise.
57424
57425         * elf/Makefile (dl-routines): Add hwcaps.
57426         * elf/dl-support.c (_dl_important_hwcaps): Removed.
57427         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
57428         (_dl_important_hwcaps): Moved to ...
57429         * elf/dl-hwcaps.c: Here.  New file.
57430         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
57431
57432         [BZ #14557]
57433         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
57434         if IS_IN_rtld isn't defined.
57435
57436         * elf/dl-support.c (_dl_sysinfo_map): New.
57437         Include "get-dynamic-info.h" and "setup-vdso.h".
57438         (_dl_non_dynamic_init): Call setup_vdso.
57439         * elf/dynamic-link.h: Don't include <assert.h>.
57440         (elf_get_dynamic_info): Moved to ...
57441         * elf/get-dynamic-info.h: Here.  New file.
57442         * elf/dynamic-link.h: Include "get-dynamic-info.h".
57443         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
57444         * elf/setup-vdso.h: Here.  New file.
57445         * elf/rtld.c: Include "setup-vdso.h".
57446         (dl_main): Call setup_vdso.
57447
57448 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
57449
57450         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
57451         creal in comment listing functions tested.  List finite, isinf,
57452         isnan, isless, islessequal, isgreater, isgreaterequal,
57453         islessgreater, isunordered, lgamma_r and pow10 as functions and
57454         macros not tested.  Mention which functions not tested are aliases
57455         for other functions.  Fix typo.  Note that signs of NaNs are not
57456         tested.
57457
57458         * scripts/config.guess: Update from config.git.
57459         * scripts/config.sub: Likewise.
57460
57461 2012-10-04  Roland McGrath  <roland@hack.frob.com>
57462
57463         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
57464         * misc/madvise.c (madvise): Renamed to __madvise.
57465         Make madvise a weak alias.
57466         * include/sys/mman.h: Declare __madvise.
57467         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
57468         * sysdeps/unix/syscalls.list
57469         (madvise): Make __madvise the strong name, and madvise a weak alias.
57470         * sysdeps/unix/sysv/linux/syscalls.list
57471         (madvise, mmap): Remove redundant entries.
57472         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
57473         * malloc/malloc.c (mtrim): Likewise.
57474         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
57475
57476 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57477
57478         * sysdeps/mach/hurd/dl-cache.c: File removed.
57479         * config.h.in (USE_LDCONFIG): New #undef.
57480         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
57481         * configure: Regenerated.
57482         * elf/Makefile (dl-routines): Add dl-cache only under
57483         [$(use-ldconfig) = yes].
57484         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
57485         cache on [USE_LDCONFIG].
57486         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
57487         [USE_LDCONFIG].
57488         * elf/rtld.c (dl_main): Likewise.
57489
57490 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
57491
57492         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
57493         _SC_LEVEL4_CACHE_LINESIZE.
57494
57495 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57496
57497         * sysdeps/unix/bsd/confstr.h: File removed.
57498
57499 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
57500
57501         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
57502         sys/sdt-config.h.
57503
57504 2012-10-02  Roland McGrath  <roland@hack.frob.com>
57505
57506         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
57507         Make 'mapoff' field ElfW(Off) rather than off_t.
57508
57509 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57510
57511         * nscd/Makefile: Remove nscd-cflags and all its users.
57512         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
57513         (CFLAGS-nonlib): Add compiler flags for nscd modules.
57514
57515         [BZ #10631]
57516         * malloc.c (malloc_printerr): Clarify error message.
57517
57518 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
57519
57520         [BZ #14648]
57521         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
57522         Set bit_FMA_Usable if FMA is supported.
57523         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
57524         macro.
57525         (bit_FMA4_Usable): Updated.
57526         (index_FMA_Usable): New macro.
57527         (CPUID_FMA): Likewise.
57528         (HAS_FMA): Defined with bit_FMA_Usable.
57529
57530 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57531
57532         * bits/types.h (__swblk_t): Type removed.
57533         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
57534         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
57535         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
57536         (__SWBLK_T_TYPE): Likewise.
57537         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
57538         (__SWBLK_T_TYPE): Likewise.
57539         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
57540         (__SWBLK_T_TYPE): Likewise.
57541         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
57542         (__SWBLK_T_TYPE): Likewise.
57543
57544 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
57545             Honza Horak <hhorak@redhat.com>
57546
57547         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
57548         (xdr_mapname): Use YPMAXMAP as maxsize.
57549         (xdr_peername): Use YPMAXPEER as maxsize.
57550         (xdr_keydat): Use YPAXRECORD as maxsize.
57551         (xdr_valdat): Use YPMAXRECORD as maxsize.
57552
57553 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57554
57555         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
57556
57557         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
57558         * csu/init-first.c: ... here.
57559         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
57560         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
57561         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
57562         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
57563         * sysdeps/i386/init-first.c: File removed.
57564         * sysdeps/sh/init-first.c: File removed.
57565
57566 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
57567
57568         [BZ #14645]
57569         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
57570         if x * y might underflow to zero and z is zero.
57571         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
57572         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57573         * math/libm-test.inc (min_subnorm_value): New variable.
57574         (fma_test): Add more tests.
57575         (fma_test_towardzero): Likewise.
57576         (fma_test_downward): Likewise.
57577         (fma_test_upward): Likewise.
57578         (initialize): Set min_subnorm_value.
57579
57580 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
57581
57582         [BZ #14638]
57583         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
57584         0 + 0.
57585         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
57586         mode for addition resulting in exact zero.
57587         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
57588         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
57589         exact 0 + 0.
57590         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
57591         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57592         * math/libm-test.inc (fma_test): Add more tests.
57593         (fma_test_towardzero): New function.
57594         (fma_test_downward): Likewise.
57595         (fma_test_upward): Likewise.
57596         (main): Call the new functions.
57597
57598 2012-09-28  David S. Miller  <davem@davemloft.net>
57599
57600         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
57601
57602 2012-09-28  Roland McGrath  <roland@hack.frob.com>
57603
57604         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
57605         instead of SIGALRM.
57606
57607         * sysdeps/gnu/_G_config.h: Moved to ...
57608         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
57609         * sysdeps/mach/hurd/_G_config.h: Moved to ...
57610         * sysdeps/generic/_G_config.h: ... here.
57611
57612         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
57613
57614         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
57615
57616         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
57617         Conditionalize target on [libnss_test1.so-version].
57618
57619         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
57620
57621         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
57622         (elfobjdir): Move out of conditionals.
57623
57624         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
57625         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
57626         (__nss_lookup_function): Conditionalize label remove_from_tree on
57627         [!DO_STATIC_NSS || SHARED], matching its only use.
57628
57629 2012-09-28  David S. Miller  <davem@davemloft.net>
57630
57631         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
57632         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
57633         file.
57634         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57635         sysdep_routines.
57636         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57637         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
57638         when HWCAP_SPARC_CRYPTO is present.
57639
57640 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57641
57642         * io/tst-mknodat.c: Create a FIFO instead of a socket.
57643
57644 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
57645
57646         [BZ #6530]
57647         * stdio-common/vfprintf.c (process_string_arg): Revert
57648         2000-07-22 change.
57649
57650 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
57651
57652         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
57653         for testcase.
57654         * stdio-common/tst-sprintf.c: Include <locale.h>
57655         (main): Test sprintf's handling of incomplete multibyte
57656         characters.
57657
57658 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
57659
57660         * elf/dl-runtime.c (VERSYMIDX): Removed.
57661         * elf/dl-version.c (VERSYMIDX): Likewise.
57662         * elf/do-rel.h (VERSYMIDX): Likewise.
57663         (VALIDX): Likewise.
57664         * elf/dynamic-link.h (VERSYMIDX): Likewise.
57665         * elf/rtld.c (VALIDX): Likewise.
57666         (ADDRIDX): Likewise.
57667         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
57668         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
57669         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
57670         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
57671         (VALIDX): Likewise.
57672         (ADDRIDX): Likewise.
57673
57674 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57675
57676         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
57677
57678 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
57679
57680         [BZ #11438]
57681         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
57682         to global scope.
57683         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
57684         addresses are in the same scope as 192.0.2/24.
57685         * posix/gai.conf: Document new scope table defaults.
57686
57687 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57688
57689         [BZ #5298]
57690         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
57691         for ftell.  Compute offsets from write pointers instead.
57692         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57693
57694 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57695
57696         [BZ #14543]
57697         * libio/Makefile (tests): New test case tst-fseek.
57698         * libio/tst-fseek.c: New test case to verify that fseek/ftell
57699         combination works in wide mode.
57700         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
57701         state when the external buffer state changes.
57702
57703 2012-09-27  David S. Miller  <davem@davemloft.net>
57704
57705         [BZ #14376]
57706         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
57707         pass reloc->r_addend in as the 'high' argument to
57708         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
57709
57710         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57711
57712 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57713
57714         * rt/tst-aio2.c: Include <pthread.h>.
57715         * rt/tst-aio3.c: Likewise.
57716
57717 2012-09-27  Steve Ellcey  <sellcey@mips.com>
57718
57719         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
57720
57721 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
57722
57723         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
57724         contents on [SHARED].
57725
57726 2012-09-26  Marek Polacek  <polacek@redhat.com>
57727
57728         [BZ #14530]
57729         [BZ #13741]
57730         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
57731         for C++ and GCC <4.3 as well as for non GCC compilers.
57732
57733 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
57734
57735         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57736
57737 2012-09-25  Roland McGrath  <roland@hack.frob.com>
57738
57739         * Makefile.in (all, install): Declare with .PHONY.
57740         Reported by Michael Hope <michael.hope@linaro.org>.
57741
57742 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
57743
57744         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
57745         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
57746         system header.
57747         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
57748         Likewise.
57749         (sydep_routines): Add the new and the internal functions.
57750         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
57751         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
57752         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
57753         (GLIBC_2.17): Add the new function.
57754         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
57755         (GLIBC_2.17): Likewise.
57756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
57757         (GLIBC_2.17): Likewise.
57758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
57759         (GLIBC_2.17): Likewise.
57760         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
57761
57762 2012-09-25  Alan Modra  <amodra@gmail.com>
57763
57764         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
57765         Add release barrier before setting once_control to say
57766         initialisation is done.  Add hints on lwarx.  Use macro in
57767         place of isync.
57768         (clear_once_control): Add release barrier.
57769
57770 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57771
57772         [BZ #13629]
57773         * math/s_clog.c (__clog): Handle more values close to |z| = 1
57774         specially.
57775         * math/s_clog10.c (__clog10): Likewise.
57776         * math/s_clog10f.c (__clog10f): Likewise.
57777         * math/s_clog10l.c (__clog10l): Likewise.
57778         * math/s_clogf.c (__clogf): Likewise.
57779         * math/s_clogl.c (__clogl): Likewise.
57780         * math/Makefile (libm-calls): Add x2y2m1.
57781         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
57782         (__x2y2m1): Likewise.
57783         (__x2y2m1l): Likewise.
57784         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
57785         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
57786         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
57787         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57788         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
57789         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
57790         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
57791         * sysdeps/i386/fpu/libm-test-ulps: Update.
57792         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57793
57794         [BZ #14621]
57795         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
57796         int as type of variable DEPTH.
57797         (glob): Use size_t instead of int as type of variables NEWCOUNT
57798         and OLD_PATHC.
57799
57800 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57801
57802         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57803         Add s_sincosf-sse2.
57804         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
57805         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
57806         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
57807         macros for using routine as __sincosf_ia32.
57808         Use macro for function declaration and weak_alias.
57809         * sysdeps/i386/fpu/libm-test-ulps: Update.
57810
57811         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
57812         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57813
57814         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
57815         subnormal argument.
57816         * math/s_cexpf.c (__cexpf): Likewise.
57817         * math/s_csinf.c (__csinf): Likewise.
57818         * math/s_csinhf.c (__csinhf): Likewise.
57819         * math/s_ctanf.c (__ctanf): Likewise.
57820         * math/s_ctanhf.c (__ctanhf): Likewise.
57821         * math/s_ccosh.c (__ccoshf): Likewise.
57822         * math/s_cexp.c (__cexpl): Likewise.
57823         * math/s_csin.c (__csin): Likewise.
57824         * math/s_csinh.c (__csinh): Likewise.
57825         * math/s_ctan.c (__ctan): Likewise.
57826         * math/s_ctanh.c (ctanh): Likewise.
57827         * math/s_ccoshl.c (__ccoshl): Likewise.
57828         * math/s_cexpl.c (__cexpl): Likewise.
57829         * math/s_csinl.c (__csinl): Likewise.
57830         * math/s_csinhl.c (__csinhl): Likewise.
57831         * math/s_ctanl.c (__ctanl): Likewise.
57832         * math/s_ctanhl.c (__ctanhl): Likewise.
57833
57834 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57835
57836         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
57837         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
57838         (_IO_off_t): Define to __off_t, not _G_off_t.
57839         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
57840         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
57841         (_IO_wint_t): Define to wint_t, not _G_wint_t.
57842         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
57843         type of __dummy and __dummy2 fields.
57844         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
57845         (_G_ssize_t): Likewise.
57846         (_G_off_t): Likewise.
57847         (_G_pid_t): Likewise.
57848         (_G_uid_t): Likewise.
57849         (_G_wchar_t): Likewise.
57850         (_G_wint_t): Likewise.
57851         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
57852         (_G_ssize_t): Likewise.
57853         (_G_off_t): Likewise.
57854         (_G_pid_t): Likewise.
57855         (_G_uid_t): Likewise.
57856         (_G_wchar_t): Likewise.
57857         (_G_wint_t): Likewise.
57858         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
57859         (_G_ssize_t): Likewise.
57860         (_G_off_t): Likewise.
57861         (_G_pid_t): Likewise.
57862         (_G_uid_t): Likewise.
57863         (_G_wchar_t): Likewise.
57864         (_G_wint_t): Likewise.
57865
57866 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57867
57868         * malloc/arena.c: Include malloc-sysdep.h.
57869         (shrink_heap): Use check_may_shrink_heap to decide if madvise
57870         is sufficient to shrink the heap or an unmap is needed.
57871         * sysdeps/generic/malloc-sysdep.h: New file.  Define
57872         new function check_may_shrink_heap.
57873         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
57874         new function check_may_shrink_heap.
57875
57876 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57877
57878         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
57879         comments.
57880
57881 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
57882
57883         * catgets/test-gencat.sh: Add "set -e".
57884         * elf/tst-pathopt.sh: Likewise.
57885         * grp/tst_fgetgrent.sh: Likewise.
57886         * iconvdata/run-iconv-test.sh: Likewise.
57887         * intl/tst-gettext.sh: Likewise.
57888         * intl/tst-gettext2.sh: Likewise.
57889         * intl/tst-gettext4.sh: Likewise.
57890         * intl/tst-gettext6.sh: Likewise.
57891         * intl/tst-translit.sh: Likewise.
57892         * io/ftwtest-sh: Likewise.
57893         * libio/test-freopen.sh: Likewise.
57894         * malloc/tst-mtrace.sh: Likewise.
57895         * posix/globtest.sh: Likewise.
57896         * posix/tst-getconf.sh: Likewise.
57897         * posix/wordexp-tst.sh: Likewise.
57898         * stdio-common/tst-printf.sh: Likewise.
57899         * stdio-common/tst-unbputc.sh: Likewise.
57900         * stdlib/tst-fmtmsg.sh: Likewise.
57901         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57902         * catgets/Makefile: Do not specify -e option when running
57903         testsuite shell scripts.
57904         * elf/Makefile: Likewise.
57905         * grp/Makefile: Likewise.
57906         * iconvdata/Makefile: Likewise.
57907         * intl/Makefile: Likewise.
57908         * io/Makefile: Likewise.
57909         * libio/Makefile: Likewise.
57910         * malloc/Makefile: Likewise.
57911         * posix/Makefile: Likewise.
57912         * stdio-common/Makefile: Likewise.
57913         * stdlib/Makefile: Likewise.
57914         * sysdeps/x86_64/Makefile: Likewise.
57915
57916         * io/ftwtest-sh: Add copyright header.
57917         * posix/globtest.sh: Likewise.
57918         * posix/tst-getconf.sh: Likewise.
57919         * posix/wordexp-tst.sh: Likewise.
57920         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57921
57922 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
57923
57924         [BZ #13679]
57925         * Makeconfig (+link): Defined as $(+link-static) if
57926         $(build-shared) isn't yes.
57927         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
57928         isn't yes.
57929         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
57930
57931         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
57932
57933         [BZ #14562]
57934         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
57935         new chunk size with MALLOC_ALIGN_MASK.
57936
57937 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
57938
57939         [BZ #5044]
57940         * stdio-common/printf_fphex.c: Include <stdbool.h> and
57941         <rounding-mode.h>.
57942         (__printf_fphex): Determine rounding using get_rounding_mode and
57943         round_away.
57944         * stdio-common/tst-printf-round.c (struct hex_test): New
57945         structure.
57946         (hex_tests): New variable.
57947         (test_hex_in_one_mode): New function.
57948         (do_test): Also run tests for hex float output.
57949
57950 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
57951
57952         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57953         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57954         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
57955         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57956         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57957         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
57958         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57959         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57960
57961 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
57962
57963         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
57964         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
57965         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
57966         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
57967
57968 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
57969
57970         [BZ #14579]
57971         * elf/rtld.c (dl_main): Limit the check for self loading to normal
57972         mode only.
57973         * elf/tst-rtld-load-self.sh: New test.
57974         * elf/Makefile: Run it.
57975
57976 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
57977
57978         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
57979         (tst-writev-ENV): Remove.
57980         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
57981
57982 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
57983
57984         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
57985
57986 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
57987
57988         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
57989         unconditional.
57990         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
57991         Likewise.
57992         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
57993         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
57994         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
57995         Likewise.
57996
57997 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
57998
57999         [BZ #14587]
58000         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
58001         * config.make.in (have-cpp-asm-debuginfo): Removed.
58002         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
58003         * configure: Regenerated.
58004
58005 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
58006
58007         [BZ #5044]
58008         * stdio-common/printf_fp.c: Include <stdbool.h> and
58009         <rounding-mode.h>.
58010         (___printf_fp): Determine rounding using get_rounding_mode and
58011         round_away.
58012         * stdio-common/tst-printf-round.c: New file.
58013         * stdio-common/Makefile (tests): Add tst-printf-round.
58014         (link-libm): New variable.
58015         ($(objpfx)tst-printf-round): Depend in $(link-libm).
58016
58017 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
58018
58019         [BZ #14576]
58020         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
58021         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
58022         Likewise.
58023         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
58024         Likewise.
58025
58026 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
58027
58028         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
58029         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58030         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58031         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58032
58033 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
58034
58035         [BZ #14518]
58036         * include/rounding-mode.h: New file.
58037         * sysdeps/generic/get-rounding-mode.h: Likewise.
58038         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
58039         * stdlib/strtod_l.c: Include <rounding-mode.h>.
58040         (MAX_VALUE): New macro.
58041         (MIN_VALUE): Likewise.
58042         (overflow_value): New function.
58043         (underflow_value): Likewise.
58044         (round_and_return): Use overflow_value and underflow_value to
58045         determine return values in overflow and underflow cases.  Use
58046         round_away to determine rounding depending on rounding mode.
58047         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
58048         determine return values in overflow and underflow cases.
58049         * stdlib/tst-strtod-round.c: Include <fenv.h>.
58050         (struct test_results): New structure.
58051         (struct test): Use struct test_results to store expected results
58052         for all rounding modes.
58053         (TEST): Include expected results for all rounding modes.
58054         (test_in_one_mode): New function.
58055         (do_test): Use test_in_one_mode to compute and check results.
58056         Check results for all rounding modes.
58057         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
58058         $(link-libm).
58059
58060 2012-12-09  Allan McRae  <allan@archlinux.org>
58061
58062         * sysdeps/i386/fpu/libm-test-ulps: Update
58063
58064 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
58065
58066         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
58067         (_G_int32_t): Likewise.
58068         (_G_uint16_t): Likewise.
58069         (_G_uint32_t): Likewise.
58070         (_G_HAVE_BOOL): Likewise.
58071         (_G_HAVE_ATEXIT): Likewise.
58072         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58073         (_G_HAVE_IO_FILE_OPEN): Likewise.
58074         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
58075         (_G_int32_t): Likewise.
58076         (_G_uint16_t): Likewise.
58077         (_G_uint32_t): Likewise.
58078         (_G_HAVE_BOOL): Likewise.
58079         (_G_HAVE_ATEXIT): Likewise.
58080         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58081         (_G_HAVE_IO_FILE_OPEN): Likewise.
58082         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
58083         (_G_int32_t): Likewise.
58084         (_G_uint16_t): Likewise.
58085         (_G_uint32_t): Likewise.
58086         (_G_HAVE_BOOL): Likewise.
58087         (_G_HAVE_ATEXIT): Likewise.
58088         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58089         (_G_HAVE_IO_FILE_OPEN): Likewise.
58090
58091 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
58092
58093         * csu/libc-tls.c: Update copyright years.
58094
58095 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
58096
58097         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
58098         [!_G_USING_THUNKS]: Remove conditional code.
58099         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
58100         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
58101
58102         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
58103         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
58104         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58105         (_G_VTABLE_LABEL_PREFIX): Likewise.
58106         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58107         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58108         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58109         (_G_VTABLE_LABEL_PREFIX): Likewise.
58110         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
58111         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58112         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58113         (_G_VTABLE_LABEL_PREFIX): Likewise.
58114         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
58115
58116 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
58117
58118         * libio/Makefile: Include ../Makeconfig before tests.
58119         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
58120         only if $(build-shared) is yes.
58121
58122         * iconv/gconv_db.c: Update copyright years.
58123
58124 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58125
58126         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
58127         unwind info if defined PIC. Fix special cases description.
58128         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
58129
58130         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
58131         DP_HI_MASK entry.
58132         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
58133
58134 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
58135
58136         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
58137
58138         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
58139         is NULL.
58140
58141         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
58142         (LDLIBS-tst-chk4): This.
58143         (LDFLAGS-tst-chk5): Renamed to ...
58144         (LDLIBS-tst-chk5): This.
58145         (LDFLAGS-tst-chk6): Renamed to ...
58146         (LDLIBS-tst-chk6): This.
58147         (LDFLAGS-tst-lfschk4): Renamed to ...
58148         (LDLIBS-tst-lfschk4): This.
58149         (LDFLAGS-tst-lfschk5): Renamed to ...
58150         (LDLIBS-tst-lfschk5): This.
58151         (LDFLAGS-tst-lfschk6): Renamed to ...
58152         (LDLIBS-tst-lfschk6): This.
58153
58154         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
58155         on $(common-objpfx)soversions.mk.
58156
58157 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
58158
58159         [BZ #10014]
58160         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
58161         example host name.
58162
58163 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
58164
58165         * malloc/arena.c (arena_get_retry): New function that gets
58166         another arena for the caller to try its request on.
58167         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
58168         current arena cannot fulfill the request.
58169         (__libc_memalign): Likewise.
58170         (__libc_memalign): Likewise.
58171         (__libc_pvalloc): Likewise.
58172         (__libc_calloc): Likewise.
58173
58174 2012-09-05  John Tobey  <john.tobey@gmail.com>
58175
58176         [BZ #13542]
58177         * manual/arith.texi (Operations on Complex): Fix description
58178         of carg branch cut.
58179
58180 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
58181
58182         [BZ #10014]
58183         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
58184         host name.
58185
58186         [BZ #10038]
58187         * manual/memory.texi (Memory): Make order of menu items match
58188         order of sections.
58189
58190 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58191
58192         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
58193         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
58194         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
58195
58196 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58197
58198         * csu/libc-tls.c (static_dtv): Renamed to ...
58199         (_dl_static_dtv): This.  Make it global.
58200         (_dl_initial_dtv): Removed.
58201         (__libc_setup_tls): Updated.
58202         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
58203         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
58204         DL_INITIAL_DTV.
58205
58206 2012-09-06  Petr Machata  <pmachata@redhat.com>
58207
58208         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
58209         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
58210         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
58211         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
58212
58213 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58214
58215         [BZ #14545]
58216         * csu/libc-tls.c (_dl_initial_dtv): New variable.
58217         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
58218         freeing dtv[-1].
58219
58220 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58221
58222         [BZ #14544]
58223         * Makeconfig (link-static-before-libc): Replace $(+prector)
58224         with $(+prectorT).
58225         (link-static-after-libc): Replace $(+postctor) with
58226         $(+postctorT).
58227         (link-bounded): Replace $(+prector)/$(+postctor) with
58228         $(+prectorT)/$(+postctorT).
58229         (+prectorT): New macro.
58230         (+postctorT): Likewise.
58231
58232 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
58233
58234         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
58235         (round_str): Handle values above the maximum for IBM long double
58236         as inexact.
58237         * stdlib/tst-strtod-round.c (tests): Regenerated.
58238
58239 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58240
58241         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
58242         assembler flag.
58243         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
58244         zarch_nohighgprs around the zarch optimized routines.
58245         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
58246         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
58247         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
58248         for zarch.
58249
58250 2012-09-05  David S. Miller  <davem@davemloft.net>
58251
58252         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58253
58254         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
58255         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
58256         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
58257         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
58258         entries.
58259
58260 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58261
58262         * malloc/arena.c: Fold copyright years.
58263         * malloc/mcheck.c, malloc/memusage.c: Likewise.
58264
58265 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58266
58267         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
58268
58269 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58270
58271         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
58272
58273 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58274
58275         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
58276         change internal state upon failure.
58277
58278 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58279
58280         * malloc/mcheck.c (mcheck_check_all): Fix typo.
58281         * malloc/memusage.c (mmap): Likewise.
58282         (mmap64, mremap): Likewise.  Adjust name in comment.
58283
58284 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
58285
58286         * libio/fileops.c: Fix typos in comments.
58287         * libio/oldfileops.c: Likewise.
58288         * libio/wfileops.c: Likewise.
58289
58290 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
58291
58292         [BZ #1349]
58293         * malloc/Makefile (tests): Add tst-malloc-usable test case.
58294         (tst-malloc-usable-ENV): Set environment for test case.
58295         * malloc/hooks.c (malloc_check_get_size): New function to get
58296         requested size.
58297         * malloc/malloc.c (musable): Use malloc_check_get_size.
58298         * malloc/tst-malloc-usable.c: New test case.
58299
58300 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58301
58302         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
58303
58304 2012-09-05  Allan McRae  <allan@archlinux.org>
58305
58306         [BZ #13966]
58307         * configure.in (CXX_SYSINCLUDES): Use compiler output to
58308         determine header location.
58309         * configure: Regenerated.
58310
58311 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58312
58313         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
58314         float format.
58315         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
58316         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
58317         format.
58318         (test): Regenerate.
58319
58320 2012-09-04  David S. Miller  <davem@davemloft.net>
58321
58322         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
58323         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
58324         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
58325
58326 2012-09-04  Florian Weimer  <fweimer@redhat.com>
58327
58328         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
58329         failures.
58330
58331         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
58332
58333 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
58334
58335         [BZ #9914]
58336         * libio/iogetdelim.c: Include <limits.h>.
58337         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
58338         + len + 1 would overflow.
58339
58340 2012-09-03  Andreas Jaeger  <aj@suse.de>
58341
58342         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58343         * sysdeps/i386/fpu/libm-test-ulps: Update.
58344
58345 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58346
58347         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
58348         Add s_sinf-sse2, s_conf-sse2.
58349
58350         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
58351         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
58352         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
58353         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
58354
58355         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
58356         for using routine as __sinf_ia32.
58357         Use macro for function declaration and weak_alias.
58358         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
58359         for using routine as __cosf_ia32.
58360         Use macro for function declaration and weak_alias.
58361
58362         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
58363         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
58364
58365         * sysdeps/x86_64/fpu/s_sinf.S: New file.
58366         * sysdeps/x86_64/fpu/s_cosf.S: New file.
58367         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58368
58369         * math/libm-test.inc (cos_test): Add more test cases.
58370         (sin_test): Likewise.
58371         (sincos_test): Likewise.
58372
58373 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58374
58375         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
58376         (IFUNC_RESOLVE): Make pointers to the specialized implementations
58377         hidden.
58378         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
58379
58380 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
58381
58382         [BZ #14538]
58383         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
58384         first element of the GOT.
58385         (elf_machine_load_address): Return the difference between
58386         the runtime address of _DYNAMIC and elf_machine_dynamic ().
58387
58388 2012-09-01  Allan McRae  <allan@archlinux.org>
58389
58390         [BZ #13412]
58391         * configure.in (AWK): Require gawk version 3.0 or later.
58392         * configure: Regenerated.
58393
58394 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
58395
58396         * sysdeps/unix/sysv/linux/kernel-features.h
58397         (__ASSUME_POSIX_CPU_TIMERS): Remove.
58398         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58399         [__NR_clock_getres]: Make code unconditional.
58400         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
58401         (clock_getcpuclockid): Remove code left unreachable by removal of
58402         conditionals.
58403         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
58404         code unconditional.
58405         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58406         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58407         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
58408         Make code unconditional.
58409         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58410         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58411         * sysdeps/unix/sysv/linux/clock_settime.c
58412         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
58413         conditional code.
58414         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
58415         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58416
58417 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
58418
58419         [BZ #14476]
58420         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
58421         scripts/test-installation.pl.
58422
58423         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
58424         and $ld_so_version if it is set.
58425
58426 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
58427
58428         [BZ #14516]
58429         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
58430         failure if reading from procfs failed.
58431         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
58432
58433 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58434
58435         * sysdeps/unix/sysv/linux/kernel-features.h
58436         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
58437         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58438         Remove conditional code.
58439         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58440         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
58441         Remove conditional code.
58442         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58443         * sysdeps/unix/sysv/linux/i386/fxstat.c
58444         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58445         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58446         * sysdeps/unix/sysv/linux/i386/fxstatat.c
58447         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58448         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58449         * sysdeps/unix/sysv/linux/i386/lxstat.c
58450         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58451         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58452         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
58453         Remove conditional code.
58454         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58455         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58456         Remove conditional code.
58457         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58458         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
58459         <kernel-features.h>.
58460         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
58461         Remove.
58462         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
58463         Remove conditional code.
58464         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58465         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
58466         Remove conditional.
58467
58468 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
58469
58470         [BZ #5400]
58471         * NEWS: Add fixed bug number.
58472
58473 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58474
58475         [BZ #14519]
58476         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
58477         underflowing exponent in case of negative sign.
58478         * stdlib/tst-strtod-round-data: Add more tests.
58479         * stdlib/tst-strtod-round.c (tests): Regenerated.
58480
58481         [BZ #3479]
58482         * stdlib/strtod_l.c (NDIG): Remove.
58483         (HEXNDIG): Likewise.
58484         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
58485         smallest representable value.
58486         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
58487         lie within an exact representation of 1/2 ulp of the result.
58488         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
58489         unconditionally.
58490         (TENS_P9_IDX): Define unconditionally.
58491         (TENS_P9_SIZE): Likewise.
58492         (TENS_P10_IDX): Likewise.
58493         (TENS_P10_SIZE): Likewise.
58494         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
58495         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
58496         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
58497         entries for 10^2^13 and 10^2^14.
58498         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
58499         (TENS_P13_IDX): Define.
58500         (TENS_P13_SIZE): Likewise.
58501         (TENS_P14_IDX): Likewise.
58502         (TENS_P14_SIZE): Likewise.
58503         (_fpioconst_pow10): Change array size to
58504         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
58505         unconditional.
58506         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
58507         1024]: Add entries for 10^2^13 and 10^2^14.
58508         [LAST_POW10 > _LAST_POW10]: Remove #error.
58509         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
58510         (_fpioconst_pow10): Change array size to
58511         FPIOCONST_POW10_ARRAY_SIZE.
58512         * stdlib/gen-fpioconst.c: New file.
58513         * stdlib/gen-tst-strtod-round.c: Likewise.
58514         * stdlib/tst-strtod-round-data: Likewise.
58515         * stdlib/tst-strtod-round.c: Likewise.
58516         * stdlib/Makefile (tests): Add tst-strtod-round.
58517
58518         [BZ #14459]
58519         * stdlib/strtod_l.c: Include <stdint.h>.
58520         (NDEBUG): Do not define.
58521         (round_and_return): Change EXPONENT parameter to type intmax_t.
58522         Rearrange calculations to avoid internal overflow possibilities.
58523         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
58524         Rearrange calculations to avoid internal overflow possibilities.
58525         Assert that number fits inside MPNSIZE limbs.
58526         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
58527         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
58528         calculations and add assertions to avoid internal overflow
58529         possibilities.  Add casts to avoid signed/unsigned operations.
58530         * stdlib/tst-strtod-overflow.c: New file.
58531         * stdlib/Makefile (tests): Add tst-strtod-overflow.
58532
58533 2012-08-25  Marek Polacek  <polacek@redhat.com>
58534
58535         * time/time.h: Fix some typos in comments.
58536
58537 2012-08-23  Roland McGrath  <roland@hack.frob.com>
58538
58539         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
58540         * posix/tst-rfc3484-2.c: Likewise.
58541         * posix/tst-rfc3484-3.c: Likewise.
58542
58543 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
58544
58545         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
58546         (EF_ARM_ABI_FLOAT_HARD): Likewise.
58547
58548 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
58549
58550         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
58551         #include of fxstatat64.c.
58552
58553 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58554
58555         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
58556         * shadow/getspent_r.c: Likewise.
58557         * shadow/getspnam.c: Likewise.
58558         * shadow/getspnam_r.c: Likewise.
58559         * gshadow/getsgent.c: Likewise.
58560         * gshadow/getsgent_r.c: Likewise.
58561         * gshadow/getsgnam.c: Likewise.
58562         * gshadow/getsgnam_r.c: Likewise.
58563         * inet/getnetbyad.c: Likewise.
58564         * inet/getnetbyad_r.c: Likewise.
58565         * inet/getnetbynm.c: Likewise.
58566         * inet/getnetbynm_r.c: Likewise.
58567         * inet/getnetent.c: Likewise.
58568         * inet/getnetent_r.c: Likewise.
58569         * inet/getproto.c: Likewise.
58570         * inet/getproto_r.c: Likewise.
58571         * inet/getprtent.c: Likewise.
58572         * inet/getprtent_r.c: Likewise.
58573         * inet/getprtname.c: Likewise.
58574         * inet/getprtname_r.c: Likewise.
58575         * inet/getrpcbyname.c: Likewise.
58576         * inet/getrpcbyname_r.c: Likewise.
58577         * inet/getrpcbynumber.c: Likewise.
58578         * inet/getrpcbynumber_r.c: Likewise.
58579         * inet/getrpcent.c: Likewise.
58580         * inet/getrpcent_r.c: Likewise.
58581         * inet/getaliasent.c: Likewise.
58582         * inet/getaliasent_r.c: Likewise.
58583         * inet/getaliasname.c: Likewise.
58584         * inet/getaliasname_r.c: Likewise.
58585         * nscd/getgrgid_r.c: Likewise.
58586         * nscd/getgrnam_r.c: Likewise.
58587         * nscd/gethstbyad_r.c: Likewise.
58588         * nscd/gethstbynm3_r.c: Likewise.
58589         * nscd/getpwnam_r.c: Likewise.
58590         * nscd/getpwuid_r.c: Likewise.
58591         * nscd/getsrvbynm_r.c: Likewise.
58592         * nscd/getsrvbypt_r.c: Likewise.
58593         * nscd/gai.c: Likewise.
58594
58595         * configure.in (build_nscd): New substituted variable, set
58596         by --disable-build-nscd and defaults to $use_nscd.
58597         * configure: Regenerated.
58598         * config.make.in (build-nscd): New substituted variable.
58599         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
58600         Change conditional to require [$(build-nscd) = yes] as well.
58601         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
58602
58603         [BZ# 13696]
58604         * configure.in (use_nscd): New substituted variable, set by
58605         --disable-nscd.  If enabled, define USE_NSCD.
58606         * configure: Regenerated.
58607         * config.h.in: Add USE_NSCD.
58608         * config.make.in (use-nscd): New substituted variable.
58609         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
58610         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
58611         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
58612         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
58613         (CFLAGS-getgrnam_r.c): Likewise.
58614         (CFLAGS-initgroups.c): Likewise.
58615         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
58616         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
58617         Variables removed.
58618         * inet/getnetgrent_r.c
58619         (nscd_setnetgrent): New function, broken out of ...
58620         (setnetgrent): ... here.  Call it.
58621         (innetgr): Conditionalize nscd bits on [USE_NSCD].
58622         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
58623         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
58624         * nscd/Makefile (routines, aux): Move definitions after include of
58625         Makeconfig.  Conditionalize on [$(use-nscd) != no].
58626         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
58627         Conditionalize on [USE_NSCD].
58628         (is_nscd, nscd_init_cb): Likewise.
58629         (nss_load_library): Conditionalize init callback on [USE_NSCD].
58630         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
58631         * nss/nss_db/db-init.c: Likewise.
58632         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
58633         [USE_NSCD].
58634         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
58635         (make_request): Use it.
58636         (cache_valid_p): New function.
58637         (__check_pf): Use it.
58638         * NEWS: Add item for --disable-nscd.
58639
58640 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
58641
58642         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
58643         to support sed >= 4.2.1-20-ga9bf076.
58644         * configure: Regenerated.
58645
58646 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58647
58648         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
58649         Conditionalize whole body on [IREL].
58650
58651 2012-08-22  Jeff Law <law@redhat.com>
58652
58653         [BZ #14505]
58654         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
58655         if the family is PF_UNSPEC.
58656
58657 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
58658
58659         * Makerules (lib-version): Rename from V.
58660         (install-lib-nosubdir): Change V to lib-version.
58661
58662 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
58663
58664         [BZ #14252]
58665         * powerpc32/power6/wcschr.c: New file.
58666         * powerpc32/power6/wcscpy.c: New file.
58667         * powerpc32/power6/wcsrchr.c: New file.
58668         * powerpc64/power6/wcschr.c: New file.
58669         * powerpc64/power6/wcscpy.c: New file.
58670         * powerpc64/power6/wcsrchr.c: New file.
58671
58672 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58673
58674         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
58675         (two_way_short_needle): Use it.
58676         * string/strstr.c (AVAILABLE1_USES_J): Define.
58677         * string/strcasestr.c: Likewise.
58678
58679         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
58680         array references.
58681         * string/strcasestr.c (TOLOWER): Make side-effect safe.
58682
58683         [BZ #11607]
58684         * NEWS: Add an entry.
58685         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
58686         define their defaults.
58687         (two_way_short_needle): Detect end-of-string on-the-fly.
58688         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
58689         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
58690         * string/bug-strcasestr1.c: New test.
58691         * string/Makefile: Run it.
58692
58693 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58694
58695         [BZ #11607]
58696         * string/str-two-way.h (two_way_short_needle): Optimize matching of
58697         the first character.
58698
58699 2012-08-21  Roland McGrath  <roland@hack.frob.com>
58700
58701         * csu/elf-init.c (__libc_csu_irel): Function removed.
58702         * csu/libc-start.c (apply_irel): New function.
58703         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
58704
58705 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
58706
58707         * sysdeps/unix/sysv/linux/kernel-features.h
58708         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
58709         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
58710         <kernel-features.h>.
58711         [__NR_fadvise64_64]: Make code unconditional.
58712         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
58713         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58714         !__NR_fadvise64_64)]: Likewise.
58715         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58716         !__NR_fadvise64_64))]: Likewise.
58717         [__NR_fadvise64]: Make code unconditional.
58718         [!__NR_fadvise64]: Remove conditional code.
58719         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
58720         <kernel-features.h>.
58721         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58722         unconditional.
58723         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58724         conditional code.
58725         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
58726         not include <kernel-features.h>.
58727         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58728         unconditional.
58729         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58730         conditional code.
58731         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
58732         include <kernel-features.h>.
58733         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58734         unconditional.
58735         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58736         conditional code.
58737
58738 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
58739
58740         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
58741         slight instruction rearrangements per scrollpipe analysis.
58742         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
58743
58744 2012-08-20  Roland McGrath  <roland@hack.frob.com>
58745
58746         * manual/syslog.texi (syslog; vsyslog, closelog):
58747         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
58748         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
58749
58750         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
58751         DSOCAPS to match condition on defining it.
58752
58753 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
58754
58755         * sysdeps/unix/sysv/linux/kernel-features.h
58756         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
58757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
58758         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58759         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
58761         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58762         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
58764         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58765         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58766
58767         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
58768         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
58769
58770         * sysdeps/unix/sysv/linux/kernel-features.h
58771         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
58772         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
58773         unconditional.
58774         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58775         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
58776         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58777         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58778         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
58779         Make code unconditional.
58780         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58781         (__mmap64) [!__NR_mmap2]: Likewise.
58782         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
58783         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58784         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58785         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
58786         [__NR_mmap2]: Make code unconditional.
58787         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58788         (__mmap64) [!__NR_mmap2]: Likewise.
58789
58790 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58791
58792         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
58793
58794 2012-08-18  Andreas Jaeger  <aj@suse.de>
58795
58796         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
58797
58798 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58799
58800         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
58801         * include/unistd.h (__have_sock_cloexec): Likewise.
58802         (__have_pipe2): Likewise.
58803         (__have_dup3): Likewise.
58804
58805 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58806
58807         [BZ #9685]
58808         * include/unistd.h (__have_pipe2): Change define into an extern int.
58809         (__have_dup3): Likewise.
58810         * socket/have_sock_cloexec.c: Include fcntl.h.
58811         (__have_pipe2): New variable.
58812         (__have_dup3): Likewise.
58813
58814 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
58815
58816         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
58817
58818 2012-08-17  Marek Polacek  <polacek@redhat.com>
58819
58820         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
58821         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
58822
58823 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58824
58825         * configure.in: Add AC_SUBST for sysheaders.
58826         * configure: Regenerated.
58827         * config.make.in (sysheaders): New substituted variable.
58828
58829         * sysdeps/unix/mkfifo.c: Moved ...
58830         * sysdeps/posix/mkfifo.c: ... here.
58831         * sysdeps/unix/mkfifoat.c: Moved ...
58832         * sysdeps/posix/mkfifoat.c: ... here.
58833
58834         * sysdeps/unix/utime.c: Moved ...
58835         * sysdeps/posix/utime.c: ... here.
58836
58837         * sysdeps/unix/time.c: Moved ...
58838         * sysdeps/posix/time.c: ... here.
58839         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
58840         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
58841
58842         * sysdeps/unix/nice.c: Moved ...
58843         * sysdeps/posix/nice.c: ... here.
58844
58845         * sysdeps/unix/alarm.c: Moved ...
58846         * sysdeps/posix/alarm.c: ... here.
58847
58848         * intl/Makefile ($(codeset_mo)): Depend on the input file.
58849
58850 2012-08-17  Jeff Law <law@redhat.com>
58851
58852         * intl/Makefile (codeset_mo): New variable.
58853         ($(codeset_mo)): New target.
58854         (tst-codeset.out): Depend on that.  Remove explicit rule.
58855         (tst-gettext3.out, tst-gettext5.out): Likewise.
58856         (LOCPATH-ENV, tst-codeset-ENV): New variables.
58857         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
58858         * intl/tst-codeset.sh: Remove.
58859         * intl/tst-gettext3.sh: Likewise.
58860         * intl/tst-gettext5.sh: Likewise.
58861
58862 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58863
58864         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
58865         * sysdeps/unix/syscalls.list: ... here.
58866
58867         * sysdeps/posix/getaddrinfo.c
58868         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
58869         (gaiconf_init, gaiconf_reload): Use them.
58870         [!_STATBUF_ST_NSEC]
58871         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
58872         Define using time_t rather than struct timespec.
58873
58874         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
58875         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
58876         Macros removed.
58877         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
58878         [!NO_THREADS].
58879         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
58880         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
58881         Likewise.
58882
58883         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
58884         __libc_cleanup_push argument.
58885
58886         * bits/param.h: New file.
58887         * misc/sys/param.h: New file.
58888         * include/sys/param.h: New file.
58889         * misc/Makefile (headers): Add bits/param.h.
58890         * sysdeps/generic/sys/param.h: File removed.
58891         * sysdeps/unix/sysv/linux/bits/param.h: New file.
58892         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
58893         * sysdeps/mach/hurd/bits/param.h: New file.
58894         * sysdeps/mach/hurd/sys/param.h: File removed.
58895
58896         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
58897         last change.
58898
58899         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
58900         [_IO_MTSAFE_IO].
58901         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
58902         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
58903         New macros.
58904
58905         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
58906         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
58907         rather than -D_IO_MTSAFE_IO conditionally.
58908         * stdio-common/Makefile (CPPFLAGS): Likewise.
58909         * wcsmbs/Makefile (CPPFLAGS): Likewise.
58910         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
58911         Use $(libio-mtsafe).
58912         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
58913         of -D_IO_MTSAFE_IO.
58914         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
58915         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
58916         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
58917         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
58918         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
58919         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
58920         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
58921         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
58922         (CFLAGS-fread_u_chk.c): Likewise.
58923         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
58924         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
58925         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
58926         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
58927         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
58928         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
58929         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
58930         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
58931         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
58932
58933         * libio/Makefile: Test [$(libc-reentrant) = yes]
58934         instead of [$(filter %REENTRANT, $(defines)) nonempty].
58935
58936         * Makeconfig
58937         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
58938         * sysdeps/pthread/configure: File removed.
58939         * sysdeps/pthread/Makeconfig: New file.
58940         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
58941         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
58942
58943 2012-08-16  Gary Benson  <gbenson@redhat.com>
58944
58945         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
58946         unmapping the first object in a namespace.
58947
58948 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58949
58950         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
58951         (__internal_setnetgrent): ... this.  Add internal_function to
58952         definition.  Add libc_hidden_def.
58953         (setnetgrent): Update caller.
58954         (internal_endnetgrent): Renamed to ...
58955         (__internal_endnetgrent): ... this.  Add internal_function to
58956         definition.  Add libc_hidden_def.
58957         (endnetgrent): Update caller.
58958         (internal_getnetgrent_r): Renamed to ...
58959         (__internal_getnetgrent_r): ... this.  Add internal_function to
58960         definition.  Add libc_hidden_def.
58961         (__getnetgrent_r): Update caller.
58962         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
58963
58964 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58965
58966         * stdlib/longlong.h: Update from GCC.
58967
58968 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58969
58970         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
58971         on _QL, which is set by umul_ppmm but never used.
58972         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
58973         variables, which are set by GMP macros but never used.
58974         * stdio-common/_itowa.c (_itowa): Likewise.
58975         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
58976         * stdlib/mod_1.c (mpn_mod_1): Likewise.
58977
58978 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
58979
58980         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
58981         struct La_sh_regs is not constant.
58982         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
58983         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
58984         and struct La_sparc64_regs are not constant.
58985
58986 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58987
58988         * sysdeps/unix/sysv/linux/kernel-features.h
58989         (__ASSUME_POSIX_TIMERS): Remove.
58990         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58991         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58992         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
58993         Make code unconditional.
58994         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58995         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
58996         Make code unconditional.
58997         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58998         * sysdeps/unix/sysv/linux/clock_nanosleep.c
58999         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
59000         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59001         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
59002         Make code unconditional.
59003         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59004         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
59005         (__libc_missing_posix_timers): Remove.
59006
59007 2012-08-15  Roland McGrath  <roland@hack.frob.com>
59008
59009         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
59010         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
59011
59012         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
59013
59014         * elf/dl-sym.c: Include <stdlib.h>.
59015
59016         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
59017         constants, which avoids warnings in 32-bit builds.
59018
59019         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
59020         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
59021
59022         * misc/lseek.c: File moved to ...
59023         * io/lseek.c: ... here.
59024
59025         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
59026
59027         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
59028         shifting LEN more than 31 bits at once.
59029
59030 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
59031
59032         [BZ #14195]
59033         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
59034         segmentation fault for a case of two empty input strings.
59035         * string/test-strncasecmp.c (check1): Renamed to...
59036         (bz12205): ...this.
59037         (bz14195): Add new testcase for two empty input strings and N > 0.
59038         (test_main): Call new testcase, adapt for renamed function.
59039
59040 2012-08-15  Andreas Jaeger  <aj@suse.de>
59041
59042         [BZ #14090]
59043         * crypt/md5test2.c: New test, based on test supplied by Serge
59044         Belyshev <belyshev@depni.sinp.msu.ru>.
59045         * crypt/Makefile (xtests): Add md5test-giant..
59046         * crypt/Makefile ($(objpfx)md5test-giant): Add.
59047
59048 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59049
59050         [BZ #14090]
59051         * crypt/md5.c (md5_process_block): Don't assume the buffer
59052         length is less than 2**32.
59053         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
59054         length is less than 2**64.
59055
59056 2012-08-15  Roland McGrath  <roland@hack.frob.com>
59057
59058         * string/str-two-way.h: Include <sys/param.h>.
59059         (MAX): Macro removed.
59060
59061         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
59062         Move #define and #undef of memmove to just before and after
59063         including <string.h>.
59064
59065         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
59066         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
59067         and after including <string.h>.  Move declarations of
59068         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
59069         to before #include "string/memmove.c".
59070
59071         * include/dirent.h: Declare __getdirentries.
59072
59073         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
59074         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
59075
59076 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
59077
59078         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
59079         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
59080         * sysdeps/i386/configure: Regenerated.
59081         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
59082         STABS_CURRENT_FILE, and STABS_FUN.
59083         (END): Remove call to STABS_FUN_END.
59084         (STABS_CURRENT_FILE1): Delete.
59085         (STABS_CURRENT_FILE): Likewise.
59086         (STABS_FUN): Likewise.
59087         (STABS_FUN_END): Likewise.
59088         (STABS_FUN2): Likewise.
59089         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
59090         * sysdeps/x86_64/configure: Regenerated.
59091
59092 2012-08-14  Roland McGrath  <roland@hack.frob.com>
59093
59094         * elf/dl-open.c: Include <atomic.h>.
59095         * elf/dl-lookup.c: Likewise.
59096
59097 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
59098
59099         * sysdeps/unix/sysv/linux/kernel-features.h
59100         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
59101         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
59102         unconditionally.
59103         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
59104         unconditionally.
59105         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
59106         condition on __ASSUME_CLONE_THREAD_FLAGS.
59107
59108 2012-08-14  Andreas Jaeger  <aj@suse.de>
59109
59110         * sysdeps/i386/fpu/libm-test-ulps: Update.
59111
59112 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
59113
59114         * include/atomic.h (atomic_exchange_and_add): Split into ...
59115         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
59116         New atomic macros.
59117
59118 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
59119
59120         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
59121
59122 2012-08-13  Jeff Law <law@redhat.com>
59123
59124         * manual/stdio.texi (snprintf): Clarify handling of the trailing
59125         null byte in the output string.
59126
59127 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
59128
59129         * sysdeps/unix/sysv/linux/kernel-features.h
59130         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
59131         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
59132         (__ASSUME_ARG_MAX_STACK_BASED): Define.
59133         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
59134         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
59135         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
59136         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
59137
59138 2012-08-09  Jeff Law <law@redhat.com>
59139
59140         [BZ #13939]
59141         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
59142         When avoid_arena is set, don't retry in the that arena.  Pick the
59143         next one, whatever it might be.
59144         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
59145         (arena_lock): Pass in new parameter to arena_get2.
59146         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
59147         arena_get2.
59148         (__libc_malloc): Unify retrying after main arena failure with
59149         __libc_memalign version.
59150         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
59151
59152 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
59153
59154         [BZ #14166]
59155         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
59156         to __redirect_strstr.
59157         (__strstr_sse42): Use typeof __redirect_strstr.
59158         (__strstr_ia32): Likewise.
59159         (__libc_strstr): New prototype.
59160         (strstr): Renamed to ...
59161         (__libc_strstr): This.
59162         (strstr): New strong alias of __libc_strstr.
59163         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
59164         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
59165         __redirect_time.
59166         Include <time.h>.
59167         (__libc_time): New prototype.
59168         (time_ifunc): Replace time with __libc_time.
59169         (time): New strong alias and hidden definition of __libc_time.
59170         (__GI_time): Remove strong alias.
59171         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
59172         Include <stddef.h>.
59173         (memmove): Redefined to __redirect_memmove.
59174         (__memmove_sse2): Use typeof __redirect_memmove.
59175         (__memmove_ssse3): Likewise.
59176         (__memmove_ssse3_back): Likewise.
59177         (__libc_memmove): New prototype.
59178         (memmove): Renamed to ...
59179         (__libc_memmove): This.
59180         (memmove): New strong alias of __libc_memmove.
59181
59182 2012-08-08  Mark Salter  <msalter@redhat.com>
59183
59184         * elf/elf.h
59185         (R_MN10300_TLS_GD): Define.
59186         (R_MN10300_TLS_LD): Likewise.
59187         (R_MN10300_TLS_LDO): Likewise.
59188         (R_MN10300_TLS_GOTIE): Likewise.
59189         (R_MN10300_TLS_IE): Likewise.
59190         (R_MN10300_TLS_LE): Likewise.
59191         (R_MN10300_TLS_DTPMOD): Likewise.
59192         (R_MN10300_TLS_DTPOFF): Likewise.
59193         (R_MN10300_TLS_TPOFF): Likewise.
59194         (R_MN10300_SYM_DIFF): Likewise.
59195         (R_MN10300_ALIGN): Likewise.
59196         (R_MN10300_NUM): Update.
59197
59198 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
59199
59200         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
59201         Remove.
59202
59203 2012-08-08  Roland McGrath  <roland@hack.frob.com>
59204
59205         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
59206
59207         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
59208         sysdeps/unix -> sysdeps/posix move.
59209         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
59210
59211 2012-08-07      Allan McRae     <allan@archlinux.org>
59212
59213         [BZ #14303]
59214         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
59215         (SUNOS_CPP): Likewise.
59216         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
59217         not found.
59218         (open_input): Call CPP using execvp.
59219
59220 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
59221
59222         * sysdeps/unix/sysv/linux/kernel-features.h
59223         (__ASSUME_PROT_GROWSUPDOWN): Remove.
59224         (__ASSUME_NO_CLONE_DETACHED): Likewise.
59225         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
59226         (__ASSUME_WAITID_SYSCALL): Likewise.
59227         * sysdeps/unix/sysv/linux/dl-execstack.c
59228         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
59229         code unconditional.
59230         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
59231         conditional code.
59232         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
59233         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
59234         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
59235         code.
59236         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
59237         unconditional.
59238         [__ASSUME_WAITID_SYSCALL]: Likewise.
59239         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
59240
59241 2012-08-07  Roland McGrath  <roland@hack.frob.com>
59242
59243         * sysdeps/unix/closedir.c: Renamed to ...
59244         * sysdeps/posix/closedir.c: ... here.
59245         * sysdeps/unix/dirfd.c: Renamed to ...
59246         * sysdeps/posix/dirfd.c: ... here.
59247         * sysdeps/unix/dirstream.h: Renamed to ...
59248         * sysdeps/posix/dirstream.h: ... here.
59249         * sysdeps/unix/fdopendir.c: Renamed to ...
59250         * sysdeps/posix/fdopendir.c: ... here.
59251         * sysdeps/unix/opendir.c: Renamed to ...
59252         * sysdeps/posix/opendir.c: ... here.
59253         * sysdeps/unix/readdir.c: Renamed to ...
59254         * sysdeps/posix/readdir.c: ... here.
59255         * sysdeps/unix/readdir_r.c: Renamed to ...
59256         * sysdeps/posix/readdir_r.c: ... here.
59257         * sysdeps/unix/rewinddir.c: Renamed to ...
59258         * sysdeps/posix/rewinddir.c: ... here.
59259         * sysdeps/unix/seekdir.c: Renamed to ...
59260         * sysdeps/posix/seekdir.c: ... here.
59261         * sysdeps/unix/telldir.c: Renamed to ...
59262         * sysdeps/posix/telldir.c: ... here.
59263         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
59264         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
59265         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
59266         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
59267
59268         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
59269         * bits/fcntl.h: ... here.
59270
59271         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
59272         not 0.
59273         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
59274         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
59275         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
59276         (struct flock): Move l_start, l_len to the beginning.
59277         Use __pid_t for l_pid.
59278         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
59279         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
59280         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
59281         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
59282         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
59283         [__USE_LARGEFILE64] (struct flock64): New type.
59284         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
59285
59286         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
59287         * bits/dirent.h: ... here.
59288
59289         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
59290         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
59291
59292 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
59293
59294         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59295         Change from 2.6.0 to 2.6.16.
59296         * sysdeps/unix/sysv/linux/configure: Regenerated.
59297         * sysdeps/unix/sysv/linux/kernel-features.h
59298         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
59299         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
59300         version.
59301         (__ASSUME_UTIMES): Likewise.
59302         (__ASSUME_CLONE_STOPPED): Remove.
59303         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
59304         architectures, not kernel version.
59305         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
59306         (__ASSUME_NO_CLONE_DETACHED): Likewise.
59307         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
59308         (__ASSUME_WAITID_SYSCALL): Likewise.
59309         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
59310         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
59311         * README: State 2.6.16 as minimum Linux kernel version.  Do not
59312         refer to older versions.
59313
59314 2012-08-06  Roland McGrath  <roland@hack.frob.com>
59315
59316         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
59317         Define alphasort64 as an alias.
59318         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
59319         Define versionsort64 as an alias.
59320         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
59321         Define scandir64 as an alias.
59322         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
59323         Define scandirat64 as an alias.
59324         * dirent/alphasort64.c (alphasort64):
59325         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
59326         * dirent/versionsort64.c: Likewise.
59327         * dirent/scandir64.c: Likewise.
59328         * dirent/scandirat64.c: Likewise.
59329         * sysdeps/wordsize-64/alphasort.c: File removed.
59330         * sysdeps/wordsize-64/alphasort64.c: File removed.
59331         * sysdeps/wordsize-64/scandir.c: File removed.
59332         * sysdeps/wordsize-64/scandir64.c: File removed.
59333         * sysdeps/wordsize-64/scandirat.c: File removed.
59334         * sysdeps/wordsize-64/scandirat64.c: File removed.
59335         * sysdeps/wordsize-64/versionsort.c: File removed.
59336         * sysdeps/wordsize-64/versionsort64.c: File removed.
59337         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
59338         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
59339         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
59340         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
59341         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
59342         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
59343         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
59344         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
59345
59346         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
59347         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59348         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
59349         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59350         [defined __arch64__ || defined __sparcv9]
59351         (__INO_T_MATCHES_INO64_T): New macro.
59352         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59353         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
59354         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
59355         * sysdeps/unix/sysv/linux/bits/dirent.h
59356         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
59357         (_DIRENT_MATCHES_DIRENT64): New macro.
59358
59359         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
59360         Define lockf64 as an alias.
59361         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
59362         Define fseeko64 as an alias.
59363         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
59364         Define ftello64 as an alias.
59365         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
59366         Define _IO_fgetpos64 and fgetpos64 as aliases.
59367         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
59368         Define _IO_fsetpos64 and fsetpos64 as aliases.
59369         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
59370         Conditionalize body on this.
59371         * libio/fseeko64.c: Likewise.
59372         * libio/ftello64.c: Likewise.
59373         * libio/iofgetpos64.c: Likewise.
59374         * libio/iofsetpos64.c: Likewise.
59375         * sysdeps/wordsize-64/lockf.c: File removed.
59376         * sysdeps/wordsize-64/lockf64.c: File removed.
59377         * sysdeps/wordsize-64/fseeko.c: File removed.
59378         * sysdeps/wordsize-64/fseeko64.c: File removed.
59379         * sysdeps/wordsize-64/ftello.c: File removed.
59380         * sysdeps/wordsize-64/ftello64.c: File removed.
59381         * sysdeps/wordsize-64/iofgetpos.c: File removed.
59382         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
59383         * sysdeps/wordsize-64/iofsetpos.c: File removed.
59384         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
59385         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
59386         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
59387         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
59388         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
59389         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
59390         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
59391         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
59392         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
59393         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
59394         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
59395
59396         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59397         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59398         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
59399         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59400         [defined __arch64__ || defined __sparcv9]
59401         (__OFF_T_MATCHES_OFF64_T): New macro.
59402         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59403         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59404         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
59405         (__OFF_T_MATCHES_OFF64_T): New macro.
59406
59407 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59408
59409         * stdlib/secure-getenv.c (__secure_getenv): Replace
59410         GLIBC_2_16 with GLIBC_2_17.
59411
59412 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59413
59414         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
59415         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
59416
59417 2012-08-03  David S. Miller  <davem@davemloft.net>
59418
59419         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59420
59421 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59422
59423         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
59424         Remove.
59425         (__ASSUME_CORRECT_SI_PID): Likewise.
59426         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
59427         (__ASSUME_TMPFS_NAME): Likewise.
59428         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
59429         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
59430         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
59431         (HAVE_AUX_SECURE): Make definition unconditional.
59432         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
59433         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
59434
59435 2012-08-03  Roland McGrath  <roland@hack.frob.com>
59436
59437         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
59438         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
59439         * sysdeps/mach/hurd/eloop-threshold.h: New file.
59440         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
59441         __eloop_threshold instead of SYMLOOP_MAX.
59442
59443         * sysdeps/generic/eloop-threshold.h: New file.
59444         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
59445         of MAXSYMLINKS.
59446         * elf/chroot_canon.c (chroot_canon): Likewise.
59447
59448 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59449
59450         [BZ #13717]
59451         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59452         Change to 2.6.0 everywhere.
59453         * sysdeps/unix/sysv/linux/configure: Regenerated.
59454         * sysdeps/unix/sysv/linux/kernel-features.h
59455         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
59456         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
59457         kernel versions.
59458         (__ASSUME_POSIX_TIMERS): Define unconditionally.
59459         (__ASSUME_FUTEX_REQUEUE): Remove.
59460         (__ASSUME_STATFS64): Define unconditionally.
59461         (__ASSUME_AT_SECURE): Likewise.
59462         (__ASSUME_CORRECT_SI_PID): Likewise.
59463         (__ASSUME_TGKILL): Define without depending on kernel version for
59464         i386.
59465         (__ASSUME_UTIMES): Likewise.
59466         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
59467         kernel version.
59468         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
59469         (__ASSUME_TMPFS_NAME): Likewise.
59470         * README: Update reference to Linux kernel versions.
59471
59472 2012-08-02  Marek Polacek  <polacek@redhat.com>
59473
59474         [BZ# 14150]
59475         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
59476         libc_cv_asm_type_prefix with %.
59477         * configure: Regenerated.
59478         * include/libc-symbols.h: Remove comment about
59479         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59480         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
59481         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
59482         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
59483         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
59484         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59485         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
59486         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
59487         * elf/tst-unique2mod1.c: Likewise.
59488         * elf/tst-unique1mod2.c: Likewise.
59489         * elf/tst-unique1mod1.c: Likewise.
59490         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
59491         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
59492         Replace ASM_TYPE_DIRECTIVE with .type.
59493         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59494         * sysdeps/i386/sysdep.h: Likewise.
59495         * sysdeps/x86_64/sysdep.h: Likewise.
59496         * sysdeps/sh/sysdep.h: Likewise.
59497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
59498         Do not define ASM_TYPE_DIRECTIVE.
59499         * sysdeps/powerpc/sysdep.h: Likewise.
59500         * sysdeps/powerpc/powerpc32/sysdep.h:
59501         Replace ASM_TYPE_DIRECTIVE with .type.
59502         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59503         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59504         * sysdeps/i386/fpu/e_powf.S: Likewise.
59505         * sysdeps/i386/fpu/e_expl.S: Likewise.
59506         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
59507         * sysdeps/i386/fpu/e_acosh.S: Likewise.
59508         * sysdeps/i386/fpu/e_pow.S: Likewise.
59509         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
59510         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
59511         * sysdeps/i386/fpu/s_expm1.S: Likewise.
59512         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
59513         * sysdeps/i386/fpu/e_log2.S: Likewise.
59514         * sysdeps/i386/fpu/e_log2l.S: Likewise.
59515         * sysdeps/i386/fpu/e_scalb.S: Likewise.
59516         * sysdeps/i386/fpu/e_powl.S: Likewise.
59517         * sysdeps/i386/fpu/e_log10f.S: Likewise.
59518         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
59519         * sysdeps/i386/fpu/e_logl.S: Likewise.
59520         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
59521         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
59522         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
59523         * sysdeps/i386/fpu/e_log2f.S: Likewise.
59524         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
59525         * sysdeps/i386/fpu/e_log.S: Likewise.
59526         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
59527         * sysdeps/i386/fpu/e_logf.S: Likewise.
59528         * sysdeps/i386/fpu/e_log10l.S: Likewise.
59529         * sysdeps/i386/fpu/e_atanh.S: Likewise.
59530         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
59531         * sysdeps/i386/fpu/e_log10.S: Likewise.
59532         * sysdeps/i386/fpu/s_frexp.S: Likewise.
59533         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
59534         * sysdeps/i386/fpu/s_asinh.S: Likewise.
59535         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
59536         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
59537         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
59538         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
59539         * sysdeps/i386/i686/strtok.S: Likewise.
59540         * sysdeps/i386/i386-mcount.S: Likewise.
59541         * sysdeps/i386/strtok.S: Likewise.
59542         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
59543         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
59544         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
59545         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
59546         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
59547         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
59548         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
59549         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
59550         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
59551         * sysdeps/x86_64/_mcount.S: Likewise.
59552         * sysdeps/x86_64/strtok.S: Likewise.
59553         * sysdeps/sh/_mcount.S: Likewise.
59554
59555 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59556
59557         * libio/iofopen.c: Include <fcntl.h>.
59558         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
59559         (_IO_fopen64, fopen64): Define as aliases.
59560         * libio/iofopen64.c: Include <fcntl.h>.
59561         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
59562         Conditionalize body on this.
59563         * sysdeps/wordsize-64/iofopen.c: File removed.
59564         * sysdeps/wordsize-64/iofopen64.c: File removed.
59565
59566 2012-08-01  Marek Polacek  <polacek@redhat.com>
59567
59568         * libc/Makeconfig: Use elf in place of binfmt-subdir.
59569         Use dlfcn directly instead of a variable.
59570         (binfmt-subdir): Do not define.
59571         (dlfcn): Likewise.
59572
59573 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
59574
59575         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
59576         Remove all definitions.
59577         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
59578         <kernel-features.h>.
59579         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59580         (miss_F_GETOWN_EX): Remove all definitions.
59581         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
59582         macro definition.
59583         [!__ASSUME_FCNTL64]: Remove conditional code.
59584         [__ASSUME_FCNTL64]: Make code unconditional.
59585         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
59586         <kernel-features.h>.
59587         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59588         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
59589         (lockf64) [__NR_fcntl64]: Make code unconditional.
59590         (lockf64) [__ASSUME_FCNTL64]: Likewise.
59591
59592         * sysdeps/unix/sysv/linux/kernel-features.h
59593         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
59594         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
59595         Make code unconditional.
59596         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59597         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
59599         [__NR_vfork]: Make code unconditional.
59600         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59601         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
59603         [__NR_vfork]: Make code unconditional.
59604         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59605         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59606
59607 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59608
59609         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
59610         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
59611
59612         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59613         Define mkstemp64 as an alias.
59614         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59615         Define mkstemps64 as an alias.
59616         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59617         Define mkostemp64 as an alias.
59618         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59619         Define mkostemps64 as an alias.
59620         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
59621         Conditionalize body on this.
59622         * misc/mkostemp64.c: Likewise.
59623         * misc/mkostemps64.c: Likewise.
59624         * misc/mkstemps64.c: Likewise.
59625         * sysdeps/wordsize-64/mkstemp64.c: File removed.
59626         * sysdeps/wordsize-64/mkostemp64.c: File removed.
59627         * sysdeps/wordsize-64/mkostemp.c: File removed.
59628         * sysdeps/wordsize-64/mkstemp.c: File removed.
59629         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
59630         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
59631         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
59632         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
59633
59634         [BZ #14138]
59635         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
59636         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
59637         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
59638         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
59639
59640         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
59641         compat_symbol macros from <shlib-compat.h> rather than the underlying
59642         default_symbol_version and symbol_version macros, so that DEFAULT
59643         lines in shlib-versions are respected.
59644         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
59645
59646 2012-08-01  Florian Weimer  <fweimer@redhat.com>
59647
59648         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
59649         Declare with warn_unused_result.
59650         (setgid, setregid, setegid, setresgid): Likewise.
59651         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
59652         Likewise.
59653         * WUR-REPORT: Remove set*id functions.
59654
59655 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
59656
59657         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
59658
59659 2012-07-31  Roland McGrath  <roland@hack.frob.com>
59660
59661         [BZ #10191]
59662         * include/sys/socket.h (__libc_accept, __libc_accept4):
59663         Add attribute_hidden.
59664         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
59665
59666         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
59667         use of PTR_MANGLE.
59668         * inet/getnetgrent_r.c (setup): Likewise.
59669
59670         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
59671
59672 2012-07-31  David S. Miller  <davem@davemloft.net>
59673
59674         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59675
59676 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
59677
59678         [BZ #13629]
59679         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
59680         value between 1.0 and 2.0 and smaller part has absolute value less
59681         than 1.0.
59682         * math/s_clog10.c (__clog10): Likewise.
59683         * math/s_clog10f.c (__clog10f): Likewise.
59684         * math/s_clog10l.c (__clog10l): Likewise.
59685         * math/s_clogf.c (__clogf): Likewise.
59686         * math/s_clogl.c (__clogl): Likewise.
59687         * math/libm-test.inc (clog_test): Add more tests.
59688         (clog10_test): Likewise.
59689         * sysdeps/i386/fpu/libm-test-ulps: Update.
59690         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59691
59692 2012-07-31  Florian Weimer  <fweimer@redhat.com>
59693
59694         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
59695         Exit with zero in case no suitable GID is found, and write a
59696         message to standard error.
59697
59698 2012-07-30  Roland McGrath  <roland@hack.frob.com>
59699
59700         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
59701         rather than to 1.
59702         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
59703         (MAXPATHLEN): Removed.
59704         (NOGROUP, NODEV): New macros.
59705         (setbit, clrbit, isset, isclr): New macros.
59706         (howmany, roundup, powerof2): New macros.
59707         (DEV_BSIZE): New macro.
59708
59709         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
59710         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
59711
59712         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
59713         definition on [!__NO_LONG_DOUBLE_MATH].
59714
59715         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
59716         PTR_MANGLE and PTR_DEMANGLE.
59717
59718         * socket/accept4.c (accept4): Rename to __libc_accept4.
59719         Define accept4 as a weak alias.
59720
59721         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
59722         on [_DIRENT_HAVE_D_TYPE].
59723         * io/ftw.c (ftw_dir): Likewise.
59724
59725         * io/xmknod.c (__xmknod): Don't check PATH for being null.
59726
59727         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
59728
59729         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
59730         Use the BSD numbers rather than the arbitrary ones we had.
59731         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
59732         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
59733         (SIGXCPU, SIGXFSZ): New macros.
59734         (_NSIG): Now 32.
59735
59736         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
59737         initializer on [_LIBC_REENTRANT].
59738
59739         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
59740         definitions inside [_POSIX_MAPPED_FILES].
59741
59742         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
59743
59744         * dirent/opendir.c: Include <fcntl.h>.
59745
59746         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
59747         (__libc_getspecific): Likewise.
59748         (__libc_key_create): Likewise.
59749
59750         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
59751         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
59752         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
59753         (tmpfile64): Define as alias.
59754         * sysdeps/wordsize-64/tmpfile.c: File removed.
59755         * sysdeps/wordsize-64/tmpfile64.c: File removed.
59756         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
59757         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
59758
59759         * stdio-common/vfscanf.c: Include <stdbool.h>.
59760         * nss/makedb.c: Likewise.
59761         * stdio-common/_i18n_number.h: Likewise.
59762         * argp/argp-help.c: Likewise.
59763         * posix/wordexp.c: Likewise.
59764         * sysdeps/posix/spawni.c: Likewise.
59765         * nss/nss_files/files-initgroups.c: Likewise.
59766         * stdio-common/reg-modifier.c: Include <stdlib.h>.
59767         * nss/nss_files/files-initgroups.c: Likewise.
59768         * nss/nss_db/db-netgrp.c: Likewise.
59769         * nss/nss_db/db-initgroups.c: Likewise.
59770         * io/fchmodat.c: Include <sys/stat.h>.
59771
59772         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
59773         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
59774
59775         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
59776         [HAVE_MMAP].
59777
59778         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
59779         Add multiple inclusion protection.
59780
59781 2012-07-27  David S. Miller  <davem@davemloft.net>
59782
59783         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59784
59785 2012-07-27  Gary Benson  <gbenson@redhat.com>
59786
59787         [BZ #14298]
59788         * elf/rtld.c: Include <stap-probe.h>.
59789         (dl_main): Added static probes "init_start" and "init_complete".
59790         * elf/dl-load.c: Include <stap-probe.h>.
59791         (lose): Take new parameter "nsid".
59792         Added static probe "map_failed".
59793         (_dl_map_object_from_fd): Pass namespace id to lose.
59794         Added static probe "map_start".
59795         (open_verify): Pass namespace id to lose.
59796         * elf/dl-open.c: Include <stap-probe.h>.
59797         (dl_open_worker) Added static probes "map_complete", "reloc_start"
59798         and "reloc_complete".
59799         * elf/dl-close.c: Include <stap-probe.h>.
59800         (_dl_close_worker): Added static probes "unmap_start" and
59801         "unmap_complete".
59802         * elf/rtld-debugger-interface.txt: New file documenting the above.
59803
59804 2012-07-26  Roland McGrath  <roland@hack.frob.com>
59805
59806         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
59807         rather than a string variable.
59808         * sunrpc/rpc_main.c (h_output): Likewise.
59809         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
59810
59811 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
59812
59813         * inet/check_native.c: New file.
59814
59815 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
59816
59817         [BZ #13629]
59818         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
59819         if larger part has absolute value 1.0.
59820         * math/s_clog10.c (__clog10): Likewise.
59821         * math/s_clog10f.c (__clog10f): Likewise.
59822         * math/s_clog10l.c (__clog10l): Likewise.
59823         * math/s_clogf.c (__clogf): Likewise.
59824         * math/s_clogl.c (__clogl): Likewise.
59825         * math/libm-test.inc (clog_test): Add more tests.
59826         (clog10_test): Likewise.
59827         * sysdeps/i386/fpu/libm-test-ulps: Update.
59828         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59829
59830         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
59831         (pltexit): Likewise.
59832         (La_regs): Likewise.
59833         (La_retval): Likewise.
59834         (int_retval): Likewise.
59835         Update #error for removed macros to refer only to definitions in
59836         tst-audit.h.
59837         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
59838         macro.
59839         (pltexit): Likewise.
59840         (La_regs): Likewise.
59841         (La_retval): Likewise.
59842         (int_retval): Likewise.
59843         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
59844         macro.
59845         (pltexit): Likewise.
59846         (La_regs): Likewise.
59847         (La_retval): Likewise.
59848         (int_retval): Likewise.
59849         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
59850         macro.
59851         (pltexit): Likewise.
59852         (La_regs): Likewise.
59853         (La_retval): Likewise.
59854         (int_retval): Likewise.
59855         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
59856         macro.
59857         (pltexit): Likewise.
59858         (La_regs): Likewise.
59859         (La_retval): Likewise.
59860         (int_retval): Likewise.
59861         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
59862         macro.
59863         (pltexit): Likewise.
59864         (La_regs): Likewise.
59865         (La_retval): Likewise.
59866         (int_retval): Likewise.
59867         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
59868         macro.
59869         (pltexit): Likewise.
59870         (La_regs): Likewise.
59871         (La_retval): Likewise.
59872         (int_retval): Likewise.
59873         * sysdeps/generic/tst-audit.h: Update comment to refer only to
59874         macro definitions in tst-audit.h.
59875         * sysdeps/i386/tst-audit.h: New file.
59876         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
59877         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
59878         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
59879         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
59880         * sysdeps/sh/tst-audit.h: Likewise.
59881         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
59882         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
59883         * sysdeps/x86_64/tst-audit.h: Likewise.
59884
59885 2012-07-26  Andreas Jaeger  <aj@suse.de>
59886
59887         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
59888         ptrace.
59889
59890         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
59891         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
59892         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
59893         PTRACE_O_MASK.
59894         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
59895         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
59896         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
59897
59898         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
59899         value.
59900
59901         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
59902         _sigsys.
59903         (si_call_addr, si_syscall, si_arch): Define new macro.
59904         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
59905         _sigsys.
59906         (si_call_addr, si_syscall, si_arch): Define new marcro.
59907         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
59908         _sigsys.
59909         (si_call_addr, si_syscall, si_arch): Define new macro.
59910         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
59911         _sigsys.
59912         (si_call_addr, si_syscall, si_arch): Define new macro.
59913
59914 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59915
59916         [BZ #13717]
59917         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59918         Change to 2.4.21 where previously 2.4.1.
59919         * sysdeps/unix/sysv/linux/configure: Regenerated.
59920         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
59921         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
59922         Linux kernel version.
59923         (__ASSUME_STD_AUXV): Remove.
59924         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
59925         kernel version.
59926         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
59927         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
59928         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
59929         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
59930         (__ASSUME_NETLINK_SUPPORT): Likewise.
59931         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
59932         (__no_netlink_support): Remove conditional definition.
59933         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
59934         Remove.
59935         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59936         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
59937         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
59938         (if_nameindex_ioctl): Remove.
59939         (if_nameindex_netlink): Do not handle __no_netlink_support.
59940         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59941         code.
59942         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
59943         Remove conditional code.
59944         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59945         code.
59946         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
59947         unconditional.
59948         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59949         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
59950         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
59951         Remove.
59952         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
59953         [!__ASSUME_STD_AUXV]: Remove conditional code.
59954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
59955         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
59956         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
59957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
59958         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
59959         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59960         code.
59961         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59962         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
59963         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
59964         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59965         conditional code.
59966         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
59968         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59969         code.
59970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
59971         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59972         conditional code.
59973         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
59974         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59975         code unconditional.
59976         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59977         conditional code.
59978         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59979         unconditional.
59980         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59981         conditional code.
59982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
59983         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59984         unconditional.
59985         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59986         conditional code.
59987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
59988         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59989         code unconditional.
59990         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59991         conditional code.
59992         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59993         unconditional.
59994         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59995         conditional code.
59996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
59997         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59998         code unconditional.
59999         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60000         conditional code.
60001         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60002         unconditional.
60003         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60004         conditional code.
60005
60006 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
60007
60008         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
60009         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
60010         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
60011         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
60012         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
60013         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
60014         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
60015         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
60016         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
60017         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
60018         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
60019         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
60020         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
60021         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
60022         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
60023         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
60024         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
60025         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
60026         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
60027         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
60028         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
60029         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
60030         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
60031
60032 2012-07-25  Florian Weimer  <fweimer@redhat.com>
60033
60034         * Versions.def: Add GLIBC_2.17.
60035         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
60036         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
60037         Introduce __libc_secure_getenv.
60038         * stdlib/Versions (2.17): Add secure_getenv
60039         (GLIBC_PRIVATE): Add __libc_secure_getenv.
60040         * stdlib/secure-getenv.c: Rename __secure_getenv to
60041         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
60042         symbol __secure_getenv for GLIBC_2.0.
60043         * stdlib/tst-secure-getenv.c: New.
60044         * stdlib/Makefile (tests): Add testcase.
60045         * manual/startup.texi (Environment Access): Document
60046         secure_getenv.
60047         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
60048         __libc_secure_getenv.
60049         * inet/ruserpass.c (ruserpass): Likewise.
60050         * malloc/mtrace.c (mtrace): Likewise.
60051         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
60052         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
60053         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
60054         * sysdeps/posix/tempname.c: Likewise.  Evaluate
60055         HAVE_SECURE_GETENV.
60056         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
60057         __secure_getenv to __libc_secure_getenv.
60058         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
60059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
60060         Likewise.
60061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
60062         Likewise.
60063         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
60064         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
60065         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
60066         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
60067         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
60068         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
60069         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
60070
60071 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
60072
60073         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
60074         (struct La_i86_retval): Likewise.
60075         (struct La_x86_64_regs): Likewise.
60076         (struct La_x86_64_retval): Likewise.
60077         (struct La_x32_regs): Likewise.
60078         (struct La_x32_retval): Likewise.
60079         (struct La_ppc32_regs): Likewise.
60080         (struct La_ppc32_retval): Likewise.
60081         (struct La_ppc64_regs): Likewise.
60082         (struct La_ppc64_retval): Likewise.
60083         (struct La_sh_regs): Likewise.
60084         (struct La_sh_retval): Likewise.
60085         (struct La_s390_32_regs): Likewise.
60086         (struct La_s390_32_retval): Likewise.
60087         (struct La_s390_64_regs): Likewise.
60088         (struct La_s390_64_retval): Likewise.
60089         (struct La_sparc32_regs): Likewise.
60090         (struct La_sparc32_retval): Likewise.
60091         (struct La_sparc64_regs): Likewise.
60092         (struct La_sparc64_retval): Likewise.
60093         (struct audit_ifaces): Remove architecture-specific pltenter and
60094         pltexit members.
60095         * sysdeps/i386/ldsodefs.h: New file.
60096         * sysdeps/powerpc/ldsodefs.h: Likewise.
60097         * sysdeps/s390/ldsodefs.h: Likewise.
60098         * sysdeps/sh/ldsodefs.h: Likewise.
60099         * sysdeps/sparc/ldsodefs.h: Likewise.
60100         * sysdeps/x86_64/ldsodefs.h: Likewise.
60101
60102 2012-07-25  Marek Polacek  <polacek@redhat.com>
60103
60104         [BZ #6808]
60105         * math/libm-test.inc (yn_test): Add another test.
60106         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
60107         to ERANGE when the result is +-Inf.
60108         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
60109         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
60110         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
60111         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
60112
60113 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
60114
60115         * conform/data/time.h-data (NULL): Use macro-constant.  Require
60116         equal to 0.
60117         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
60118         clock_t.
60119         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
60120
60121 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
60122
60123         * configure.in <sysdeps resolving>: Correct printing
60124         Implies_before.
60125         * configure: Regenerate.
60126
60127 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
60128
60129         * math/w_ilogb.c: Include <limits.h>.
60130         * math/w_ilogbl.c: Likewise.
60131
60132 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
60133
60134         * manual/lang.texi (__va_copy): Document primarily as ISO C99
60135         va_copy.  Document allowing for unavailable va_copy only as
60136         pre-C99 compatibility.
60137         * manual/string.texi (Copying and Concatenation): Use va_copy
60138         instead of __va_copy in concat example.
60139
60140 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
60141
60142         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
60143         (__sendto): Use create_address_port.  Initialize APORT and deallocate
60144         it if not null.
60145
60146         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
60147         with O_NOLINK passed to __file_name_lookup.
60148
60149         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
60150         with O_NOLINK passed to __file_name_lookup.
60151
60152         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
60153         negative N or less than NGIDS.
60154
60155         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
60156         type to string_t.  Set ERANGE as errno and return it if NAME is not big
60157         enough.  Use memcpy instead of strncpy.
60158
60159 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
60160
60161         * elf/Makefile (check-data): Remove.
60162         (localplt.data): New vpath directive.
60163         ($(objpfx)check-localplt.out): Use localplt.data from vpath
60164         instead of $(check-data).
60165         * scripts/data/localplt-generic.data: Move to ...
60166         * sysdeps/generic/localplt.data: ... here.
60167         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
60168         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
60169         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
60170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
60171         ... here.
60172         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
60173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
60174         ... here.
60175         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
60176         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
60177         ... here.
60178         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
60179         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
60180         ... here.
60181         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
60182         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
60183         ... here.
60184         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
60185         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
60186         ... here.
60187
60188 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60189
60190         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
60191         PPC32 and PPC64 files.
60192         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
60193         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
60194
60195 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60196
60197         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
60198         __makecontext_ret to ...
60199         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
60200         ... here and call exit if uc_link is NULL.  New file.
60201         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
60202         __makecontext_ret.S.
60203         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
60204         __makecontext_ret to ...
60205         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
60206         ... here and call exit if uc_link is NULL.  New file.
60207         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
60208         __makecontext_ret.S.
60209
60210 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60211
60212         * elf/elf.h (R_390_IRELATIVE): New definition.
60213         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
60214         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
60215         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
60216         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
60217         (elf_machine_lazy_rel): Likewise.
60218         * sysdeps/s390/dl-irel.h: New file.
60219         * sysdeps/s390/s390-64/memcpy.S: New asm code.
60220         * sysdeps/s390/s390-64/memset.S: New asm code.
60221         * sysdeps/s390/s390-64/memcmp.S: New asm code.
60222         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
60223         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
60224         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
60225         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
60226         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
60227         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
60228         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
60229         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
60230         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
60231         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
60232         * sysdeps/s390/s390-32/memcpy.S: New asm code.
60233         * sysdeps/s390/s390-32/memset.S: New asm code.
60234         * sysdeps/s390/s390-32/memcmp.S: New asm code.
60235
60236 2012-07-17  Marek Polacek  <polacek@redhat.com>
60237
60238         [BZ #14349]
60239         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
60240         * sysdeps/s390/s390-64/configure.in: Likewise.
60241         * sysdeps/sparc/configure.in: Likewise.
60242         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
60243         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
60244         * sysdeps/i386/configure.in: Likewise.
60245         * sysdeps/x86_64/configure.in: Likewise.
60246         * sysdeps/sh/configure.in: Likewise.
60247         * sysdeps/s390/s390-32/configure: Regenerated.
60248         * sysdeps/s390/s390-64/configure: Likewise.
60249         * sysdeps/x86_64/configure: Likewise.
60250         * sysdeps/sh/configure: Likewise.
60251         * sysdeps/powerpc/powerpc64/configure: Likewise.
60252         * sysdeps/powerpc/powerpc32/configure: Likewise.
60253         * sysdeps/sparc/configure: Likwise.
60254         * sysdeps/i386/configure: Likewise.
60255
60256         * elf/dl-open.c: Comment fixes.
60257
60258 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
60259
60260         * Makefile [CXX] (check-data): Remove.
60261         [CXX] (c++-types.data): New vpath directive.
60262         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
60263         vpath.  Do not allow for C++ type data being missing.
60264         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
60265         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
60266         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
60267         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
60268         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
60269         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
60270         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
60271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
60272         ... here.
60273         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
60274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
60275         ... here.
60276         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
60277         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
60278         ... here.
60279         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
60280         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
60281         ... here.
60282         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
60283         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
60284         ... here.
60285         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
60286         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
60287         ... here.
60288         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
60289         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
60290         ... here.
60291         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
60292         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
60293
60294         * elf/tls-macros.h (TLS_LE): Move architecture-specific
60295         definitions to architecture-specific files.
60296         (TLS_IE): Likewise.
60297         (TLS_LD): Likewise.
60298         (TLS_GD): Likewise.
60299         * sysdeps/i386/tls-macros.h: New file.
60300         * sysdeps/powerpc/tls-macros.h: Likewise.
60301         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
60302         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
60303         * sysdeps/sh/tls-macros.h: Likewise.
60304         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
60305         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
60306         * sysdeps/x86_64/tls-macros.h: Likewise.
60307
60308 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60309
60310         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
60311         zero value for regular exit case.
60312
60313         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
60314         (__start_context): Preserve zero value for regular exit case.
60315
60316 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60317             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60318
60319         * manual/setjmp.texi (setcontext): Clarify normal process
60320         termination when uc_link is the null pointer.
60321         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
60322         exit call.
60323
60324 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
60325
60326         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
60327         preprocessor.  Test for each exception mask separately.
60328
60329 2012-07-16  Andreas Jaeger  <aj@suse.de>
60330
60331         * po/ru.po: Update from translation team.
60332
60333 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
60334
60335         * conform/data/string.h-data (NULL): Use macro-constant.  Require
60336         equal to 0.
60337         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
60338         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
60339         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
60340         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
60341         [ISO || ISO99 || ISO11] (*_t): Do not allow.
60342
60343 2012-07-13  Andreas Jaeger  <aj@suse.de>
60344
60345         * po/fr.po: Update from translation team.
60346
60347 2012-07-12  Marek Polacek  <polacek@redhat.com>
60348
60349         [BZ #14173]
60350         * math/libm-test.inc (yn_test): Add test for BZ #14173.
60351         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
60352         loop condition.
60353
60354 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
60355
60356         [BZ #13717]
60357         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
60358         Change to 2.4.1 where previously 2.4.0.
60359         * sysdeps/unix/sysv/linux/configure: Regenerated.
60360         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
60361         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
60362         version.
60363         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
60364         (__ASSUME_AT_CLKTCK): Remove.
60365         (__ASSUME_AT_PAGESIZE): Likewise.
60366         (__ASSUME_AT_XID): Likewise.
60367         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
60368         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
60369         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
60370         unconditionally.
60371         (HAVE_AUX_PAGESIZE): Likewise.
60372         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
60373         [__ASSUME_AT_CLKTCK]: Make code unconditional.
60374         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
60375
60376 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
60377
60378         [BZ #14307]
60379         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
60380         the temporary buffer used to invoke __gethostbyname2_r,
60381         __gethostbyaddr_r and gethostbyname4_r to make room for struct
60382         host_data / struct gaih_addrtuple.
60383         * resolv/nss_dns/dns-host.c (global scope): Move definition of
60384         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
60385         header file nss/nsswitch.h.
60386         * nss/nsswitch.h (global scope): Add definition of implementation
60387         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
60388         resolv/nss_dns/dns-host.c).
60389
60390 2012-07-11  Andreas Jaeger  <aj@suse.de>
60391
60392         * po/fr.po: Update from translation team.
60393
60394         * po/sv.po: Update from translation team
60395         * po/fr.po: Another update from translation team.
60396
60397 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60398
60399         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
60400         for subnormals or multiply small sinh result by itself.
60401         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
60402         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60403
60404 2012-07-11  David S. Miller  <davem@davemloft.net>
60405
60406         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60407
60408 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
60409
60410         [BZ #14347]
60411         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
60412         (INTERNAL_MARK): Shift it here.
60413
60414 2012-07-10  Marek Polacek  <polacek@redhat.com>
60415
60416         [BZ #14151]
60417         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
60418         libc_cv_asm_global_directive with .globl.
60419         * configure: Regenerated.
60420         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
60421         with .globl.
60422         * sysdeps/i386/configure: Regenerated.
60423         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
60424         with .globl.
60425         * sysdeps/x86_64/configure: Regenerated.
60426         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
60427         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
60428         * elf/tst-unique2mod2.c: Likewise.
60429         * elf/tst-unique2mod1.c: Likewise.
60430         * elf/tst-unique1mod2.c: Likewise.
60431         * elf/tst-unique1mod1.c: Likewise.
60432         * sysdeps/s390/s390-32/sysdep.h: Likewise.
60433         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
60434         * sysdeps/s390/s390-64/sysdep.h: Likewise.
60435         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
60436         * sysdeps/mach/sysdep.h: Likewise.
60437         * sysdeps/i386/sysdep.h: Likewise.
60438         * sysdeps/i386/i386-mcount.S: Likewise.
60439         * sysdeps/x86_64/_mcount.S: Likewise.
60440         * sysdeps/x86_64/sysdep.h: Likewise.
60441         * sysdeps/sh/_mcount.S: Likewise.
60442         * sysdeps/sh/sysdep.h: Likewise.
60443         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
60444         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
60445         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
60446         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
60447         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
60448         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
60449         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
60450         * locale/localeinfo.h: Likewise.
60451         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
60452         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
60453
60454 2012-07-09  Roland McGrath  <roland@hack.frob.com>
60455
60456         [BZ #14336]
60457         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
60458         system".
60459         * manual/message.texi (The Uniforum approach): Likewise.
60460         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
60461         (glibc iconv Implementation): Likewise.
60462
60463 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
60464
60465         [BZ #14337]
60466         * math/s_clog.c (__clog): Avoid scaling a value down where that
60467         could result in underflow.
60468         * math/s_clog10.c (__clog10): Likewise.
60469         * math/s_clog10f.c (__clog10f): Likewise.
60470         * math/s_clog10l.c (__clog10l): Likewise.
60471         * math/s_clogf.c (__clogf): Likewise.
60472         * math/s_clogl.c (__clogl): Likewise.
60473         * math/libm-test.inc (clog_test): Add more tests.
60474         (clog10_test): Likewise.
60475         * sysdeps/i386/fpu/libm-test-ulps: Update.
60476         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60477
60478 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
60479
60480         [BZ #14283]
60481         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
60482         by 7 not 8 to examine high bit of fractional part.
60483
60484         [BZ #14042]
60485         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
60486         for call to __mcount_internal.
60487         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
60488         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
60489         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
60490
60491 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
60492
60493         [BZ #14154]
60494         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
60495         approximation for values within 0x1p-13f of an odd multiple of
60496         pi/4.
60497         * math/libm-test.inc (tan_test): Do not allow spurious underflow
60498         exception.  Add more tests.
60499         * sysdeps/i386/fpu/libm-test-ulps: Update.
60500
60501         [BZ #6778]
60502         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
60503         inputs and return -1 for them.  Do not check for +Inf in case not
60504         reachable for +Inf.
60505         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
60506         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
60507         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60508         and return -1 for them.  Do not check for +Inf in case not
60509         reachable for +Inf.
60510         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
60511         define.
60512         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60513         and return -1 for them.  Do not check for +Inf in case not
60514         reachable for +Inf.
60515         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
60516         spurious underflow.
60517         * sysdeps/i386/fpu/libm-test-ulps: Update.
60518         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60519
60520 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
60521
60522         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
60523
60524 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
60525
60526         [BZ #14157]
60527         [BZ #14331]
60528         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
60529         could result in spurious underflow.  Scale down values above
60530         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
60531         * math/s_csqrtf.c (__csqrtf): Likewise.
60532         * math/s_csqrtl.c (__csqrtl): Likewise.
60533         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
60534         spurious underflow.
60535         * sysdeps/i386/fpu/libm-test-ulps: Update.
60536         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60537
60538 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
60539
60540         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
60541         xopen-msg.sed.
60542         * catgets/xopen-msg.awk: New file.
60543         * catgets/xopen-msg.sed: Removed.
60544
60545         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
60546         po2text.sed.
60547         * intl/po2test.awk: New file.
60548         * intl/po2test.sed: Removed.
60549
60550 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
60551
60552         [BZ #14328]
60553         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
60554         or multiply small sinh result by itself.
60555         * math/s_ctanf.c (__ctanf): Likewise.
60556         * math/s_ctanh.c (__ctanh): Likewise.
60557         * math/s_ctanhf.c (__ctanhf): Likewise.
60558         * math/s_ctanhl.c (__ctanhl): Likewise.
60559         * math/s_ctanl.c (__ctanl): Likewise.
60560         * math/libm-test.inc (ctan_test_tonearest): New function.
60561         (ctan_test_towardzero): Likewise.
60562         (ctan_test_downward): Likewise.
60563         (ctan_test_upward): Likewise.
60564         (ctanh_test_tonearest): Likewise.
60565         (ctanh_test_towardzero): Likewise.
60566         (ctanh_test_downward): Likewise.
60567         (ctanh_test_upward): Likewise.
60568         (main): Call these new functions.
60569         * sysdeps/i386/fpu/libm-test-ulps: Update.
60570         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60571
60572 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
60573
60574         * .gitignore: Delete /ports entry.
60575
60576 2012-07-03  Andreas Jaeger  <aj@suse.de>
60577
60578         * po/bg.po: Update from translation team.
60579         * po/cs.po: Likewise.
60580         * po/de.po: Likewise.
60581         * po/hr.po: Likewise.
60582         * po/nl.pl: Likewise.
60583         * po/pl.po: Likewise.
60584         * po/vi.po: Likewise.
60585
60586 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
60587
60588         * Makeconfig [!+link] (+link-before-libc): New variable.
60589         [!+link] (+link-after-libc): Likewise.
60590         [!+link] (+link-tests): Likewise.
60591         [!+link] (+link): Define in terms of $(+link-before-libc) and
60592         $(+link-after-libc).
60593         [!+link-static] (+link-static-before-libc): New variable.
60594         [!+link-static] (+link-static-after-libc): Likewise.
60595         [!+link-static] (+link-static-tests): Likewise.
60596         [!+link-static] (+link-static): Define in terms of
60597         $(+link-static-before-libc) and $(+link-static-after-libc).
60598         [build-shared] (link-libc-before-gnulib): New variable.
60599         [build-shared] (link-libc-tests): Likewise.
60600         [build-shared] (link-libc): Define in terms of
60601         $(link-libc-before-gnulib).
60602         [!build-shared] (link-libc-tests): New variable.
60603         (link-libc-static-tests): New variable.
60604         [!gnulib] (gnulib-arch): New variable.
60605         [!gnulib] (gnulib-tests): Likewise.
60606         [!gnulib] (static-gnulib-arch): Likewise.
60607         [!gnulib] (static-gnulib-tests): Likewise.
60608         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
60609         Define with "=" instead of ":=".
60610         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
60611         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
60612         * Rules (binaries-all-notests): New variable.
60613         (binaries-all-tests): Likewise.
60614         (binaries-static-notests): Likewise.
60615         (binaries-static-tests): Likewise.
60616         (binaries-all): Define using $(binaries-all-notests) and
60617         $(binaries-all-tests).
60618         (binaries-static): Define using $(binaries-static-notests) and
60619         $(binaries-static-tests).
60620         (binaries-shared-tests): New variable.
60621         (binaries-shared-notests): Likewise.
60622         (binaries-shared): Remove variable.
60623         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
60624         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
60625         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
60626         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
60627         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
60628         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
60629         * elf/Makefile (sln-modules): New variable.
60630         (extra-objs): Add $(sln-modules:=.o).
60631         (ldconfig-modules): Add static-stubs.
60632         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
60633         * elf/static-stubs.c: New file.
60634
60635         [BZ #14283]
60636         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
60637         by 7 not 8 to examine high bit of fractional part.  Use volatile
60638         variables when splitting into final array of floats if
60639         __FLT_EVAL_METHOD__ != 0.
60640         * math/libm-test.inc (cos_test): Add another test.
60641         (sin_test): Likewise.
60642         * sysdeps/i386/fpu/libm-test-ulps: Update.
60643
60644         [BZ #14273]
60645         * math/libm-test.inc (cosh_test): Add more tests.
60646
60647         * version.h (RELEASE): Set to "development".
60648         (VERSION): Set to "2.16.90".
60649
60650 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
60651
60652         * NEWS: Update copyright. Remove last-updated date.
60653         Mention math library bug fixes and timezone data changes.
60654         * README: Mention GNU/Hurd, x32, and HPPA support status.
60655
60656 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
60657
60658         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
60659
60660 2012-06-27  Andreas Jaeger  <aj@suse.de>
60661
60662         * manual/contrib.texi (Contributors): Add Samuel Thibault.
60663
60664 2012-06-25  Andreas Jaeger  <aj@suse.de>
60665
60666         * sysdeps/s390/fpu/libm-test-ulps: Update.
60667
60668 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
60669             Thomas Schwinge  <thomas@codesourcery.com>
60670
60671         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
60672         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
60673         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
60674         fanotify_mark.
60675
60676 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
60677
60678         * sysdeps/mach/start.c: Remove file.
60679         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
60680         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
60681         * sysdeps/sh/init-first.c: Likewise.
60682
60683         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
60684         registers for frame unwinding purposes, add CFI directives.
60685         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60686         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
60687         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
60688         Likewise.
60689
60690         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
60691         __fortify_fail returning.
60692         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60693
60694         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
60695         sysdeps/sh/____longjmp_chk.S.
60696         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
60697         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
60698         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
60699         (gen-as-const-headers): Append sigaltstack-offsets.sym.
60700
60701         * sysdeps/sh/abort-instr.h: New file.
60702         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
60703         process in case exit returns.
60704
60705         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
60706         initialize the GOT register before use.
60707
60708         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
60709         calculation of ARGC > 4.
60710
60711         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
60712         meaningful names to some local labels.
60713
60714 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
60715             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60716
60717         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
60718         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
60719         (__arch_compare_and_exchange_val_16_acq): Likewise.
60720         (__arch_compare_and_exchange_val_32_acq): Likewise.
60721         (atomic_exchange_and_add): Fix gUSA sequence.
60722         (atomic_add): Likewise.
60723         (atomic_add_negative): Likewise.
60724         (atomic_add_zero): Likewise.
60725         (atomic_bit_test_set): Likewise.
60726
60727 2012-06-22  Andreas Schwab  <schwab@redhat.com>
60728
60729         [BZ #13579]
60730         * include/link.h (struct link_map): Add l_free_initfini.
60731         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
60732         l_initfini.
60733         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
60734         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
60735         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
60736         set.
60737
60738 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
60739
60740         * configure.in: Use AC_LANG_SOURCE.
60741         * configure: Regenerate.
60742
60743 2012-06-22  Roland McGrath  <roland@hack.frob.com>
60744
60745         * configure.in (libc_cv_localstatedir): New substituted variable.
60746         * configure: Regenerated.
60747         * config.make.in (localstatedir): New variable, substituted from
60748         libc_cv_localstatedir.
60749         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
60750         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
60751         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
60752         * sysdeps/gnu/configure: Regenerated.
60753
60754 2012-06-21  Jeff Law  <law@redhat.com>
60755
60756         [BZ #14277]
60757         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
60758         free.  Simplify list management for _LIBC case.
60759
60760 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
60761
60762         [BZ #14273]
60763         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
60764         Clear sign bit of 64-bit integer value before comparing against
60765         overflow value.
60766
60767         * sysdeps/mach/configure: Regenerated.
60768
60769 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
60770
60771         [BZ #14278]
60772         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
60773
60774 2012-06-21  Jeff Law  <law@redhat.com>
60775
60776         [BZ #13882]
60777         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
60778         uint16_t for elements in the "seen" array to avoid char overflows.
60779         * elf/dl-fini.c (_dl_sort_fini): Likewise.
60780         * elf/dl-open.c (dl_open_worker): Likewise.
60781
60782 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
60783
60784         * scripts/list-sources.sh: Scan PORTS for translations.
60785         * po/libc.pot: Regenerated.
60786
60787 2012-06-21  Andreas Jaeger  <aj@suse.de>
60788
60789         [BZ #12194]
60790         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
60791         warning.
60792         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
60793         * bits/byteswap-16.h (__bswap_16): Likewise.
60794         * bits/byteswap.h (__bswap_constant_16): Likewise.
60795
60796 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
60797
60798         [BZ #14117]
60799         * sysdeps/i386/fpu_control.h: Removed.
60800         * sysdeps/x86_64/fpu_control.h: Moved to ...
60801         * sysdeps/x86/fpu_control.h: Here.
60802
60803         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
60804         (_FPU_SETCW): Likewise.
60805
60806 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
60807
60808         [BZ #14117]
60809         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
60810         * sysdeps/x86/fpu/bits/mathinline.h: This.
60811         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
60812
60813         [BZ #14050]
60814         [BZ #14117]
60815         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
60816         functions if __x86_64__ is defined.
60817
60818 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
60819
60820         * string/endian.h: Add !__ASSEMBLER__ condition for including
60821         conversion interfaces.
60822
60823 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
60824
60825         [BZ #14241]
60826         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
60827         of ABS(x) in calculating zero to negative powers other than odd
60828         integers.
60829         * math/libm-test.inc (pow_test): Add more tests.
60830
60831 2012-06-15  Andreas Jaeger  <aj@suse.de>
60832
60833         * manual/contrib.texi (Contributors): Update entry of Liubov
60834         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
60835         Machado Filho.
60836
60837 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
60838
60839         * string/string.h: Add __wur to GNU version of strerror_r.
60840
60841 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
60842
60843         [BZ #14229]
60844         * string/Makefile (tests): Add tst-strtok_r.
60845         * string/tst-strtok_r.c: New file.
60846         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
60847         RAX_LP/RDX_LP on SAVE_PTR.
60848
60849 2012-06-14  Roland McGrath  <roland@hack.frob.com>
60850
60851         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
60852
60853 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
60854
60855         * libm_test.inc (csqrt_test): Allow more spurious underflow
60856         exceptions.
60857         (j0_test): Likewise.
60858         (j1_test): Likewise.
60859         (y0_test): Likewise.
60860         (y1_test): Likewise.
60861
60862 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
60863
60864         * po/Makefile (libc.pot): Use UTF-8 charset.
60865
60866 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
60867
60868         [BZ #14210]
60869         Suppress sign-conversion warning from FD_SET.
60870         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
60871         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
60872         not unsigned long int.
60873         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
60874
60875 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
60876
60877         [BZ #14050]
60878         [BZ #14117]
60879         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
60880         __extern_always_inline instead of __extern_inline.
60881         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
60882         (__signbit): Likewise.
60883         (__signbitl): Support C++ namespace.
60884         (lrintf): New inline function.
60885         (lrint): Likewise.
60886         (llrintf): Likewise.
60887         (llrint): Likewise.
60888         (fmaxf): Likewise.
60889         (fmax): Likewise.
60890         (fminf): Likewise.
60891         (fmin): Likewise.
60892         (rint): Likewise.
60893         (rintf): Likewise.
60894         (ceil): Likewise.
60895         (ceilf): Likewise.
60896         (floor): Likewise.
60897         (floorf): Likewise.
60898         (nearbyint): Likewise.
60899         (nearbyintf): Likewise.
60900
60901 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
60902
60903         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
60904         non-default versions.
60905
60906 2012-06-11  Roland McGrath  <roland@hack.frob.com>
60907
60908         [BZ #14218]
60909         * manual/argp.texi (Argp): Reword argp_parse description slightly.
60910
60911 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
60912
60913         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
60914         (FE_UPWARD, FE_DOWNWARD): Don't define.
60915         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
60916         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60917
60918         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
60919         reading it.
60920         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60921         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60922
60923 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60924
60925         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
60926         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
60927         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
60928         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
60929
60930 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
60931
60932         [BZ #14117]
60933         * sysdeps/i386/fpu/bits/fenv.h: Removed.
60934         * sysdeps/i386/fpu/Implies: New file.
60935         * sysdeps/x86_64/fpu/Implies: Likewise.
60936         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
60937         * sysdeps/x86/fpu/bits/fenv.h: This.
60938
60939         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
60940         __SSE_MATH__.
60941
60942 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
60943
60944         [BZ #14134]
60945         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
60946         character 0xffff that matches the last element of the
60947         conversion table.
60948
60949 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60950
60951         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
60952         fmodl commit.
60953
60954 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60955
60956         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
60957         values higher than 25.6283.
60958
60959 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60960
60961         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
60962         subnormal exponent extraction and add some __builtin_expect.
60963         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
60964         Fix for subnormal mantissa calculation.
60965
60966 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
60967
60968         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
60969         cpu2 is -1 and errno is not ENOSYS.
60970
60971 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
60972
60973         [BZ #14117]
60974         * sysdeps/i386/i486/bits/string.h: Renamed to ...
60975         * sysdeps/x86/bits/string.h: This.
60976         * sysdeps/x86_64/bits/string.h: Removed.
60977
60978         * sysdeps/i386/i486/bits/string.h: Define inline functions only
60979         if not compiling for x86-64, but compiling for >= i486.
60980
60981         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
60982         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
60983
60984         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
60985         New macro from Linux kernel 3.4.0.
60986         (FP_XSTATE_MAGIC2): Likewise.
60987         (FP_XSTATE_MAGIC2_SIZE): Likewise.
60988         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
60989         (struct _fpx_sw_bytes): New struct.
60990         (struct _xsave_hdr): Likewise.
60991         (struct _ymmh_state): Likewise.
60992         (struct _xstate): Likewise.
60993
60994         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
60995         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
60996         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
60997         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
60998         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
60999         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
61000
61001         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
61002         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
61003         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
61004         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
61005         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
61006         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
61007
61008 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
61009
61010         [BZ #13743]
61011         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
61012         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
61013         (sysdep_headers): Include sys/platform/ppc.h.
61014         * sysdeps/powerpc/test-gettimebase.c: Test for
61015         __ppc_get_timebase() to catch future ISA opcode/insn changes.
61016         * manual/Makefile (appendices): Include platform.texi.
61017         * manual/contrib.texi (Contributors): Update @node pointers.
61018         * manual/maint.texi (Maintenance): Likewise.
61019         (Platform): New node.
61020         * manual/platform.texi: New file.  Document the new features.
61021
61022 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
61023             Jakub Jelinek  <jakub@redhat.com>
61024
61025         [BZ #14188]
61026         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
61027         where __builtin_expect is unavailable.
61028
61029 2012-06-03  David S. Miller  <davem@davemloft.net>
61030
61031         * stdlib/longlong.h: Updated from GCC.
61032
61033 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
61034
61035         [BZ #14042]
61036         * sysdeps/powerpc/powerpc32/mcount.c: New file.
61037         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
61038         __mcount_internal.
61039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
61040         (GLIBC_2.16): Likewise.
61041
61042 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61043
61044         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
61045
61046 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
61047
61048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
61049         (default-abi): New variable.
61050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
61051         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
61052         variable.
61053         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
61054         Likewise.
61055         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
61056         Likewise.
61057         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
61058         Likewise.
61059
61060         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
61061         definition.  Document in comment.
61062
61063 2012-06-01  David S. Miller  <davem@davemloft.net>
61064
61065         * stdlib/longlong.h: Updated from GCC.
61066
61067 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61068
61069         [BZ #14117]
61070         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
61071         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
61072         sys/debugreg.h sys/io.h here.
61073         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
61074         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
61075         sys/io.h.
61076         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
61077         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
61078         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
61079         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
61080         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
61081         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
61082
61083         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
61084         Define only if __x86_64__ is defined.
61085
61086 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
61087
61088         [BZ #14048]
61089         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
61090         Use int64_t for variable i.
61091         * math/libm-test.inc (fmod_test): Add more tests.
61092
61093         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
61094         z computation is not scheduled after fetestexcept.
61095         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
61096         Use math_force_eval instead of asm to ensure calculation scheduled
61097         before exception test.
61098         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
61099         Ensure a1 + u.d computation is not scheduled after fetestexcept.
61100
61101 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
61102
61103         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
61104         computation is not scheduled after fetestexcept.
61105
61106 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61107
61108         [BZ #14117]
61109         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
61110         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
61111
61112 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61113
61114         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
61115         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
61116
61117 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
61118
61119         [BZ #14117]
61120         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
61121         <bits/wordsize.h>.
61122         (__WCHAR_MIN): Support __WORDSIZE == 64.
61123         (__WCHAR_MAX): Likewise.
61124
61125         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
61126         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
61127
61128         [BZ #14183]
61129         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
61130         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
61131
61132         [BZ #14117]
61133         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
61134         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
61135
61136         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
61137         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
61138
61139         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
61140         Defined to 1 if __x86_64__ isn't defined.
61141         (_STAT_VER_LINUX_OLD): New.
61142         (st_atime): Remove duplicate.
61143         (st_mtime): Likewise.
61144         (st_ctime): Likewise.
61145
61146 2012-05-31  David S. Miller  <davem@davemloft.net>
61147
61148         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
61149         entries.
61150
61151 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
61152
61153         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
61154         gen-libm-test.pl.
61155
61156         [BZ #14132]
61157         * elf/dl-reloc.c: Include <_itoa.h>.
61158         (_dl_reloc_bad_type): Remove use of INTUSE.
61159         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
61160         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
61161         * stdio-common/psiginfo.c (psiginfo): Likewise.
61162         * stdio-common/psignal.c (psignal): Likewise.
61163         * string/strsignal.c (strsignal): Likewise.
61164         * include/signal.h (_sys_siglist): Declare hidden proto.
61165         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
61166         INTVARDEF with libc_hidden_data_def.
61167         * stdio-common/itoa-udigits.c: Likewise.
61168         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
61169         (_itoa_lower_digits_internal): Remove declaration.
61170         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
61171         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
61172         (_sys_sigabbrev_internal): Remove aliases.
61173         (_sys_siglist): Define hidden alias.
61174
61175 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
61176
61177         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
61178         bits/sysctl.h.
61179
61180 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
61181
61182         [BZ #14117]
61183         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
61184         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
61185
61186         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
61187         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
61188         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
61189         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
61190         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
61191         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
61192
61193         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
61194         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
61195         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
61196
61197         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
61198         with __addr.
61199         (insw): Likewise.
61200         (insl): Likewise.
61201         (outsb): Likewise.
61202         (outsw): Likewise.
61203         (outsl): Likewise.
61204
61205         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
61206         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
61207         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
61208
61209         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
61210         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
61211         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
61212         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
61213         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
61214         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
61215
61216         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
61217         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
61218
61219         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
61220         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
61221
61222         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
61223         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
61224         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
61225
61226         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
61227         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
61228         to ...
61229         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
61230
61231         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
61232         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
61233         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
61234
61235         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
61236         for x86-64.
61237         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
61238
61239 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
61240
61241         * math/math.h (M_El): Use two more decimal places.
61242         (M_LOG2El): Likewise.
61243         (M_LOG10El): Likewise.
61244         (M_LN2l): Likewise.
61245         (M_LN10l): Likewise.
61246         (M_PIl): Likewise.
61247         (M_PI_2l): Likewise.
61248         (M_PI_4l): Likewise.
61249         (M_1_PIl): Likewise.
61250         (M_2_PIl): Likewise.
61251         (M_2_SQRTPIl): Likewise.
61252         (M_SQRT2l): Likewise.
61253         (M_SQRT1_2l): Likewise.
61254
61255 2012-05-31  David S. Miller  <davem@davemloft.net>
61256
61257         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
61258         values between float registers.
61259         * sysdeps/sparc/sparc64/memset.S: Likewise.
61260         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
61261
61262 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
61263
61264         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
61265         -D_FORTIFY_SOURCE=1.
61266         (CPPFLAGS-tst-longjmp_chk.c): Define.
61267         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
61268         (CPPFLAGS-tst-longjmp_chk2.c): Define.
61269         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
61270         CFLAGS-tst-wchar-h.c.
61271
61272 2012-05-31  Marek Polacek  <polacek@redhat.com>
61273
61274         [BZ #14132]
61275         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
61276         __endmntent_internal): Remove declaration.
61277         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
61278         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
61279         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
61280
61281 2012-05-30  David S. Miller  <davem@davemloft.net>
61282
61283         * sysdeps/sparc/sparc32/soft-fp/q_util.c
61284         (___Q_simulate_exceptions): Use real FP ops rather than writing
61285         into the %fsr.
61286         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
61287         Likewise.
61288
61289 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61290
61291         [BZ #14117]
61292         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
61293         * sysdeps/x86/bits/xtitypes.h: This.
61294
61295         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
61296         * sysdeps/x86/bits/wordsize.h: This.
61297
61298         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
61299         * sysdeps/x86/bits/huge_vall.h: This.
61300
61301         * sysdeps/i386/bits/select.h: Removed.
61302         * sysdeps/x86_64/bits/select.h: Renamed to ...
61303         * sysdeps/x86/bits/select.h: This.
61304
61305         * sysdeps/i386/bits/setjmp.h: Removed.
61306         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
61307         * sysdeps/x86/bits/setjmp.h: This.
61308
61309         * sysdeps/i386/bits/mathdef.h: Removed.
61310         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
61311         * sysdeps/x86/bits/mathdef.h: This.
61312
61313 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
61314
61315         [BZ #14132]
61316         * include/sys/socket.h (__connect_internal)
61317         (__libc_sa_len_internal): Remove declaration.
61318         (__connect, __libc_sa_len): Declare hidden_proto.
61319         (SA_LEN): Remove use of INTUSE.
61320         * socket/connect.c: Add libc_hidden_def.
61321         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
61322         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
61323         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
61324         alias.
61325         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
61326         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
61327         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
61328         of adding _internal alias.
61329
61330 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61331
61332         [BZ #14117]
61333         * sysdeps/i386/bits/link.h: Removed.
61334         * sysdeps/i386/bits/linkmap.h: Likewise.
61335         * sysdeps/x86_64/bits/link.h: Renamed to ...
61336         * sysdeps/x86/bits/link.h: This.
61337         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
61338         * sysdeps/x86/bits/linkmap.h: This.
61339
61340         * sysdeps/i386/bits/endian.h: Removed.
61341         * sysdeps/x86_64/bits/endian.h: Renamed to ...
61342         * sysdeps/x86/bits/endian.h: This.
61343
61344         * sysdeps/i386/bits/byteswap.h: Removed.
61345         * sysdeps/i386/bits/byteswap-16.h: Likewise.
61346         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
61347         * sysdeps/x86/bits/byteswap.h: This.
61348         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
61349         * sysdeps/x86/bits/byteswap-16.h: This.
61350         * sysdeps/i386/Implies: Add x86.
61351         * sysdeps/x86_64/Implies: Likewise.
61352
61353 2012-05-30  David S. Miller  <davem@davemloft.net>
61354
61355         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
61356         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
61357         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
61358         (FP_TRAPPING_EXCEPTIONS): Define.
61359         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
61360         (FP_TRAPPING_EXCEPTIONS): Define.
61361         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
61362         subnormals only when inexact has been signalled or underflow
61363         exceptions are enabled.
61364         (_FP_PACK_CANONICAL): Likewise.
61365
61366 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61367
61368         [BZ #14183]
61369         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
61370         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
61371
61372 2012-05-30  Richard Henderson  <rth@twiddle.net>
61373
61374         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
61375         with #ifndef NOT_IN_libc.
61376
61377         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
61378         marked to avoid plt entry.
61379
61380 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61381
61382         [BZ #14112]
61383         * Makeconfig (default-abi): New macro.
61384         (abi-includes): Likewise.
61385         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
61386         $(abi-$(default-abi)-lib-soname) for soname if defined.
61387         ($(common-objpfx)gnu/lib-names.stmp): Generate from
61388         abi-variants.
61389         * Makefile (installed-stubs): Likewise.
61390         * include/stubs-biarch.h: Removed.
61391         * scripts/lib-names.awk: Only handle one library at a time.
61392         * scripts/soversions.awk: Remove WORDSIZE support.
61393         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
61394         entries.
61395         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
61396         Removed.
61397         (syscall-list-default-condition): Likewise.
61398         (syscall-list-default-condition): Likewise.
61399         (syscall-list-includes): Likewise.
61400         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
61401         syscall-list-* with abi-*.  Handle undefined abi-variants.
61402         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
61403         * sysdeps/unix/sysv/linux/i386/Implies: New file.
61404         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
61405         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
61406         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
61407         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
61408         Removed.
61409         (syscall-list-32-options): Likewise.
61410         (syscall-list-32-condition): Likewise.
61411         (syscall-list-64-options): Likewise.
61412         (syscall-list-64-condition): Likewise.
61413         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
61414         macro.
61415         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
61416         Renamed to ...
61417         (abi-*): This.
61418         (abi-64-ld-soname): New macro.
61419         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
61420         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
61421         Renamed to ...
61422         (abi-*): This.
61423         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
61424         * sysdeps/x86_64/x32/shlib-versions: Likewise.
61425
61426 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
61427
61428         * sysdeps/unix/sysv/linux/kernel-features.h
61429         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
61430         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
61431         include <kernel-features.h>.
61432         [!__NR_ftruncate64]: Remove conditional code.
61433         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61434         [__NR_ftruncate64]: Make code unconditional.
61435         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61436         * sysdeps/unix/sysv/linux/truncate64.c: Do not
61437         include <kernel-features.h>.
61438         [!__NR_ftruncate64]: Remove conditional code.
61439         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61440         [__NR_ftruncate64]: Make code unconditional.
61441         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
61443         include <kernel-features.h>.
61444         [!__NR_ftruncate64]: Remove conditional code.
61445         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61446         [__NR_ftruncate64]: Make code unconditional.
61447         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
61449         include <kernel-features.h>.
61450         [!__NR_ftruncate64]: Remove conditional code.
61451         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61452         [__NR_ftruncate64]: Make code unconditional.
61453         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61454
61455         * configure.in (libc_cv_fpie): Weaken to a compile test using
61456         LIBC_TRY_CC_OPTION.
61457         * configure: Regenerated.
61458
61459 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61460
61461         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
61462         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
61463         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
61464         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
61465         Refreshed.
61466         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
61467         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
61468         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
61469         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
61470         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
61471         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
61472         Refreshed.
61473
61474 2012-05-27  David S. Miller  <davem@davemloft.net>
61475
61476         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
61477         (___Q_zero): New.
61478         (__Q_simulate_exceptions): Return void.  Change to simulate
61479         exceptions by writing into the %fsr.
61480         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
61481         (__Qp_handle_exceptions): Likewise.
61482         (numbers): Delete.
61483         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
61484         __Qp_handle_exceptions.
61485         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
61486         __Qp_handle_exceptions.
61487         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61488         as unused and give dummy FP_RND_NEAREST initializer.
61489         (FP_INHIBIT_RESULTS): Define.
61490         (___Q_simulate_exceptions): Update declaration.
61491         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
61492         formatting.
61493         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61494         as unused and give dummy FP_RND_NEAREST initializer.
61495         (__Qp_handle_exceptions): Update declaration.
61496         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
61497         formatting.
61498
61499 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
61500
61501         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
61502         the temporary FPU control word.
61503         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
61504         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
61505         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
61506         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
61507         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
61508         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
61509         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
61510         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
61511         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
61512         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
61513         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
61514
61515 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
61516
61517         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
61518         fields.
61519
61520 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
61521
61522         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
61523         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
61524         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
61525         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
61526         Likewise.
61527         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
61528         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
61529         Likewise.
61530
61531 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
61532
61533         * po/h.po: Update from translation team.
61534
61535 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
61536
61537         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
61538
61539         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
61540         handling of denormals.
61541         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
61542         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
61543         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
61544         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
61545         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
61546         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
61547         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
61548         Likewise.
61549
61550 2012-05-26  Marek Polacek  <polacek@redhat.com>
61551
61552         [BZ #14152]
61553         * math/libm-test.inc (fma_test): Don't always expect underflow
61554         exception.
61555
61556 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
61557
61558         [BZ #12416]
61559         * elf/tst-execstack.c: Include stackinfo.h.
61560         (do_test): Adjust test case to ensure that pthread_getattr_np
61561         behaviour remains the same after marking stack executable.
61562
61563 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61564
61565         * sysdeps/unix/sysv/linux/kernel-features.h
61566         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
61567         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
61568         kernel-features.h.
61569         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61570         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61571         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
61572         kernel-features.h.
61573         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61574         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61575
61576 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
61577
61578         * configure.in: Define the default includes to being none.
61579         * configure: Regenerated.
61580
61581 2012-05-25  Roland McGrath  <roland@hack.frob.com>
61582
61583         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
61584         * sysdeps/x86_64/setjmp.S: Likewise.
61585         * sysdeps/i386/bsd-setjmp.S: Likewise.
61586         * sysdeps/i386/bsd-_setjmp.S: Likewise.
61587         * sysdeps/i386/setjmp.S: Likewise.
61588         * sysdeps/i386/__longjmp.S: Likewise.
61589         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61590         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
61591
61592         * include/stap-probe.h: New file.
61593         * configure.in: Handle --enable-systemtap.
61594         * configure: Regenerated.
61595         * config.h.in (USE_STAP_PROBE): New #undef.
61596         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
61597         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
61598         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
61599
61600 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61601
61602         [BZ #13717]
61603         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
61604         to 2.4.0 where earlier.
61605         * sysdeps/unix/sysv/linux/configure: Regenerated.
61606         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
61607         <kernel-features.h>.
61608         [__ASSUME_32BITUIDS]: Make code unconditional.
61609         [!__ASSUME_32BITUIDS]: Remove conditional code.
61610         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
61611         <kernel-features.h>.
61612         [__ASSUME_32BITUIDS]: Make code unconditional.
61613         [!__ASSUME_32BITUIDS]: Remove conditional code.
61614         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
61615         [__ASSUME_32BITUIDS]: Make code unconditional.
61616         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
61617         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
61618         <kernel-features.h>.
61619         [__ASSUME_32BITUIDS]: Make code unconditional.
61620         [!__ASSUME_32BITUIDS]: Remove conditional code.
61621         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
61622         <kernel-features.h>.
61623         [__ASSUME_32BITUIDS]: Make code unconditional.
61624         [!__ASSUME_32BITUIDS]: Remove conditional code.
61625         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
61626         <kernel-features.h>.
61627         [__ASSUME_32BITUIDS]: Make code unconditional.
61628         [!__ASSUME_32BITUIDS]: Remove conditional code.
61629         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
61630         <kernel-features.h>.
61631         [__ASSUME_32BITUIDS]: Make code unconditional.
61632         [!__ASSUME_32BITUIDS]: Remove conditional code.
61633         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
61634         <kernel-features.h>.
61635         [__ASSUME_32BITUIDS]: Make code unconditional.
61636         [!__ASSUME_32BITUIDS]: Remove conditional code.
61637         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
61638         <kernel-features.h>.
61639         [__ASSUME_32BITUIDS]: Make code unconditional.
61640         [!__ASSUME_32BITUIDS]: Remove conditional code.
61641         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
61642         <kernel-features.h>.
61643         [__ASSUME_32BITUIDS]: Make code unconditional.
61644         [!__ASSUME_32BITUIDS]: Remove conditional code.
61645         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
61646         <kernel-features.h>.
61647         [__ASSUME_32BITUIDS]: Make code unconditional.
61648         [!__ASSUME_32BITUIDS]: Remove conditional code.
61649         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
61650         <kernel-features.h>.
61651         [__ASSUME_32BITUIDS]: Make code unconditional.
61652         [!__ASSUME_32BITUIDS]: Remove conditional code.
61653         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
61654         <kernel-features.h>.
61655         [__ASSUME_32BITUIDS]: Make code unconditional.
61656         [!__ASSUME_32BITUIDS]: Remove conditional code.
61657         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
61658         <kernel-features.h>.
61659         [__NR_setresgid] (__setresgid): Do not declare.
61660         [__ASSUME_32BITUIDS]: Make code unconditional.
61661         [!__ASSUME_32BITUIDS]: Remove conditional code.
61662         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
61663         <kernel-features.h>.
61664         [__NR_setresuid] (__setresuid): Do not declare.
61665         [__ASSUME_32BITUIDS]: Make code unconditional.
61666         [!__ASSUME_32BITUIDS]: Remove conditional code.
61667         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
61668         <kernel-features.h>.
61669         [__ASSUME_32BITUIDS]: Make code unconditional.
61670         [!__ASSUME_32BITUIDS]: Remove conditional code.
61671         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
61672         <kernel-features.h>.
61673         [__ASSUME_32BITUIDS]: Make code unconditional.
61674         [!__ASSUME_32BITUIDS]: Remove conditional code.
61675         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
61676         <kernel-features.h>.
61677         [__ASSUME_32BITUIDS]: Make code unconditional.
61678         [!__ASSUME_32BITUIDS]: Remove conditional code.
61679         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
61680         <kernel-features.h>.
61681         [__ASSUME_32BITUIDS]: Make code unconditional.
61682         [!__ASSUME_32BITUIDS]: Remove conditional code.
61683         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
61684         <kernel-features.h>.
61685         [__ASSUME_32BITUIDS]: Make code unconditional.
61686         [!__ASSUME_32BITUIDS]: Remove conditional code.
61687         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
61688         <kernel-features.h>.
61689         [__ASSUME_32BITUIDS]: Make code unconditional.
61690         [!__ASSUME_32BITUIDS]: Remove conditional code.
61691         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
61692         <kernel-features.h>.
61693         [__ASSUME_32BITUIDS]: Make code unconditional.
61694         [!__ASSUME_32BITUIDS]: Remove conditional code.
61695         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
61696         <kernel-features.h>.
61697         [__ASSUME_32BITUIDS]: Make code unconditional.
61698         [!__ASSUME_32BITUIDS]: Remove conditional code.
61699         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
61700         <kernel-features.h>.
61701         [__ASSUME_32BITUIDS]: Make code unconditional.
61702         [!__ASSUME_32BITUIDS]: Remove conditional code.
61703         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
61704         <kernel-features.h>.
61705         [__ASSUME_32BITUIDS]: Make code unconditional.
61706         [!__ASSUME_32BITUIDS]: Remove conditional code.
61707         * sysdeps/unix/sysv/linux/kernel-features.h
61708         (__ASSUME_SETRESUID_SYSCALL): Remove.
61709         (__ASSUME_SETRESGID_SYSCALL): Likewise.
61710         (__ASSUME_32BITUIDS): Likewise.
61711         (__ASSUME_LDT_WORKS): Likewise.
61712         (__ASSUME_O_DIRECTORY): Likewise.
61713         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
61714         architecture but not kernel version.
61715         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
61716         (__ASSUME_MMAP2_SYSCALL): Likewise.
61717         (__ASSUME_STAT64_SYSCALL): Likewise.
61718         (__ASSUME_IPC64): Likewise.
61719         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
61720         <kernel-features.h>.
61721         [__ASSUME_32BITUIDS]: Make code unconditional.
61722         [!__ASSUME_32BITUIDS]: Remove conditional code.
61723         * sysdeps/unix/sysv/linux/opendir.c: Do not include
61724         <kernel-features.h>.
61725         [__ASSUME_O_DIRECTORY]: Make code unconditional.
61726         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
61727         132096]: Remove conditional code.
61728         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
61729         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
61730         <kernel-features.h>.
61731         [__ASSUME_32BITUIDS]: Make code unconditional.
61732         [!__ASSUME_32BITUIDS]: Remove conditional code.
61733         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
61734         <kernel-features.h>.
61735         [__ASSUME_32BITUIDS]: Make code unconditional.
61736         [!__ASSUME_32BITUIDS]: Remove conditional code.
61737         * sysdeps/unix/sysv/linux/setegid.c: Do not include
61738         <kernel-features.h>.
61739         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
61740         unconditional.
61741         (__setresgid): Do not declare.
61742         [__ASSUME_32BITUIDS]: Make code unconditional.
61743         [!__ASSUME_32BITUIDS]: Remove conditional code.
61744         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
61745         <kernel-features.h>.
61746         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
61747         unconditional.
61748         (__setresuid): Do not declare.
61749         [__ASSUME_32BITUIDS]: Make code unconditional.
61750         [!__ASSUME_32BITUIDS]: Remove conditional code.
61751         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
61752         <kernel-features.h>.
61753         [__ASSUME_32BITUIDS]: Make code unconditional.
61754         [!__ASSUME_32BITUIDS]: Remove conditional code.
61755         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
61756         <kernel-features.h>.
61757         [__ASSUME_32BITUIDS]: Make code unconditional.
61758         [!__ASSUME_32BITUIDS]: Remove conditional code.
61759
61760 2012-05-25  Richard Henderson  <rth@twiddle.net>
61761
61762         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
61763         dl_hwcap to ifunc resolver.
61764         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
61765         elf_ifunc_invoke.
61766         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
61767         dl_hwcap to ifunc resolver.
61768         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
61769
61770 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61771
61772         [BZ #14153]
61773         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
61774         for |x| <= 2**-26, not 2**-57.
61775         * math/libm-test.inc (acos_test): Do not allow spurious underflow
61776         exception.
61777
61778 2012-05-24  Jeff Law  <law@redhat.com>
61779
61780         * stdio-common/Makefile (tests): Add bug25.
61781         * stdio-common/bug25.c: New test.
61782
61783 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61784
61785         [BZ #13576]
61786         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
61787         multiple of MALLOC_ALIGNMENT in size.
61788         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
61789
61790 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61791
61792         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
61793         Require >= 256.
61794         (FILENAME_MAX): Use macro-int-constant.
61795         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
61796         (_IOFBF): Use macro-int-constant.
61797         (_IOLBF): Likewise.
61798         (_IONBF): Likewise.
61799         (SEEK_CUR): Likewise.
61800         (SEEK_END): Likewise.
61801         (SEEK_SET): Likewise.
61802         (TMP_MAX): Likewise.
61803         (EOF): Use macro-int-constant.  Require < 0.
61804         (NULL): Use macro-constant.  Require == 0.
61805         (stdin): Require type to be FILE *.
61806         (stdout): Likewise.
61807         (stderr): Likewise.
61808         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
61809         macro-int-constant.
61810         (EXIT_SUCCESS): Likewise.
61811         (NULL): Use macro-constant.  Require == 0.
61812         (RAND_MAX): Use macro-int-constant.
61813         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
61814         [C99-based standards] (strtof): Require function.
61815         [C99-based standards] (strtold): Likewise.
61816         [C99-based standards] (strtoll): Likewise.
61817         [C99-based standards] (strtoull): Likewise.
61818         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
61819         [ISO || ISO99 || ISO11] (limits.h): Likewise.
61820         [ISO || ISO99 || ISO11] (math.h): Likewise.
61821         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
61822         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
61823         [ISO || ISO99 || ISO11] (*_t): Do not allow.
61824
61825 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
61826
61827         [BZ #14132]
61828         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
61829         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61830         * intl/dgettext.c (DCGETTEXT): Likewise.
61831         * intl/gettext.c (DCGETTEXT): Likewise.
61832         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
61833         * posix/regex_internal.h (gettext): Likewise.
61834         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
61835         Remove declaration.
61836         * include/argz.h (__argz_count_internal)
61837         (__argz_stringify_internal): Remove declaration.
61838         (__argz_count, __argz_stringify): Declare hidden proto.
61839         * intl/dcgettext.c: Remove use of INTDEF.
61840         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
61841         * string/argz-stringify.c: Likewise.
61842         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61843         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61844         Declare hidden proto.
61845         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61846         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61847         Declare hidden proto.
61848         * include/stdio.h (__asprintf_internal): Don't declare.
61849         (__asprintf): Don't define as macro.  Declare hidden proto.
61850         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
61851         (__fsetlocking): Declare hidden proto.
61852         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
61853         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
61854         hidden proto.
61855         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
61856         (_IO_setlinebuf): Remove use of INTUSE.
61857         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
61858         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
61859         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
61860         Remove declaration.
61861         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
61862         (_IO_do_flush): Remove use of INTUSE.
61863         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
61864         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
61865         (_IO_adjust_column, _IO_least_wmarker)
61866         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
61867         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
61868         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
61869         (_IO_default_doallocate, _IO_wdefault_doallocate)
61870         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
61871         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
61872         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
61873         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
61874         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
61875         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
61876         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
61877         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
61878         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
61879         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
61880         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
61881         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
61882         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
61883         proto.
61884         (_IO_flush_all_internal, _IO_adjust_column_internal)
61885         (_IO_default_uflow_internal, _IO_default_finish_internal)
61886         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
61887         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
61888         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
61889         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
61890         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
61891         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
61892         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
61893         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
61894         (_IO_file_close_internal, _IO_file_close_it_internal)
61895         (_IO_file_underflow_internal, _IO_file_overflow_internal)
61896         (_IO_file_init_internal, _IO_file_attach_internal)
61897         (_IO_file_fopen_internal, _IO_file_read_internal)
61898         (_IO_file_sync_internal, _IO_file_seek_internal)
61899         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
61900         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
61901         (_IO_str_underflow_internal, _IO_str_overflow_internal)
61902         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
61903         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
61904         (_IO_list_all_internal, _IO_link_in_internal)
61905         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
61906         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
61907         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
61908         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
61909         (_IO_do_write_internal, _IO_padn_internal)
61910         (_IO_getline_info_internal, _IO_getline_internal)
61911         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
61912         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
61913         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
61914         (_IO_vfscanf_internal, _IO_vfprintf_internal)
61915         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
61916         (_IO_init_internal, _IO_un_link_internal): Don't declare.
61917         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
61918         with libc_hidden_ver, remove use of INTUSE.
61919         * libio/genops.c: Likewise.
61920         * libio/freopen.c: Likewise.
61921         * libio/freopen64.c: Likewise.
61922         * libio/iofclose.c: Likewise.
61923         * libio/iofdopen.c: Likewise.
61924         * libio/iofflush.c: Likewise.
61925         * libio/iofflush_u.c: Likewise.
61926         * libio/iofgets.c: Likewise.
61927         * libio/iofgets_u.c: Likewise.
61928         * libio/iofopen.c: Likewise.
61929         * libio/iofopncook.c: Likewise.
61930         * libio/iofread.c: Likewise.
61931         * libio/iofread_u.c: Likewise.
61932         * libio/ioftell.c: Likewise.
61933         * libio/iofwrite.c: Likewise.
61934         * libio/iogetline.c: Likewise.
61935         * libio/iogets.c: Likewise.
61936         * libio/iogetwline.c: Likewise.
61937         * libio/iopadn.c: Likewise.
61938         * libio/iopopen.c: Likewise.
61939         * libio/ioseekoff.c: Likewise.
61940         * libio/ioseekpos.c: Likewise.
61941         * libio/iosetbuffer.c: Likewise.
61942         * libio/iosetvbuf.c: Likewise.
61943         * libio/ioungetc.c: Likewise.
61944         * libio/ioungetwc.c: Likewise.
61945         * libio/iovdprintf.c: Likewise.
61946         * libio/iovsprintf.c: Likewise.
61947         * libio/iovsscanf.c: Likewise.
61948         * libio/memstream.c: Likewise.
61949         * libio/obprintf.c: Likewise.
61950         * libio/oldfileops.c: Likewise.
61951         * libio/oldiofclose.c: Likewise.
61952         * libio/oldiofdopen.c: Likewise.
61953         * libio/oldiofopen.c: Likewise.
61954         * libio/oldiopopen.c: Likewise.
61955         * libio/oldstdfiles.c: Likewise.
61956         * libio/putc.c: Likewise.
61957         * libio/setbuf.c: Likewise.
61958         * libio/setlinebuf.c: Likewise.
61959         * libio/stdfiles.c: Likewise.
61960         * libio/strops.c: Likewise.
61961         * libio/vasprintf.c: Likewise.
61962         * libio/vscanf.c: Likewise.
61963         * libio/vsnprintf.c: Likewise.
61964         * libio/vswprintf.c: Likewise.
61965         * libio/wfiledoalloc.c: Likewise.
61966         * libio/wfileops.c: Likewise.
61967         * libio/wgenops.c: Likewise.
61968         * libio/wmemstream.c: Likewise.
61969         * libio/wstrops.c: Likewise.
61970         * libio/__fpurge.c: Likewise.
61971         * libio/__fsetlocking.c: Likewise.
61972         * assert/assert.c: Likewise.
61973         * debug/fgets_chk.c: Likewise.
61974         * debug/fgets_u_chk.c: Likewise.
61975         * debug/fread_chk.c: Likewise.
61976         * debug/fread_u_chk.c: Likewise.
61977         * debug/gets_chk.c: Likewise.
61978         * debug/obprintf_chk.c: Likewise.
61979         * debug/vasprintf_chk.c: Likewise.
61980         * debug/vdprintf_chk.c: Likewise.
61981         * debug/vsnprintf_chk.c: Likewise.
61982         * debug/vsprintf_chk.c: Likewise.
61983         * malloc/mtrace.c: Likewise.
61984         * misc/error.c: Likewise.
61985         * misc/syslog.c: Likewise.
61986         * stdio-common/asprintf.c: Likewise.
61987         * stdio-common/fxprintf.c: Likewise.
61988         * stdio-common/getw.c: Likewise.
61989         * stdio-common/isoc99_fscanf.c: Likewise.
61990         * stdio-common/isoc99_scanf.c: Likewise.
61991         * stdio-common/isoc99_vfscanf.c: Likewise.
61992         * stdio-common/isoc99_vscanf.c: Likewise.
61993         * stdio-common/isoc99_vsscanf.c: Likewise.
61994         * stdio-common/printf-prs.c: Likewise.
61995         * stdio-common/printf_fp.c: Likewise.
61996         * stdio-common/printf_fphex.c: Likewise.
61997         * stdio-common/printf_size.c: Likewise.
61998         * stdio-common/putw.c: Likewise.
61999         * stdio-common/scanf.c: Likewise.
62000         * stdio-common/sprintf.c: Likewise.
62001         * stdio-common/tmpfile.c: Likewise.
62002         * stdio-common/vfprintf.c: Likewise.
62003         * stdio-common/vfscanf.c: Likewise.
62004         * stdlib/strfmon_l.c: Likewise.
62005         * sunrpc/openchild.c: Likewise.
62006         * sunrpc/xdr_stdio.c: Likewise.
62007         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
62008         * sysdeps/mach/hurd/tmpfile.c: Likewise.
62009
62010 2012-05-24  Roland McGrath  <roland@hack.frob.com>
62011
62012         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62013
62014         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
62015         in the third column, to generate for the shared library an IFUNC
62016         that uses _dl_vdso_vsym.
62017         * Makerules (COMPILE.c, compile-stdin.c): New variables.
62018         * Makeconfig (object-suffixes-noshared): New variable.
62019
62020         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
62021         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
62022         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
62023         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
62024
62025         [BZ #14132]
62026         * include/sys/time.h (__gettimeofday): Remove macro.
62027         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
62028         * time/gettimeofday.c (__gettimeofday): Remove #undef.
62029         Remove INTDEF.
62030         (__gettimeofday): Add libc_hidden_def.
62031         (gettimeofday): Add libc_hidden_weak.
62032         * sysdeps/mach/gettimeofday.c: Likewise.
62033         * sysdeps/posix/gettimeofday.c: Likewise.
62034         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
62035         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
62036         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
62037         (__gettimeofday_internal): Remove strong_alias.
62038         (__gettimeofday): Add libc_hidden_def.
62039         (gettimeofday): Add libc_hidden_weak.
62040         * sysdeps/unix/syscalls.list (gettimeofday):
62041         Remove __gettimeofday_internal alias.
62042
62043 2012-05-24  Daniel Jacobowitz  <drow@false.org>
62044             H.J. Lu  <hongjiu.lu@intel.com>
62045
62046         [BZ #12495]
62047         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
62048         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
62049         (largebin_index_32_big): New.
62050         (largebin_index): Use it for 16-byte alignment.
62051         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
62052         correction with front_misalign.
62053
62054 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
62055
62056         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
62057         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
62058         Likewise.
62059         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
62060         Likewise.
62061         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
62062         Likewise.
62063         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
62064         Likewise.
62065         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
62066         Likewise.
62067         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
62068         Likewise.
62069         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
62070         Likewise.
62071         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
62072         Likewise.
62073         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
62074         Likewise.
62075         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
62076         Likewise.
62077         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
62078         Likewise.
62079         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
62080         Likewise.
62081
62082         * scripts/data/c++-types-x32-linux-gnu.data: New file.
62083         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
62084
62085 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
62086
62087         [BZ #10846]
62088         [BZ #14036]
62089         * math/libm-test.inc (exp_test): Add test from bug 14036.
62090         (pow_test): Add test from bug 10846.
62091
62092         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
62093         and other flags.
62094         (special_function): Do not include flags in test name.
62095         (parse_args): Likewise.
62096         * sysdeps/i386/fpu/libm-test-ulps: Update.
62097         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
62098         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
62099         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
62100         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62101
62102         * math/gen-libm-test.pl (%beautify): Add entries for underflow
62103         exceptions.
62104         * math/libm-test.inc ("Philosophy"): Update comment about
62105         exception testing.
62106         (UNDERFLOW_EXCEPTION): New macro.
62107         (UNDERFLOW_EXCEPTION_OK): Likewise.
62108         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
62109         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
62110         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
62111         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
62112         (INVALID_EXCEPTION_OK): Update value.
62113         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
62114         (OVERFLOW_EXCEPTION_OK): Likewise.
62115         (IGNORE_ZERO_INF_SIGN): Likewise.
62116         (test_exceptions): Handle underflow exceptions.
62117         (acos_test): Update for underflow exception expectations.
62118         (cexp_test): Likewise.
62119         (clog_test): Likewise.
62120         (clog10_test): Likewise.
62121         (csqrt_test): Likewise.
62122         (ctan_test): Likewise.
62123         (ctanh_test): Likewise.
62124         (exp_test): Likewise.
62125         (exp10_test): Likewise.
62126         (exp2_test): Likewise.
62127         (expm1_test): Likewise.
62128         (fma_test): Likewise.
62129         (j0_test): Likewise.
62130         (jn_test): Likewise.
62131         (nexttoward_test): Likewise.
62132         (pow_test): Likewise.
62133         (scalbn_test): Likewise.
62134         (scalbln_test): Likewise.
62135         (tan_test): Likewise.
62136         (y1_test): Likewise.
62137         * sysdeps/i386/fpu/libm-test-ulps: Update.
62138         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62139
62140 2012-05-23  David S. Miller  <davem@davemloft.net>
62141
62142         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
62143         (__libc_sigaction): Remove unused local variables.
62144
62145 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62146
62147         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
62148
62149 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
62150
62151         mktime: avoid signed integer overflow
62152         * time/mktime.c (__mktime_internal): Do not mishandle the case
62153         where diff == INT_MIN.
62154
62155         mktime: simplify computation of average
62156         * time/mktime.c (ranged_convert): Use new time_t_avg function
62157         instead of rolling our own (probably-slower) code.
62158
62159         mktime: do not assume signed right shift propagates sign bit
62160         * time/mktime.c (isdst_differ): New static function.
62161         (__mktime_internal): No need to normalize tm_isdst now.
62162         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
62163         tm_isdst values.
62164
62165         mktime: merge another wrapv change from gnulib
62166         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
62167         from some compilers.
62168
62169         mktime: remove incorrect attempt at unusual arithmetics
62170         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
62171         The code didn't really work on such machines anyway.
62172         (TYPE_MINIMUM): Assume two's complement.
62173         (twos_complement_arithmetic): Verify that long_int and time_t
62174         are two's complement (or unsigned, in the latter case).
62175
62176         mktime: check signed shifts on long_int and time_t, too
62177         * time/mktime.c (SHR): Check that shifts work as desired
62178         on the types long_int and time_t too, as SHR is used on
62179         such types.
62180
62181         mktime: do not assume 'long' is wide enough
62182         * time/mktime.c (verify): Move decl up.
62183         (long_int): New type.
62184         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
62185         to remove assumption in the code that 'long' is wide enough to
62186         store year values.  This assumption is not true on x32 and on
62187         some non-glibc platforms.
62188
62189         mktime: merge wrapv change from gnulib
62190         * time/mktime.c (WRAPV): New macro.
62191         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
62192         (guess_time_tm, __mktime_internal): Do not assume that signed
62193         integer overflow wraps around; modern compilers generate code
62194         where this assumption is no longer valid.
62195
62196 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62197
62198         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
62199         Replace "jmp L(pseudo_end)" with "ret".
62200         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
62201         Likewise.
62202
62203 2012-05-23  Andreas Jaeger  <aj@suse.de>
62204
62205         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
62206         * sysdeps/unix/sysv/linux/poll.c: Remove file.
62207
62208 2012-05-23  Andreas Jaeger  <aj@suse.de>
62209             Maximilian Attems  <max@stro.at>
62210
62211         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
62212         New macros.
62213
62214 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62215
62216         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
62217         code so that pseudo_end is just ret and the stack pointer is
62218         correct also for static library in error case.
62219
62220 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
62221
62222         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
62223         move to syscalls.list.
62224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
62225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
62226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
62227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
62228
62229         * manual/install.texi (Running make install): Do not mention Linux
62230         kernel version for which pt_chown is not needed.
62231         (Linux): Do not mention problems with nscd with 2.0 kernels.
62232         * INSTALL: Regenerated.
62233
62234 2012-05-23  Andreas Jaeger  <aj@suse.de>
62235
62236         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
62237         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
62238         macro.
62239         * sysdeps/unix/sysv/linux/s390/bits/mman.h
62240         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62241         * sysdeps/unix/sysv/linux/sh/bits/mman.h
62242         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62243         * sysdeps/unix/sysv/linux/i386/bits/mman.h
62244         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62245         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
62246         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62247         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
62248         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62249         * sysdeps/unix/sysv/linux/bits/in.h
62250         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
62251
62252 2012-05-22  Roland McGrath  <roland@hack.frob.com>
62253
62254         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
62255         (PREPARE_VERSION): Just use assert instead, it will be elided
62256         under [NDEBUG] anyway.
62257
62258 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62259
62260         * sysdeps/unix/sysv/linux/Makefile: Include
62261         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
62262         (sysdep_routines): Remove sysctl.
62263         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
62264         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
62265         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
62266         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
62267         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
62268
62269 2012-05-22  Andreas Jaeger  <aj@suse.de>
62270
62271         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
62272         that pseudo_end is just ret and the stack pointer is correct also
62273         for static library in error case.
62274
62275 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
62276
62277         [BZ #14122]
62278         * nss/nsswitch.c (defconfig_entries): New variable.
62279         (__nss_database_lookup): Don't leak defconfig entries.
62280         (nss_parse_service_list): Don't leak on error paths.
62281         (free_database_entries): New function.
62282         (free_defconfig): New function.
62283         (free_mem): Move common code to free_database_entries.
62284
62285 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62286
62287         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
62288         Add arch_prctl.
62289         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
62290
62291         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
62292         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
62293         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
62294         New macro.
62295         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
62296         (INTERNAL_SYSCALL_TYPES): Likewise.
62297         (LOAD_ARGS_TYPES_[1-6]): Likewise.
62298         (LOAD_REGS_TYPES_[1-6]): Likewise.
62299         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
62300         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
62301
62302 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62303
62304         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
62305         copysignl for GLIBC_2_0.
62306         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
62307         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
62308         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
62309         logbl for GLIBC_2_0.
62310         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
62311         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
62312
62313 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62314
62315         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
62316         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62317
62318         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
62319         Use "neg %eax".
62320
62321         * time/mktime.c: Update copyright years.
62322
62323 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62324
62325         mktime: merge comment-quoting-style change from gnulib
62326         * time/mktime.c: Quote 'like this' in comments.
62327         The GNU coding standards suggest that we no longer quote `like this',
62328         as "`" and "'" are typically rendered asymmetrically nowadays.
62329         The typical gnulib style is to quote 'like this' when quoting
62330         code, and "like this" when quoting English.
62331
62332         * time/mktime.c (compile-command): Add "-I.".
62333
62334         mktime: merge mktime-internal.h change from gnulib
62335         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
62336
62337         mktime: merge time_r change from gnulib
62338         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
62339
62340         mktime: merge DEBUG change from gnulib
62341         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
62342         case system <time.h> has a #define.
62343
62344         mktime: merge <sys/types.h> change from gnulib
62345         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
62346         since <time.t> is now guaranteed to define time_t.
62347
62348         mktime: merge HAVE_CONFIG_H change from gnulib
62349         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
62350
62351 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62352
62353         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62354         Use "neg %eax".
62355
62356         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
62357         __rlim_t cast.
62358         (struct rusage): Use anonymous union to pad each field to
62359         __syscall_slong_t.
62360
62361 2012-05-21  David S. Miller  <davem@davemloft.net>
62362
62363         * Makefules (o-iterator): Remove .s cases.
62364         (compile-command.s): Delete.
62365         (COMPILE.s): Delete.
62366         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
62367
62368 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
62369
62370         * configure.in (libc_cv_predef_stack_protector): Only consider
62371         "foobar" and "__stack_chk_fail" lines in libc_undefs.
62372         * configure: Regenerated.
62373
62374 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62375
62376         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62377         New macro.  Use R*LP on int and pointer.
62378         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
62379         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
62380         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
62381         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
62382
62383         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
62384         [__WORDSIZE_TIME64_COMPAT32] instead of
62385         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
62386         (struct utmp): Likewise.
62387         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
62388         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
62389         Renamed to ...
62390         (__WORDSIZE_TIME64_COMPAT32): This.
62391         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
62392         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
62393         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
62394         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
62395         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
62396         (__WORDSIZE_TIME64_COMPAT32): New macro.
62397
62398 2012-05-21  Andreas Jaeger  <aj@suse.de>
62399
62400         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
62401         only if [SHARED]. Add prototype for __wcschr_ia32.
62402
62403 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62404
62405         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
62406         of %rbp unmolested in the jmp_buf while mangling the low bits.
62407         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
62408         unmolested high bits of %rbp while demangling the low bits.
62409         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
62410
62411 2012-05-21  Andreas Jaeger  <aj@suse.de>
62412
62413         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
62414         * sunrpc/svc_simple.c: Use it for registerrpc.
62415         * sunrpc/xcrypt.c: Use it for passwd2des.
62416
62417         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
62418
62419 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62420
62421         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
62422         Don't define if [__SYSCALL_WORDSIZE != 32].
62423         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
62424         New macro.
62425
62426 2012-05-21  Bruno Haible  <bruno@clisp.org>
62427             Andreas Jaeger  <aj@suse.de>
62428
62429         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
62430         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
62431         inptr and inend for must_buffer_ch.
62432         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
62433         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
62434         * stdio-common/Makefile (tests): Remove bug15.
62435         (bug15-ENV): Remove macro.
62436         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
62437         anymore.
62438
62439 2012-05-19  Andreas Jaeger  <aj@suse.de>
62440             Roland McGrath  <roland@hack.frob.com>
62441
62442         * manual/contrib.texi: Completely rewritten. It contains now an
62443         alphabetical list of contributors and their contributions.
62444
62445 2012-05-21  Richard Henderson  <rth@twiddle.net>
62446
62447         * misc/getauxval.c (__getauxval): Use unsigned long int.
62448         * misc/sys/auxv.h: Include <sys/cdefs.h>.
62449         (getauxval): Use unsigned long int.
62450
62451 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62452
62453         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62454
62455 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62456
62457         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
62458         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
62459         __alignof__ (long double).
62460
62461 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62462
62463         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62464
62465 2012-05-20  Richard Henderson  <rth@twiddle.net>
62466
62467         * misc/getauxval.c: New file.
62468         * misc/sys/auxv.h: New file.
62469         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
62470         (routines): Add getauxval.
62471         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
62472         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
62473         * elf/dl-sysdep.c (_dl_auxv): Remove.
62474         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
62475         * elf/dl-support.c (_dl_auxv): New variable.
62476         (_dl_aux_init): Initialize it.
62477         * manual/startup.texi (Auxiliary Vector): New node.
62478         * sysdeps/generic/bits/hwcap.h: New file.
62479         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
62480         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
62481         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
62482         * sysdeps/sparc/sysdep.h: ... here.  Include it.
62483         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
62484         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
62485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62486         Update.
62487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
62488         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
62489         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
62490         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
62491         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62492         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62493         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
62494         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
62495
62496 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62497
62498         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62499
62500 2012-05-19  David S. Miller  <davem@davemloft.net>
62501
62502         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62503
62504 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62505
62506         [BZ #14123]
62507         * math/s_ccosh.c: Include <float.h>
62508         (__ccosh): Avoid internal overflow calculating sinh and cosh
62509         values before multiplying by sin and cos values.
62510         * math/s_ccoshf.c: Likewise.
62511         * math/s_ccoshl.c: Likewise.
62512         * math/s_csin.c: Likewise.
62513         * math/s_csinf.c: Likewise.
62514         * math/s_csinl.c: Likewise.
62515         * math/s_csinh.c: Likewise.
62516         * math/s_csinhf.c: Likewise.
62517         * math/s_csinhl.c: Likewise.
62518         * math/libm-test.inc (ccos_test): Add more tests.
62519         (ccosh_test): Likewise.
62520         (csin_test): Likewise.
62521         (csinh_test): Likewise.
62522         * sysdeps/i386/fpu/libm-test-ulps: Update.
62523         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62524
62525 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
62526
62527         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
62528         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
62529
62530         * sysdeps/x86_64/x32/_itoa.h: Add comment.
62531
62532 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62533
62534         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
62535         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
62536         * sysdeps/powerpc/soft-fp/Versions: Likewise.
62537         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
62538         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
62539         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
62540         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
62541         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
62542         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
62543         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
62544         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
62545         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
62546         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
62547         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
62548         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
62549         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
62550         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
62551         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
62552         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
62553         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
62554         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
62555         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
62556         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
62557         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
62558         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
62559         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
62560         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
62561         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
62562         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
62563         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
62564         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
62565
62566 2012-05-18  Andreas Jaeger  <aj@suse.de>
62567
62568         * csu/.gitignore: Delete.
62569
62570 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62571
62572         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
62573         (timex): Use __syscall_slong_t.
62574
62575 2012-05-18  Andreas Jaeger  <aj@suse.de>
62576             Carlos O'Donell  <carlos_odonell@mentor.com>
62577
62578         * manual/install.texi (Configuring and compiling): Update
62579         description about files modified in the source directory.
62580         * INSTALL: Regenerated.
62581
62582 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62583
62584         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
62585         value.  Use "or" to set return value to -1.
62586         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
62587         negate return value.
62588
62589 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62590
62591         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
62592         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
62593         failure if the compiler has Graphite support disabled.
62594         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
62595         Likewise.
62596         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
62597         (CFLAGS-memmove.c): Likewise.
62598         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
62599         Likewise.
62600
62601 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62602
62603         * sysdeps/x86_64/x32/_itoa.h: New file.
62604
62605         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
62606         getdents system call only if kernel and user dirents have the
62607         same d_ino and d_off.
62608
62609         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
62610         LLONG_MAX != LONG_MAX.
62611         (_itoa_word): Use _ITOA_WORD_TYPE on value.
62612         (_fitoa_word): Likewise.
62613
62614         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
62615         years.
62616         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
62617         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
62618         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
62619
62620         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
62621         include <bits/wordsize.h>.  Check __x86_64__ instead of
62622         __WORDSIZE.
62623         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
62624         if __x86_64__ is defined.  Use anonymous union on fpstate.
62625
62626         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
62627         anonymous union.
62628
62629 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
62630
62631         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
62632         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
62633         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
62634         Refer to _rtld_local_ro instead of _rtld_global_ro.
62635         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
62636         Likewise.
62637         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
62638         Likewise.
62639         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
62640         Likewise.
62641         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
62642         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
62643         of _rtld_global, and rtld_progname instead of _dl_argv[0].
62644
62645         [BZ #10882]
62646         * sysdeps/powerpc/powerpc32/dl-machine.c
62647         (__elf_machine_runtime_setup) [PROF]: Don't reference
62648         _dl_prof_resolve.
62649
62650 2012-05-18  Andreas Jaeger  <aj@suse.de>
62651
62652         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
62653         function only available for GCCs before 3.4 since GCC 3.4
62654         introduced a builtin.
62655         (lrint): Likewise.
62656         (llrintf): Likewise.
62657         (llrint): Likewise.
62658         (fmaxf): Likewise.
62659         (fmax): Likewise.
62660         (fminf): Likewise.
62661         (fmin): Likewise.
62662         (rint): Likewise.
62663         (rintf): Likewise.
62664         (nearbyint): Likewise.
62665         (nearbyintf): Likewise.
62666         (ceil): Likewise.
62667         (ceilf): Likewise.
62668         (floor): Likewise.
62669         (floorf): Likewise.
62670
62671 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62672
62673         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
62674         on both fields and cast pointer to __syscall_ulong_t.
62675
62676         * bits/types.h (__fsword_t): New type.
62677         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
62678         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
62679         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62680         (__FSWORD_T_TYPE): Likewise.
62681         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62682         (__FSWORD_T_TYPE): Likewise.
62683         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62684         (__FSWORD_T_TYPE): Likewise.
62685         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
62686         (__FSWORD_T_TYPE): Likewise.
62687         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
62688         __SWORD_TYPE with __fsword_t.
62689         (statfs64): Likewise.
62690
62691 2012-05-17  David S. Miller  <davem@davemloft.net>
62692
62693         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
62694
62695 2012-05-17  Andreas Jaeger  <aj@suse.de>
62696
62697         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
62698         warning.
62699
62700 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62701
62702         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
62703
62704 2012-05-17  Andreas Jaeger  <aj@suse.de>
62705
62706         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
62707         when it is used.
62708
62709 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62710
62711         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
62712
62713 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62714
62715         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
62716         * sysdeps/x86_64/tst-mallocalign1.c: New file.
62717
62718 2012-05-17  Andreas Jaeger  <aj@suse.de>
62719             Carlos O'Donell  <carlos_odonell@mentor.com>
62720
62721         [BZ #14059]
62722         * sysdeps/x86_64/multiarch/init-arch.h
62723         (bit_YMM_Usable): Rename to...
62724         (bit_AVX_Usable): ... this.
62725         (bit_FMA4_Usable): New macro.
62726         (bit_XMM_state): New macro.
62727         (bit_YMM_state): New macro.
62728         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
62729         [__ASSEMBLER__] (index_AVX_Usable): ... this.
62730         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
62731         (CPUID_OSXSAVE): New macro.
62732         (CPUID_AVX): New macro.
62733         (CPUID_FMA4): New macro.
62734         (index_YMM_Usable): Rename to...
62735         (index_AVX_Usable): ... this.
62736         (HAS_AVX): Use HAS_ARCH_FEATURE.
62737         (HAS_FMA4): Likewise.
62738         (HAS_YMM_USABLE): Remove.
62739         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
62740         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
62741         are present.
62742         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
62743         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
62744         * sysdeps/x86_64/multiarch/Makefile: Likewise.
62745         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
62746         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
62747
62748 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62749
62750         * math/libm-test.c: Support platforms without multiple rounding modes.
62751         * math/bug-nextafter.c: Support platforms without FP exceptions.
62752         * math/bug-nexttoward.c: Likewise.
62753         * math/test-fenv.c: Likewise.
62754         * math/test-misc.c: Likewise.
62755         * stdlib/bug-getcontext.c: Likewise.
62756
62757 2012-05-17  Andreas Jaeger  <aj@suse.de>
62758
62759         * manual/examples/search.c (critter_cmp): Change signature to
62760         avoid warnings.
62761         * manual/string.texi (Collation Functions): Likewise.
62762
62763 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62764
62765         * bits/types.h: Fold copyright years.
62766         * bits/typesizes.h: Likewise.
62767         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
62768         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
62769         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
62770         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
62771         * time/time.h: Likewise.
62772
62773 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
62774
62775         [BZ #208]
62776         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
62777         in instead of returning them.  Return void.
62778         (__libc_mallinfo): Accumulate over all arenas.
62779         (__malloc_stats): Adjust for change in int_mallinfo interface.
62780
62781 2012-05-16  Roland McGrath  <roland@hack.frob.com>
62782
62783         [BZ #10375]
62784         * configure.in (NM): Add AC_CHECK_TOOL for it.
62785         (libc_extra_cflags): New substituted variable.
62786         Check for -fstack-protector being used implicitly.
62787         * configure: Regenerated.
62788         * config.make.in (config-extra-cflags): New variable,
62789         gets @libc_extra_cflags@.
62790         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
62791
62792         [BZ #10375]
62793         * configure.in: Check for _FORTIFY_SOURCE being predefined.
62794         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
62795         * configure: Regenerated.
62796         * config.make.in (CPPUNDEFS): New substituted variable.
62797         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
62798         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
62799         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
62800
62801 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62802
62803         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
62804         (mq_attr): Use __syscall_slong_t.
62805
62806 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62807
62808         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
62809         Check __x86_64__ instead of __WORDSIZE.
62810         (_STAT_VER_LINUX): Likewise.
62811         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
62812         __syscall_ulong_t and __syscall_slong_t.
62813         (stat64): Likewise.
62814
62815 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62816
62817         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
62818
62819 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62820
62821         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
62822
62823 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62824
62825         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
62826         __syscall_ulong_t.
62827
62828         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
62829         include <bits/wordsize.h>.  Check __x86_64__ instead of
62830         __WORDSIZE.
62831         (greg_t): Use "__extension__ long long int" if __x86_64__ is
62832         defined.
62833         (mcontext_t): Replace "unsigned long" with "unsigned long long".
62834
62835         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
62836         include <bits/wordsize.h>.  Check __x86_64__ instead of
62837         __WORDSIZE.
62838         (user_regs_struct): Use "__extension__ unsigned long long"
62839         instead of "unsigned long" if __x86_64__ is defined.
62840         (user): Likewise.  Pad after pointer field if __ILP32__ is
62841         defined.
62842
62843 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
62844
62845         * configure.in (makeinfo): Require version 4.5 or later.  Allow
62846         versions 5 to 9.
62847         * configure: Regenerated.
62848         * manual/install.texi (texinfo): Increase version requirement to
62849         4.5 or later.
62850         * INSTALL: Regenerated.
62851
62852         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
62853
62854 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62855
62856         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
62857
62858         * sysdeps/x86_64/x32/ffs.c: New file.
62859
62860         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
62861         __syscall_ulong_t.
62862         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
62863         defined.  Use __syscall_ulong_t.
62864         (shminfo): Use __syscall_ulong_t.
62865         (shm_info): Likewise.
62866
62867         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
62868         __syscall_ulong_t.
62869
62870         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
62871         <bits/wordsize.h>.
62872         (msgqnum_t): Use __syscall_ulong_t.
62873         (msglen_t): Likewise.
62874         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
62875         __syscall_ulong_t.
62876
62877         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
62878         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62879
62880         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
62881
62882         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
62883         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
62884
62885         * sysvipc/sys/msg.h (msgbuf): Replace long int with
62886         __syscall_slong_t.
62887
62888         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
62889         include <bits/wordsize.h>.  Check __x86_64__ instead of
62890         __WORDSIZE.
62891
62892         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
62893         "unsigned long long int" if __x86_64__ is defined.
62894         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
62895
62896         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
62897         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62898         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
62899
62900         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
62901         <stdint.h>.
62902         (GET_PC): Cast to uintptr_t first.
62903         (GET_FRAME): Likewise.
62904         (GET_STACK): Likewise.
62905
62906         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
62907         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
62908         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
62909         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
62910         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
62911         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
62912         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
62913         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
62914         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
62915         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
62916         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
62917         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
62918         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
62919         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
62920         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
62921         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
62922         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
62923         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
62924         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
62925         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
62926         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
62927         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
62928         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
62929         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
62930         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
62931         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
62932         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
62933         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
62934         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
62935
62936 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
62937
62938         * Makerules (+depfiles): Also collect depfiles from .oS in
62939         $(extra-objs).
62940         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
62941         .oS, $(libnldbl-routines)).
62942
62943         * Makerules (native-compile-mkdep-flags): Define.
62944         * sunrpc/Makefile (extra-objs): Add $(addprefix
62945         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
62946         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
62947         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
62948         calling $(make-target-directory).
62949
62950 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62951
62952         * bits/types.h (__snseconds_t): Removed.
62953         * time/time.h (struct timespec): Replace __snseconds_t with
62954         __syscall_slong_t.
62955         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
62956         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
62957         Likewise.
62958         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62959         (__SNSECONDS_T_TYPE): Likewise.
62960         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62961         (__SNSECONDS_T_TYPE): Likewise.
62962         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62963         (__SNSECONDS_T_TYPE): Likewise.
62964
62965 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62966
62967         * sysdeps/mach/hurd/bits/typesizes.h
62968         (__SYSCALL_SLONG_TYPE): New macro.
62969         (__SYSCALL_ULONG_TYPE): Likewise.
62970
62971 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62972
62973         * bits/types.h (__syscall_slong_t): New type.
62974         (__syscall_ulong_t): Likewise.
62975
62976         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
62977         (__SYSCALL_ULONG_TYPE): Likewise.
62978         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62979         (__SYSCALL_SLONG_TYPE): Likewise.
62980         (__SYSCALL_ULONG_TYPE): Likewise.
62981         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62982         (__SYSCALL_SLONG_TYPE): Likewise.
62983         (__SYSCALL_ULONG_TYPE): Likewise.
62984         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62985         (__SYSCALL_SLONG_TYPE): Likewise.
62986         (__SYSCALL_ULONG_TYPE): Likewise.
62987
62988 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62989
62990         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
62991         Add sigaltstack-offsets.sym.
62992         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
62993         <sigaltstack-offsets.h>.
62994         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
62995         longjmp_msg pointer.
62996         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
62997         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
62998         signal stack.
62999         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
63000
63001 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
63002
63003         * elf/stackguard-macros.h: Remove file.
63004         * sysdeps/generic/stackguard-macros.h: New file.
63005         * sysdeps/i386/stackguard-macros.h: Likewise.
63006         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
63007         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
63008         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
63009         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
63010         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
63011         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
63012         * sysdeps/x86_64/stackguard-macros.h: Likewise.
63013         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
63014         <elf/stackguard-macros.h>.
63015
63016         [BZ #14109]
63017         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
63018         __aligned__ in attribute.
63019         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
63020         (gregset_t): Likewise.
63021
63022 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63023
63024         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
63025         * sysdeps/x86_64/64/Implies-after: Here.  New file.
63026         * sysdeps/x86_64/x32/Implies-after: New file.
63027
63028 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63029
63030         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
63031         and access return value for _dl_profile_fixup.  Use R10_LP to
63032         load frame size.
63033
63034 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63035
63036         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
63037
63038 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63039
63040         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
63041         * sysdeps/x86_64/x32/sysdep.h: New file.
63042
63043 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63044
63045         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
63046         * sysdeps/x86_64/setjmp.S: Likewise.
63047
63048 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63049
63050         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
63051         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
63052         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
63053         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
63054         remove unused global constant.
63055
63056 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
63057
63058         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
63059         include of <not-cancel.h>.
63060
63061 2012-05-15  Roland McGrath  <roland@hack.frob.com>
63062
63063         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
63064
63065 2012-05-15  Jeff Law  <law@redhat.com>
63066             Andreas Jaeger  <aj@suse.de>
63067
63068         [BZ #13594]
63069         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
63070         out from...
63071         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
63072         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
63073         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
63074         code changing __hst_map_handle.map.
63075
63076 2012-05-15  Roland McGrath  <roland@hack.frob.com>
63077
63078         * configure.in (sysnames): Look for Implies-before and Implies-after
63079         files.
63080         * configure: Regenerated.
63081
63082 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63083
63084         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
63085         8-byte data alignment with LP_SIZE alignment.
63086
63087 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63088
63089         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
63090         into R10_LP.
63091
63092 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63093
63094         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
63095
63096 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63097
63098         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
63099         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
63100         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
63101         Likewise.
63102         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
63103
63104 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63105
63106         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
63107         (stackinfo_sub_sp): Likewise.
63108
63109 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63110
63111         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
63112         RAX_LP.
63113
63114 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63115
63116         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
63117         into R*_LP.
63118
63119 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63120
63121         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
63122         sizes into R*_LP.
63123
63124 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63125
63126         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
63127
63128 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63129
63130         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
63131         into R11_LP and load __x86_64_shared_cache_size_half into
63132         R8_LP.
63133
63134 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63135
63136         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
63137         R8_LP.
63138
63139 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63140
63141         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
63142         logb for POWER7.
63143         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
63144         logbf for POWER7.
63145         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
63146         logbl for POWER7.
63147         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
63148         powerpc32/power7/fpu/s_logb.c via #include.
63149         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
63150         powerpc32/power7/fpu/s_logbf.c via #include.
63151         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
63152         powerpc32/power7/fpu/s_logbl.c via #include.
63153
63154 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
63155
63156         * README.libm: Remove file.
63157
63158 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63159
63160         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
63161         count for x32.  Use R*_LP and omit operand-size suffix.
63162
63163 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63164
63165         * shlib-versions: Move x86_64-.*-linux.* entries to ...
63166         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
63167         * sysdeps/x86_64/x32/shlib-versions: New file.
63168
63169 2012-05-14  Roland McGrath  <roland@hack.frob.com>
63170
63171         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
63172         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
63173         Use _dl_fatal_printf instead.
63174
63175 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
63176
63177         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
63178         set if not set by the user.  Do not allow for being unset.
63179         * sysdeps/unix/sysv/linux/configure: Regenerated.
63180
63181 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63182
63183         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
63184         the `q' suffix from lea and replace .quad with ASM_ADDR.
63185
63186 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63187
63188         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
63189         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
63190         instead of $17.
63191         (PTR_DEMANGLE): Likewise.
63192
63193 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63194
63195         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
63196         (LP_OP): Likewise.
63197         (ASM_ADDR): Likewise.
63198         (RAX_LP): Likewise.
63199         (RBP_LP): Likewise.
63200         (RBX_LP): Likewise.
63201         (RCX_LP): Likewise.
63202         (RDI_LP): Likewise.
63203         (RSI_LP): Likewise.
63204         (RSP_LP): Likewise.
63205         (R8_LP): Likewise.
63206         (R9_LP): Likewise.
63207         (R10_LP): Likewise.
63208         (R10_LP): Likewise.
63209         (R11_LP): Likewise.
63210         (R12_LP): Likewise.
63211         (R13_LP): Likewise.
63212         (R14_LP): Likewise.
63213         (R15_LP): Likewise.
63214
63215 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63216
63217         * sysdeps/x86_64/x32/dl-machine.h: New file.
63218
63219 2012-05-14  Andreas Jaeger  <aj@suse.de>
63220
63221         * manual/Makefile (subdir): Remove export of subdir.
63222         (all): Remove target.
63223         (.PHONY): Remove all from list.
63224         (mkinstalldirs): Remove.
63225         (.PHONY): Remove installdirs from list.
63226         ($(inst_infodir)/libc.info): Use make-target-directory.
63227         (installdirs): Remove.
63228         (subdir_%): Remove.
63229         (glibc-targets): Remove.
63230         (lib): Remove.
63231         (stubs): Remove.
63232         ($(objpfx)stubs ../po/manual.pot): Remove.
63233         ($(objpfx)stamp%): Remove.
63234         (make-target-directory): Remove.
63235         (subdir_install): Remove.
63236         (routines): Remove.
63237         (aux): Remove.
63238         (sources): Remove.
63239         (objects): Remove.
63240         (headers): Remove.
63241
63242         [BZ #13750]
63243         * manual/.gitignore: Remove, it's not needed anymore.
63244         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
63245         all files in it.
63246         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
63247         directory.
63248         (texis): Renamed to $(objpfx)texis.
63249         (texis-path): New, contains path to generated files.
63250         (chapters.%): Use texis-path for complete path, add extra argument
63251         libc-texinfo.sh.
63252         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
63253         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
63254         (summary,texi, stamp-summary): Use complete path of
63255         files. Generate files in build dir.
63256         (dir-add.texi): Build in build dir.
63257         (libm-err.texi,stamp-libm-err): Likewise.
63258         (version.texi, stamp-version): Likewise.
63259         (.%c.texi): Likewise.
63260         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
63261         (mostlyclean): Remove target.
63262         (realclean): Remove target.
63263         (generated): Add new variable with contents from mostlyclean and
63264         realclean, remove entries duplicated in common-mostlyclean, add
63265         stamp-libm-err and stamp-version.
63266         (generated-dirs): Add libc directory.
63267         ($(inst_infodir)/libc.info): Install files from build dir.
63268
63269         * manual/install.texi (Configuring and compiling): Adjust since
63270         the info files are not part of the tar ball anymore.
63271
63272 2012-05-14  Andreas Jaeger  <aj@suse.de>
63273
63274         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
63275         variable.
63276
63277 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
63278
63279         [BZ #13717]
63280         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
63281         to 2.2.0 where earlier.
63282         * sysdeps/unix/sysv/linux/configure: Regenerated.
63283         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
63284         Remove conditional code.
63285         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
63286         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
63287         Remove conditional code.
63288         [!__NR_lchown]: Likewise.
63289         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63290         [__NR_lchown]: Likewise.
63291         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
63292         comment referencing __ASSUME_LCHOWN_SYSCALL.
63293         * sysdeps/unix/sysv/linux/i386/sigaction.c
63294         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63295         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63296         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
63297         Remove conditional code.
63298         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
63299         (__protocol_available): Remove #if 0 code.
63300         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
63301         conditional code.
63302         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
63303         * sysdeps/unix/sysv/linux/kernel-features.h
63304         (__ASSUME_GETCWD_SYSCALL): Don't define.
63305         (__ASSUME_REALTIME_SIGNALS): Likewise.
63306         (__ASSUME_PREAD_SYSCALL): Likewise.
63307         (__ASSUME_PWRITE_SYSCALL): Likewise.
63308         (__ASSUME_POLL_SYSCALL): Likewise.
63309         (__ASSUME_LCHOWN_SYSCALL): Likewise.
63310         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
63311         non-SPARC.
63312         (__ASSUME_SIOCGIFNAME): Don't define.
63313         (__ASSUME_MSG_NOSIGNAL): Likewise.
63314         (__ASSUME_SENDFILE): Define unconditionally.
63315         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
63316         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
63317         conditional code.
63318         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
63319         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
63320         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63321         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63322         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
63323         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63324         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
63326         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63327         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
63329         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63330         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
63332         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63333         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
63335         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63336         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
63338         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63339         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
63341         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63342         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
63344         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63345         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
63347         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63348         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63349         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
63350         Remove conditional code.
63351         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63352         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63353         Remove conditional code.
63354         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63355         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
63356         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
63357         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63358         Remove conditional code.
63359         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63360         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
63361         Remove conditional code.
63362         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63363         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
63364         Remove conditional code.
63365         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63366         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63367         Remove conditional code.
63368         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63369         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63370         Remove conditional code.
63371         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63372         * sysdeps/unix/sysv/linux/sh/pwrite64.c
63373         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63374         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63375         * sysdeps/unix/sysv/linux/sigaction.c
63376         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63377         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63378         * sysdeps/unix/sysv/linux/sigpending.c
63379         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63380         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63381         * sysdeps/unix/sysv/linux/sigprocmask.c
63382         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63383         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63384         * sysdeps/unix/sysv/linux/sigsuspend.c
63385         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63386         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63387         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
63388         (__libc_missing_rt_sigs): Remove.
63389         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
63390         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
63391         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
63392         Remove conditional code.
63393         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
63394         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
63395         return 1.
63396         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
63397         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
63398         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
63399         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
63400
63401 2012-05-14  Andreas Jaeger  <aj@suse.de>
63402
63403         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
63404         it's not used in glibc.
63405         (__coshm1): Likewise.
63406         (__acosh1p): Likewise.
63407         (__sgn): Likewise.
63408
63409         * manual/string.texi (Copying and Concatenation): Add missing
63410         variable in concat example.
63411         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
63412
63413 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63414
63415         [BZ #14103]
63416         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
63417         __builtin_clzl with __builtin_clzll.
63418
63419 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63420
63421         [BZ #14104]
63422         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
63423         libc_freeres_ptr.
63424
63425 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63426
63427         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
63428         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
63429         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
63430         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
63431
63432 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
63433
63434         * NEWS: Update ia64 info.
63435
63436 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
63437
63438         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
63439         used as bcopy.
63440
63441 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
63442
63443         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
63444         * sysdeps/unix/syscalls.list (dup3): Likewise.
63445         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
63446         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
63447
63448 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63449
63450         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
63451         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
63452
63453 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63454
63455         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
63456         thread pointer.
63457         (TLS_IE): Use mov/add instead of movq/addq to load thread
63458         pointer.
63459         (TLS_GD_PREFIX): New.
63460         (TLS_GD): Use it.
63461
63462 2012-05-11  David S. Miller  <davem@davemloft.net>
63463
63464         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
63465         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
63466         (_FPU_SETCW): Likewise.
63467
63468 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63469
63470         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
63471         is 32-byte aligned.
63472
63473 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
63474
63475         [BZ #11837]
63476         * iconvdata/gb18030.c: Update tables.
63477         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
63478         characters specially.
63479         (BODY for TO_LOOP): Add encoding of missing ranges.
63480
63481 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
63482
63483         [BZ #13673]
63484         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
63485         * sysdeps/mach/hurd/dup3.c: Likewise.
63486         * sysdeps/mach/hurd/readlinkat.c: Likewise.
63487         * sysdeps/powerpc/memmove.c:: Likewise.
63488
63489 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63490
63491         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
63492         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
63493
63494 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63495
63496         * elf/elf.h (R_X86_64_RELATIVE64): New.
63497         (R_X86_64_NUM): Updated.
63498         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
63499         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
63500         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
63501         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
63502         tst-quad1pie tst-quad2pie
63503         (modules-names): Add tst-quadmod1 tst-quadmod2.
63504         ($(objpfx)tst-quad1): New dependency.
63505         ($(objpfx)tst-quad2): Likewise.
63506         ($(objpfx)tst-quad1pie): Likewise.
63507         ($(objpfx)tst-quad2pie): Likewise.
63508         * sysdeps/x86_64/tst-quad1.c: New file.
63509         * sysdeps/x86_64/tst-quad1pie.c: New file.
63510         * sysdeps/x86_64/tst-quad2.c: Likewise.
63511         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
63512         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
63513         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
63514         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
63515         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
63516
63517 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63518
63519         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
63520         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
63521         * streams/stropts.h (t_scalar_t): Define type.
63522
63523         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
63524         (_PATH_PRESERVE): Set to "/var/lib".
63525         (_PATH_RWHODIR): Set to "/var/spool/rwho".
63526
63527         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
63528         instead of int.
63529
63530         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
63531         if __dir_mkfile succeeded.
63532
63533         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
63534         checking for _hurd_dtablesize.  Unlock it right after having
63535         finished _hurd_dtable allocation.
63536
63537 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63538
63539         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
63540         * sysdeps/mach/hurd/configure: Regenerated.
63541         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
63542         special-casing to...
63543         * sysdeps/gnu/configure.in: ... this new file.
63544         * sysdeps/unix/sysv/linux/configure: Regenerated.
63545         * sysdeps/gnu/configure: New generated file.
63546
63547         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
63548         for Linux: use nsec instead of usec, as well as:
63549         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
63550         members of type struct timespec.
63551         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
63552         New macros.
63553         (struct stat64): Likewise.
63554         (_STATBUF_ST_NSEC): New macro.
63555         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
63556
63557         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
63558         __strtoul_internal rather than strtoul.
63559
63560 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63561
63562         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
63563         and reject them.
63564
63565 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63566
63567         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
63568         which preserves existing values.
63569         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
63570
63571 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63572
63573         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
63574         TIMEOUT values.  Return EINVAL for NFDS values either negative or
63575         greater than FD_SETSIZE.
63576
63577 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63578
63579         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
63580         allocated, call __vm_protect to finish enabling the existing space, and
63581         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
63582         allocate the remainder.
63583
63584 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63585
63586         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
63587         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
63588
63589 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63590
63591         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
63592         sysdeps/mach/hurd/readlink.c.
63593
63594         * posix/tst-sysconf.c (posix_options): Only use
63595         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
63596         _POSIX_SYNCHRONIZED_IO when they are defined
63597         * sysdeps/mach/hurd/bits/posix_opt.h:
63598         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
63599         (_XOPEN_REALTIME): Undefine macro.
63600         (_XOPEN_REALTIME_THREADS): Undefine macro.
63601         (_XOPEN_SHM): Undefine macro.
63602         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
63603         macro to -1.
63604         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
63605         macro to -1.
63606         (_POSIX_ASYNC_IO): Undefine macro.
63607         (_POSIX_PRIORITIZED_IO): Undefine macro.
63608         (_POSIX_SPIN_LOCKS): Define macro to -1.
63609
63610         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
63611         SA_NODEFER, SA_RESETHAND.
63612         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
63613         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
63614         F_DUPFD_CLOEXEC.
63615
63616 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63617
63618         * elf/Makefile (pldd-modules): Define unconditionally.
63619
63620 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63621
63622         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
63623
63624 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63625
63626         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
63627         Return ENOENT when name is empty.
63628         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
63629
63630 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63631
63632         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
63633
63634         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
63635
63636 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63637
63638         Fix mlock in all cases except non-readable pages.
63639         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
63640         instead of VM_PROT_ALL as parameter to __vm_wire function.
63641
63642         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
63643         (__mkdir): When path is `/', just fail with EEXIST.
63644         * sysdeps/mach/hurd/mkdirat.c: Likewise.
63645
63646 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63647
63648         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
63649         <sys/uio.h> (for writev).
63650         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
63651         and <sys/param.h> (for MIN).
63652
63653 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63654
63655         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
63656         REQUESTED_TIME.  Properly set the remaining time and return EINTR
63657         if interrupted.
63658
63659 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63660
63661         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
63662         Depend on against $(link-rpcuserlibs).
63663
63664 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63665
63666         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
63667         (__libc_stack_end): Do not use attribute_relro.
63668         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
63669         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
63670         to libthread-provided value.
63671         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
63672         attribute_relro.
63673
63674 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63675
63676         [BZ #3748]
63677         * bits/libc-lock.h (__libc_once_get): New macro.
63678         * sysdeps/mach/bits/libc-lock.h: Likewise.
63679         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
63680         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
63681         instead of using implementation details.
63682
63683         * libio/fileops.c: Unconditionally include <kernel-features.h>.
63684         * libio/freopen.c: Likewise.
63685         * libio/freopen64.c: Likewise.
63686         * misc/syslog.c: Likewise.
63687         * nscd/connections.c: Likewise.
63688         * nscd/netgroupcache.c: Likewise.
63689         * sysdeps/posix/getcwd.c: Likewise.
63690
63691 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63692
63693         * math/w_ilogbf.c: Add #include <limits.h>.
63694
63695 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63696
63697         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
63698         path instead of returning without unlocking.
63699
63700         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
63701         immediate-write ioctls.
63702         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
63703
63704 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63705
63706         * sysdeps/mach/hurd/i386/init-first.c (init): Use
63707         __builtin_frame_address instead of making assumptions about the
63708         location of the return address relative to DATA.  Force early load of
63709         the return address.
63710         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
63711         __builtin_frame_address.
63712
63713         dup3 for GNU Hurd.
63714         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
63715         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
63716         implement dup3 and do some further code clean-ups.
63717         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
63718         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
63719
63720 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63721
63722         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
63723
63724         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
63725         HURD_CRITICAL_END around holding _hurd_dtable_lock.
63726         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
63727         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
63728         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
63729         d->port.lock.
63730
63731         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
63732         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
63733         when handler == SIG_ERR, not when handler != SIG_ERR.
63734
63735 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63736
63737         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
63738         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
63739         definitions.
63740
63741         accept4 for GNU Hurd.
63742         * include/sys/socket.h (__libc_accept4): New prototype.
63743         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
63744         to implement __libc_accept4.
63745         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
63746         __libc_accept4.
63747         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
63748
63749         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
63750         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
63751         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
63752         signal-defines.sym.
63753
63754 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63755
63756         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
63757
63758 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63759
63760         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
63761         assertion on O_CLOEXEC flag.
63762         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
63763         * hurd/intern-fd.c: Likewise.
63764         * hurd/port2fd.c: Likewise.
63765
63766 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63767
63768         [BZ #3906]
63769         * bits/in.h (IPV6_PKTINFO): Define new macro.
63770         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
63771
63772 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63773
63774         [BZ #13954]
63775         [BZ #13955]
63776         [BZ #13956]
63777         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
63778         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
63779         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
63780         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
63781         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
63782         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
63783         * math/libm-test.inc (logb_test) : Additional logb tests.
63784
63785 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
63786             Andreas Jaeger  <aj@suse.de>
63787
63788         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
63789         * configure: Regenerated.
63790         * config.h.in (LINK_OBSOLETE_RPC): New macro.
63791         * config.make.in (link-obsolete-rpc): New substituted variable.
63792         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
63793         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
63794         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63795         (shared-only-routines): Don't set it under [link-obsolete-rpc],
63796         so that libc.a contains the symbols.
63797         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63798         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
63799         * sunrpc/auth_none.c: Likewise.
63800         * sunrpc/auth_unix.c: Likewise.
63801         * sunrpc/authdes_prot.c: Likewise.
63802         * sunrpc/authuxprot.c: Likewise.
63803         * sunrpc/clnt_gen.c: Likewise.
63804         * sunrpc/clnt_perr.c: Likewise.
63805         * sunrpc/clnt_raw.c: Likewise.
63806         * sunrpc/clnt_simp.c: Likewise.
63807         * sunrpc/clnt_tcp.c: Likewise.
63808         * sunrpc/clnt_udp.c: Likewise.
63809         * sunrpc/clnt_unix.c: Likewise.
63810         * sunrpc/des_crypt.c: Likewise.
63811         * sunrpc/des_soft.c: Likewise.
63812         * sunrpc/get_myaddr.c: Likewise.
63813         * sunrpc/key_call.c: Likewise.
63814         * sunrpc/key_prot.c: Likewise.
63815         * sunrpc/netname.c: Likewise.
63816         * sunrpc/pm_getmaps.c: Likewise.
63817         * sunrpc/pm_getport.c: Likewise.
63818         * sunrpc/pmap_clnt.c: Likewise.
63819         * sunrpc/pmap_prot.c: Likewise.
63820         * sunrpc/pmap_prot2.c: Likewise.
63821         * sunrpc/pmap_rmt.c: Likewise.
63822         * sunrpc/publickey.c: Likewise.
63823         * sunrpc/rpc_cmsg.c: Likewise.
63824         * sunrpc/rpc_common.c: Likewise.
63825         * sunrpc/rpc_dtable.c: Likewise.
63826         * sunrpc/rpc_prot.c: Likewise.
63827         * sunrpc/rpc_thread.c: Likewise.
63828         * sunrpc/rtime.c: Likewise.
63829         * sunrpc/svc.c: Likewise.
63830         * sunrpc/svc_auth.c: Likewise.
63831         * sunrpc/svc_raw.c: Likewise.
63832         * sunrpc/svc_run.c: Likewise.
63833         * sunrpc/svc_tcp.c: Likewise.
63834         * sunrpc/svc_udp.c: Likewise.
63835         * sunrpc/svc_unix.c: Likewise.
63836         * sunrpc/svcauth_des.c: Likewise.
63837         * sunrpc/xcrypt.c: Likewise.
63838         * sunrpc/xdr.c: Likewise.
63839         * sunrpc/xdr_array.c: Likewise.
63840         * sunrpc/xdr_float.c: Likewise.
63841         * sunrpc/xdr_intXX_t.c: Likewise.
63842         * sunrpc/xdr_mem.c: Likewise.
63843         * sunrpc/xdr_rec.c: Likewise.
63844         * sunrpc/xdr_ref.c: Likewise.
63845         * sunrpc/xdr_sizeof.c: Likewise.
63846         * sunrpc/xdr_stdio.c: Likewise.
63847
63848 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63849
63850         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
63851         change.  Update copyright years.
63852
63853 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63854
63855         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
63856
63857 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
63858             Joseph Myers  <joseph@codesourcery.com>
63859             Paul Pluzhnikov  <ppluzhnikov@google.com>
63860
63861         [BZ #14012]
63862         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
63863         requiring rpcgen.
63864         [cross-compiling] (extra-libs): Likewise.
63865         [cross-compiling] (extra-libs-others): Likewise.
63866         [cross-compiling] (librpcsvc-routines): Likewise.
63867         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
63868         [cross-compiling] (omit-deps): Likewise.
63869         (sunrpc-CPPFLAGS): New variable.
63870         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
63871         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
63872         (cross-rpcgen-objs): New variable.
63873         (extra-objs): Append $(cross-rpcgen-objs).
63874         ($(cross-rpcgen-objs)): New rule.
63875         ($(objpfx)cross-rpcgen): Likewise.
63876         (rpcgen-cmd): Define to use $(built-program-file).  Expand
63877         comment.
63878         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
63879         ($(objpfx)x%.stmp): Likewise.
63880         * sunrpc/proto.h [IS_IN_build] (_): Define.
63881         [IS_IN_build] (_libc_intl_domainname): Likewise.
63882
63883 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63884
63885         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
63886         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
63887         and R_X86_64_TPOFF64.
63888
63889 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63890
63891         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
63892         sysdeps/unix/sysv/syscalls.list.
63893         (stime): Likewise.
63894         (utime): Likewise.
63895         * sysdeps/unix/sysv/syscalls.list: Remove file.
63896
63897 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63898
63899         [BZ #3440]
63900         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
63901         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
63902         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
63903         (__LC_IDENTIFICATION): Make these macros useful in #if
63904         expressions, as required by C99.
63905
63906 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
63907
63908         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
63909         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
63910         after this.
63911
63912 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
63913
63914         * stdlib/longlong.h: Updated from GCC.
63915
63916 2012-05-09  Andreas Jaeger  <aj@suse.de>
63917
63918         * nscd/nscd.c (run_modes): Make named enum, reorder so that
63919         default is first entry.
63920         (run_mode): Set type.
63921         (main): Remove informal message about syslog.
63922         (options): Fix typo.
63923
63924         [BZ #14053]
63925         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
63926         to asm.
63927         (lrint): Likewise.
63928         (llrintf): Likewise.
63929         (llrint): Likewise.
63930         (rint): Likewise.
63931         (rintf): Likewise.
63932         (nearbyint): Likewise.
63933         (nearbyintf): Likewise.
63934
63935 2012-05-09  Andreas Jaeger  <aj@suse.de>
63936             Pedro Alves  <palves@redhat.com>
63937
63938         * nscd/nscd.c (run_mode): Use enum.
63939         (main): Cleanup coding style issue.
63940
63941 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
63942             Andreas Jaeger  <aj@suse.de>
63943
63944         * nscd/nscd.c (go_background): Replaced with...
63945         (run_mode): ... this.
63946         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
63947         (options): Add -F --foreground.
63948         (main): Implement it.
63949         (parse_opt): Parse it.
63950
63951 2012-05-09  Andreas Jaeger  <aj@suse.de>
63952
63953         [BZ #14083]
63954         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
63955         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
63956         -Wconversion warning.
63957         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
63958         Likewise.
63959
63960 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
63961
63962         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
63963         == 0.
63964         (LC_ALL): Use macro-int-constant.
63965         (LC_COLLATE): Likewise.
63966         (LC_CTYPE): Likewise.
63967         (LC_MESSAGES): Likewise.
63968         (LC_MONETARY): Likewise.
63969         (LC_NUMERIC): Likewise.
63970         (LC_TIME): Likewise.
63971         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
63972         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63973         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63974         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
63975         Specify type.
63976         [C99-based standards] (float_t): Expect type.
63977         [C99-based standards] (double_t): Expect type.
63978         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
63979         type.
63980         [C99-based standards] (HUGE_VALL): Likewise.
63981         [C99-based standards] (INFINITY): Likewise.
63982         [C99-based standards] (NAN): Likewise.
63983         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
63984         [C99-based standards] (FP_NAN): Likewise.
63985         [C99-based standards] (FP_NORMAL): Likewise.
63986         [C99-based standards] (FP_SUBNORMAL): Likewise.
63987         [C99-based standards] (FP_ZERO): Likewise.
63988         [C99-based standards] (FP_FAST_FMA): Use
63989         optional-macro-int-constant.  Specify type.  Require == 1.
63990         [C99-based standards] (FP_FAST_FMAF): Likewise.
63991         [C99-based standards] (FP_FAST_FMAL): Likewise.
63992         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
63993         [C99-based standards] (FP_ILOGBNAN): Likewise.
63994         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
63995         Specify type.
63996         [C99-based standards] (MATH_ERREXCEPT): Likewise.
63997         [C99-based standards] (math_errhandling): Specify type.
63998         [ISO99 || ISO11] (signgam): Do not allow.
63999         [non-C99-based standards] (copysignf): Do not allow.
64000         [non-C99-based standards] (exp2f): Likewise.
64001         [non-C99-based standards] (log2f): Likewise.
64002         [non-C99-based standards] (modff): Allow.
64003         [non-C99-based standards] (erff): Do not allow.
64004         [non-C99-based standards] (erfcf): Likewise.
64005         [non-C99-based standards] (gammaf): Likewise.
64006         [non-C99-based standards] (hypotf): Likewise.
64007         [non-C99-based standards] (j0f): Likewise.
64008         [non-C99-based standards] (j1f): Likewise.
64009         [non-C99-based standards] (jnf): Likewise.
64010         [non-C99-based standards] (lgammaf): Likewise.
64011         [non-C99-based standards] (tgammaf): Likewise.
64012         [non-C99-based standards] (y0f): Likewise.
64013         [non-C99-based standards] (y1f): Likewise.
64014         [non-C99-based standards] (ynf): Likewise.
64015         [non-C99-based standards] (isnanf): Likewise.
64016         [non-C99-based standards] (acoshf): Likewise.
64017         [non-C99-based standards] (asinhf): Likewise.
64018         [non-C99-based standards] (atanhf): Likewise.
64019         [non-C99-based standards] (cbrtf): Likewise.
64020         [non-C99-based standards] (expm1f): Likewise.
64021         [non-C99-based standards] (ilogbf): Likewise.
64022         [non-C99-based standards] (log1pf): Likewise.
64023         [non-C99-based standards] (logbf): Likewise.
64024         [non-C99-based standards] (nextafterf): Likewise.
64025         [non-C99-based standards] (remainderf): Likewise.
64026         [non-C99-based standards] (rintf): Likewise.
64027         [non-C99-based standards] (scalbf): Likewise.
64028         [non-C99-based standards] (copysignl): Likewise.
64029         [non-C99-based standards] (exp2l): Likewise.
64030         [non-C99-based standards] (log2l): Likewise.
64031         [non-C99-based standards] (modfl): Allow.
64032         [non-C99-based standards] (erfl): Do not allow.
64033         [non-C99-based standards] (erfcl): Likewise.
64034         [non-C99-based standards] (gammal): Likewise.
64035         [non-C99-based standards] (hypotl): Likewise.
64036         [non-C99-based standards] (j0l): Likewise.
64037         [non-C99-based standards] (j1l): Likewise.
64038         [non-C99-based standards] (jnl): Likewise.
64039         [non-C99-based standards] (lgammal): Likewise.
64040         [non-C99-based standards] (tgammal): Likewise.
64041         [non-C99-based standards] (y0l): Likewise.
64042         [non-C99-based standards] (y1l): Likewise.
64043         [non-C99-based standards] (ynl): Likewise.
64044         [non-C99-based standards] (isnanl): Likewise.
64045         [non-C99-based standards] (acoshl): Likewise.
64046         [non-C99-based standards] (asinhl): Likewise.
64047         [non-C99-based standards] (atanhl): Likewise.
64048         [non-C99-based standards] (cbrtl): Likewise.
64049         [non-C99-based standards] (expm1l): Likewise.
64050         [non-C99-based standards] (ilogbl): Likewise.
64051         [non-C99-based standards] (log1pl): Likewise.
64052         [non-C99-based standards] (logbl): Likewise.
64053         [non-C99-based standards] (nextafterl): Likewise.
64054         [non-C99-based standards] (remainderl): Likewise.
64055         [non-C99-based standards] (rintl): Likewise.
64056         [non-C99-based standards] (scalbl): Likewise.
64057         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64058         [non-C99-based standards] (FP_*): Do not allow.
64059         [C99-based standards] (FP_*): Change to
64060         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
64061         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64062         allow.
64063         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
64064         (SIG_ERR): Likewise.
64065         [X/Open-based standards] (SIG_HOLD): Likewise.
64066         (SIG_IGN): Likewise.
64067         (SIGABRT): Use macro-int-constant.  Specify type.  Require
64068         positive value.
64069         (SIGFPE): Likewise.
64070         (SIGILL): Likewise.
64071         (SIGINT): Likewise.
64072         (SIGSEGV): Likewise.
64073         (SIGTER): Likewise.
64074         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
64075         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
64076         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
64077         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
64078         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
64079         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
64080         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
64081         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
64082         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
64083         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
64084         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
64085         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
64086         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
64087         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
64088         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
64089         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
64090         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
64091         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
64092         [X/Open-based standards] (SIGTRAP): Likewise.
64093         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
64094         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
64095         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
64096         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
64097         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64098         allow.
64099
64100 2012-05-08  Ian Wienand  <ianw@vmware.com>
64101
64102         [BZ #14080]
64103         * time/tzset.c (__tzset_parse_tz): Update default rules for
64104         daylight time changes in the Energy Policy Act of 2005.
64105
64106 2012-05-09  Andreas Jaeger  <aj@suse.de>
64107
64108         [BZ #13983]
64109         * elf/ldconfig.c (parse_conf): Change string to make clear that
64110         ldconfig only issued a warning if ld.so.conf does not exist.
64111
64112 2012-05-08  David S. Miller  <davem@davemloft.net>
64113
64114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
64115         movxtod instead of popping the value on the stack.
64116
64117         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64118
64119 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
64120
64121         * config.h.in: Add HAVE_ARM_PCS_VFP.
64122
64123 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
64124
64125         [BZ #13979]
64126         * include/features.h: Warn if user requests __FORTIFY_SOURCE
64127         checking but the checks are disabled for any reason.
64128
64129 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
64130
64131         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
64132         and ELF64_R_TYPE with ELFW(R_TYPE).
64133
64134 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
64135
64136         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
64137         (ulimit): Likewise.
64138
64139         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
64140         (settimeofday): Likewise.
64141
64142 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
64143
64144         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
64145         a struct th_u2 inside the union, and move tu_block/tu_code into
64146         a new th_u3 union of tu_block/tu_code inside of that.  Move
64147         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
64148         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
64149         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
64150         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
64151         (th_stuff): Change to th_u1.tu_stuff.
64152         (th_data): Define.
64153         (th_msg): Change to th_u1.th_u2.tu_data.
64154
64155 2012-05-07  David S. Miller  <davem@davemloft.net>
64156
64157         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64158
64159         [BZ #14074]
64160         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
64161         (SETUP_PIC_REG): Use it.
64162         (SETUP_PIC_REG_LEAF): Use it.
64163
64164 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
64165
64166         [BZ #13885]
64167         [BZ #13923]
64168         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64169         USE_AS_EXPM1L.
64170         (EXPL_FINITE): Likewise.
64171         (FLDLOG): Likewise.
64172         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
64173         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
64174         e_expl.S.
64175         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64176         USE_AS_EXPM1L.
64177         (EXPL_FINITE): Likewise.
64178         (FLDLOG): Likewise.
64179         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
64180         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
64181         e_expl.S.
64182         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
64183         test of -max_value argument for long double.
64184         * sysdeps/i386/fpu/libm-test-ulps: Update.
64185         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64186
64187 2012-05-06  David S. Miller  <davem@davemloft.net>
64188
64189         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
64190         quad soft-float symbols whose references which are compiler
64191         generated.
64192         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
64193
64194 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
64195
64196         [BZ #13884]
64197         [BZ #13914]
64198         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64199         USE_AS_EXP10L.
64200         (EXPL_FINITE): Likewise.
64201         (FLDLOG): Likewise.
64202         (c0): Likewise.
64203         (c1): Likewise.
64204         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
64205         Adjust comments for base varying.
64206         (__expl_finite): Change alias to EXPL_FINITE.
64207         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
64208         e_expl.S.
64209         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
64210         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
64211         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
64212         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
64213         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64214         USE_AS_EXP10L.
64215         (EXPL_FINITE): Likewise.
64216         (FLDLOG): Likewise.
64217         (c0): Likewise.
64218         (c1): Likewise.
64219         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
64220         Adjust comments for base varying.
64221         (__expl_finite): Change alias to EXPL_FINITE.
64222         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
64223         tests for bugs.
64224         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64225
64226         [BZ #14064]
64227         * math/libm-test.inc (check_float_internal): Correct ulp
64228         calculation for subnormal expected results.
64229
64230 2012-05-06  Andreas Jaeger  <aj@suse.de>
64231
64232         * Makeconfig (+math-flags): New, set to -frounding-math.
64233         (+cflags): Add +math-flags so that all of glibc gets compiled with
64234         it.
64235
64236         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
64237
64238 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
64239
64240         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
64241         Disable one test.
64242
64243         [BZ #13787]
64244         [BZ #13922]
64245         [BZ #14036]
64246         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
64247         (__ieee754_expl): Allow for and saturate large arguments.
64248         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
64249         (u_threshold): Likewise.
64250         (__exp): Call __ieee754_exp before checking for overflow and
64251         underflow.
64252         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
64253         (u_threshold): Likewise.
64254         (__expf): Call __ieee754_expf before checking for overflow and
64255         underflow.
64256         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
64257         (u_threshold): Likewise.
64258         (__expl): Call __ieee754_expl before checking for overflow and
64259         underflow.
64260         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
64261         (__ieee754_expl): Allow for and saturate large arguments.
64262         * math/libm-test.inc (exp_test): Add another test.  Do not allow
64263         missing overflow exception on overflow.
64264         (expm1_test): Do not allow missing overflow exception on overflow.
64265
64266         * sysdeps/i386/fpu/e_expl.c: Move to ...
64267         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
64268         rather than using inline asm.
64269         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
64270         * sysdeps/x86_64/fpu/e_expl.S: Copy from
64271         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
64272
64273         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
64274         (nice): Likewise.
64275         (poll): Likewise.
64276         (signal): Likewise.
64277         (time): Likewise.
64278         (times): Likewise.
64279
64280 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64281
64282         * sysdeps/unix/syscalls.list (adjtime): Add entry from
64283         sysdeps/unix/common/syscalls.list.
64284         (fchmod): Likewise.
64285         (fchown): Likewise.
64286         (ftruncate): Likewise.
64287         (getrusage): Likewise.
64288         (gettimeofday): Likewise.
64289         (setpgid): Likewise.
64290         (setregid): Likewise.
64291         (setreuid): Likewise.
64292         (sigaction): Likewise.
64293         (truncate): Likewise.
64294         (vhangup): Likewise.
64295         * sysdeps/unix/common/syscalls.list: Remove file.
64296         * sysdeps/unix/bsd/Implies: Don't include unix/common.
64297         * sysdeps/unix/sysv/linux/Implies: Likewise.
64298
64299 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
64300
64301         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
64302         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
64303         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
64304         Moved to ...
64305         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
64306         Here.
64307         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
64308         to ...
64309         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
64310         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
64311         to ...
64312         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
64313         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
64314         to ...
64315         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
64316         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
64317         to ...
64318         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
64319         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
64320         to ...
64321         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
64322         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
64323         to ...
64324         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
64325         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
64326         to ...
64327         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
64328         Here.
64329         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
64330         to ...
64331         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
64332         Here.
64333         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
64334         to ...
64335         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
64336         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
64337         Moved to ...
64338         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
64339         Here.
64340         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
64341         to ...
64342         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
64343
64344 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64345
64346         * sysdeps/unix/common/bits/dirent.h: Remove file.
64347         * sysdeps/unix/common/bits/fcntl.h: Likewise.
64348
64349         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
64350         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
64351         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
64352         * sysdeps/unix/bsd/isatty.c: Likewise.
64353         * sysdeps/unix/bsd/tcdrain.c: Likewise.
64354         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
64355         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
64356
64357 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64358
64359         [BZ #13563]
64360         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
64361         long double comparison inaccuracies.
64362         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
64363         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
64364
64365 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
64366
64367         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
64368         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
64369
64370 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64371
64372         [BZ #14049]
64373         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
64374         nonzero digits before rounding a hex value.
64375         * stdlib/tst-strtod.c (tests): Add another test.
64376
64377 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64378
64379         * sysdeps/s390/fpu/libm-test-ulps: Update.
64380
64381 2012-05-03  Andreas Jaeger  <aj@suse.de>
64382
64383         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
64384         does not get optimized out.
64385         (malloc_opt_barrier): New.
64386
64387 2012-05-03  Andreas Jaeger  <aj@suse.de>
64388             Roland McGrath  <roland@hack.frob.com>
64389
64390         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
64391         intermediate file deletion.
64392         (generated): Add .symlist files.
64393
64394 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
64395
64396         [BZ #13775]
64397         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
64398         Redirect under this condition.
64399         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64400         [__USE_GNU] (__dprintf_chk): Not under this condition.
64401         [__USE_GNU] (__vdprintf_chk): Likewise.
64402         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
64403         under this condition.
64404         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64405         [__USE_XOPEN2K8] (dprintf): Define under this condition.
64406         [__USE_XOPEN2K8] (vdprintf): Likewise.
64407         [__USE_GNU] (__dprintf_chk): Not under this condition.
64408         [__USE_GNU] (__vdprintf_chk): Likewise.
64409         [__USE_GNU] (dprintf): Likewise.
64410         [__USE_GNU] (vdprintf): Likewise.
64411
64412 2012-05-03  Roland McGrath  <roland@hack.frob.com>
64413
64414         * elf/Makefile (common-generated): Set this instead of generated for
64415         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
64416         $(all-built-dso)-derived lists.
64417
64418 2012-05-03  Andreas Jaeger  <aj@suse.de>
64419
64420         * sysdeps/i386/fpu/libm-test-ulps: Update.
64421
64422         * FAQ: Removed.
64423         * FAQ.in: Likewise.
64424         * scripts/gen-FAQ.pl: Likewise.
64425         * manual/install.texi (Installation): Point to online location of
64426         FAQ.
64427         * Makefile (files-for-dist): Remove FAQ.
64428         (FAQ): Remove.
64429
64430 2012-05-02  Allan McRae  <allan@archlinux.org>
64431
64432         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
64433         (LDFLAGS-reldepmod5.so): Likewise.
64434         (LDFLAGS-reldep6mod1.so): Likewise.
64435         (LDFLAGS-reldep6mod4.so): Likewise.
64436         (LDFLAGS-reldep8mod3.so): Likewise.
64437         (LDFLAGS-unload4mod1.so): Likewise.
64438         (LDFLAGS-unload4mod2.so): Likewise.
64439         (LDFLAGS-tst-initorder): Likewise.
64440         (LDFLAGS-tst-initordera2.so): Likewise.
64441         (LDFLAGS-tst-initordera3.so): Likewise.
64442         (LDFLAGS-tst-initordera4.so): Likewise.
64443         (LDFLAGS-tst-initorderb2.so): Likewise.
64444         (LDFLAGS-noload): Likewise.
64445         (LDFLAGS-next): Likewise.
64446         (LDFLAGS-order2mod1.so): Likewise.
64447         (LDFLAGS-order2mod2.so): Likewise.
64448         (LDFLAGS-tst-initorder2): Likewise.
64449         (LDFLAGS-tst-initorder2a.so): Likewise.
64450         (LDFLAGS-tst-initorder2b.so): Likewise.
64451         (LDFLAGS-tst-initorder2c.so): Likewise.
64452         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
64453
64454 2012-05-02  David S. Miller  <davem@davemloft.net>
64455
64456         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64457
64458 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
64459
64460         [BZ #14055]
64461         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
64462
64463 2012-05-02  Andreas Jaeger  <aj@suse.de>
64464
64465         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
64466         since we manipulate rounding mode.
64467         (CPPFLAGS-test-idouble.c): Likewise.
64468         (CPPFLAGS-test-ifloat.c): Likewise.
64469         (CFLAGS-test-ldouble.c): Likewise.
64470         (CFLAGS-test-double.c): Likewise.
64471         (CFLAGS-test-float.c): Likewise.
64472         (CFLAGS-test-misc.c): Likewise.
64473         (CFLAGS-test-test-fenv.c): Likewise.
64474
64475 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64476
64477         [BZ #2550]
64478         [BZ #2570]
64479         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
64480         comparisons to determine direction to adjust input.
64481
64482 2012-05-01  Roland McGrath  <roland@hack.frob.com>
64483
64484         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
64485         output to the target.
64486
64487         * scripts/localplt.awk: New file.
64488         * elf/Makefile ($(objpfx)check-localplt): Target removed.
64489         (check-localplt-CFLAGS): Variable removed.
64490         ($(all-built-dso:=.jmprel)): New static pattern rule.
64491         (generated): Add those targets.
64492         (localplt-built-dso): New variable.
64493         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
64494
64495         * elf/check-localplt.c: File removed.
64496
64497         * scripts/check-execstack.awk: New file.
64498         * elf/Makefile ($(objpfx)check-execstack): Target removed.
64499         (check-execstack-CFLAGS): Variable removed.
64500         ($(objpfx)check-execstack.h): Target removed.
64501         ($(objpfx)execstack-default): New target.
64502         (generated): Add that instead of check-execstack.h.
64503         ($(all-built-dso:=.phdr)): New static pattern rule.
64504         (generated): Add those targets.
64505         * elf/check-execstack.c: File removed.
64506
64507         * scripts/check-textrel.awk: New file.
64508         * elf/Makefile ($(objpfx)check-textrel): Target removed.
64509         (check-textrel-CFLAGS): Variable removed.
64510         (all-built-dso): Use := to define.o
64511         ($(all-built-dso:=.dyn)): New static pattern rule.
64512         (generated): Add those targets.
64513         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
64514         * config.make.in (READELF): New substituted variable.
64515         * elf/check-textrel.c: File removed.
64516
64517 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64518
64519         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64520         allow.
64521         * conform/data/ctype.h-data [C99-based standards] (isblank):
64522         Expect function.
64523         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
64524         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
64525         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64526         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
64527         Specify type.  Require positive value.
64528         (EILSEQ): Likewise.
64529         (ERANGE): Likewise.
64530         [ISO || POSIX] (EILSEQ): Do not expect.
64531         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
64532         Specify type.  Require positive value.
64533         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
64534         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
64535         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
64536         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
64537         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
64538         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
64539         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
64540         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
64541         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
64542         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
64543         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
64544         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
64545         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
64546         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
64547         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
64548         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
64549         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
64550         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
64551         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
64552         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
64553         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
64554         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
64555         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
64556         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
64557         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
64558         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
64559         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
64560         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
64561         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
64562         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
64563         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
64564         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
64565         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
64566         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
64567         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
64568         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
64569         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
64570         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
64571         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
64572         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
64573         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
64574         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
64575         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
64576         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
64577         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
64578         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
64579         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
64580         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
64581         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
64582         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
64583         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
64584         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
64585         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
64586         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
64587         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
64588         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
64589         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
64590         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
64591         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
64592         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
64593         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
64594         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
64595         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
64596         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
64597         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
64598         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
64599         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
64600         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
64601         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
64602         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
64603         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
64604         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
64605         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
64606         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
64607         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
64608         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
64609         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
64610         Require >= 2.
64611         (FLT_ROUNDS): Expect as macro, not constant.
64612         (FLT_MANT_DIG): Use macro-int-constant.
64613         (DBL_MANT_DIG): Likewise.
64614         (LDBL_MANT_DIG): Likewise.
64615         (FLT_DIG): Likewise.
64616         (DBL_DIG): Likewise.
64617         (LDBL_DIG): Likewise.
64618         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
64619         (DBL_MIN_EXP): Likewise.
64620         (LDBL_MIN_EXP): Likewise.
64621         (FLT_MAX_EXP): Use macro-int-constant.
64622         (DBL_MAX_EXP): Likewise.
64623         (LDBL_MAX_EXP): Likewise.
64624         (FLT_MAX_10_EXP): Likewise.
64625         (DBL_MAX_10_EXP): Likewise.
64626         (LDBL_MAX_10_EXP): Likewise.
64627         (FLT_MAX): Use macro-constant.
64628         (DBL_MAX): Likewise.
64629         (LDBL_MAX): Likewise.
64630         (FLT_EPSILON): Use macro-constant.  Give upper bound.
64631         (DBL_EPSILON): Likewise.
64632         (LDBL_EPSILON): Likewise.
64633         (FLT_MIN): Likewise.
64634         (DBL_MIN): Likewise.
64635         (LDBL_MIN): Likewise.
64636         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
64637         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
64638         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
64639         [ISO11] (FLT_HAS_SUBNORM): Likewise.
64640         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
64641         [ISO11] (DBL_DECIMAL_DIG): Likewise.
64642         [ISO11] (FLT_DECIMAL_DIG): Likewise.
64643         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
64644         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
64645         [ISO11] (FLT_TRUE_MIN): Likewise.
64646         [ISO11] (LDBL_TRUE_MIN): Likewise.
64647         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64648         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
64649         (SCHAR_MIN): Use macro-int-constant.  Specify type.
64650         (SCHAR_MAX): Likewise.
64651         (UCHAR_MAX): Likewise.
64652         (CHAR_MIN): Likewise.
64653         (CHAR_MAX): Likewise.
64654         (MB_LEN_MAX): Use macro-int-constant.
64655         (SHRT_MIN): Use macro-int-constant.  Specify type.
64656         (SHRT_MAX): Likewise.
64657         (USHRT_MAX): Likewise.
64658         (INT_MAX): Likewise.
64659         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
64660         bound negative.
64661         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64662         bound with "U".
64663         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64664         bound with "L".
64665         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
64666         bound negative.  Suffix upper bound with "L".
64667         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64668         bound with "UL".
64669         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
64670         Specify type.
64671         [C99-based standards] (LLONG_MAX): Likewise.
64672         [C99-based standards] (ULLONG_MAX): Likewise.
64673         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
64674         == 0.
64675         [ISO11] (max_align_t): Require type.
64676         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64677
64678         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
64679         from $CFLAGS, without defining away __attribute__ calls.
64680         (checknamespace): Use $CFLAGS_namespace.
64681
64682         * conform/conformtest.pl (@keywords): Only include C99 keywords
64683         for standards based on C99 or C11.
64684
64685         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
64686         Disable tests.
64687         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
64688         UNIX98]: Likewise.
64689
64690         * conform/conformtest.pl: Handle "macro-int-constant" and test for
64691         usability of symbols in #if.
64692
64693         * conform/conformtest.pl: If macro or constant types start
64694         "promoted:", expect the symbol to be of the following type
64695         promoted by the integer promotions.
64696
64697         * conform/conformtest.pl: Parse all "constant" and "macro" lines
64698         in one place.  Also handle "macro-constant".
64699
64700         * conform/conformtest.pl: Only accept expected macro values with
64701         "==".  Parse all "macro" lines in one place.
64702         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
64703
64704         * conform/conformtest.pl: Handle braced types on "constant" lines
64705         instead of handling "typed-constant".
64706         * conform/data/signal.h-data: Use "constant" instead of
64707         "typed-constant".
64708
64709         * conform/conformtest.pl: Handle "optional-" at start of lines in
64710         one place rather than duplicating several cases.  Handle each
64711         format of "macro" line with initial "optional-".
64712
64713         * conform/conformtest.pl: Only accept expected constant or
64714         optional-constant values with "==".  Parse all "constant" lines in
64715         one place.  Parse all "optional-constant" lines in one place.
64716         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
64717         * conform/data/fmtmsg.h-data: Likewise.
64718         * conform/data/netinet/in.h-data: Likewise.
64719         * conform/data/tar.h-data: Likewise.
64720         * conform/data/limits.h-data: Use "==" form on "constant" and
64721         "optional-constant" lines.
64722
64723         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
64724         Use -std=c99 for XOPEN2K.
64725         (@knownproblems): Remove.
64726         (newtoken): Don't check %isknown.
64727
64728         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
64729         Do not expect macro.
64730         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
64731         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
64732         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
64733         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
64734         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
64735         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
64736         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
64737         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
64738         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
64739         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
64740         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
64741         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
64742         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
64743         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
64744         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
64745         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
64746         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
64747         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
64748         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
64749         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
64750         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
64751         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
64752         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
64753         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
64754         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
64755         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
64756         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
64757         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
64758         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
64759         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
64760         [XPG3] (acosh): Likewise.
64761         [XPG3] (asinh): Likewise.
64762         [XPG3] (atanh): Likewise.
64763         [XPG3] (cbrt): Likewise.
64764         [XPG3] (expm1): Likewise.
64765         [XPG3] (ilogb): Likewise.
64766         [XPG3] (log1p): Likewise.
64767         [XPG3] (logb): Likewise.
64768         [XPG3] (nextafter): Likewise.
64769         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
64770         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
64771         [XPG3] (remainder): Likewise.
64772         [XPG3] (rint): Likewise.
64773         [XPG3 || XPG4 || UNIX98] (round): Likewise.
64774         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
64775         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
64776         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
64777         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
64778         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
64779         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
64780         [UNIX98 || XOPEN2K] (scalb): Expect.
64781         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
64782         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
64783         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
64784         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
64785         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
64786         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
64787         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
64788         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
64789         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
64790         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
64791         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
64792         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
64793         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
64794         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
64795         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
64796         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
64797         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
64798         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
64799         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
64800         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
64801         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
64802         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
64803         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
64804         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
64805         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
64806         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
64807         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
64808         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
64809         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
64810         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
64811         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
64812         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
64813         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
64814         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
64815         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
64816         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
64817         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
64818         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
64819         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
64820         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
64821         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
64822         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
64823         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
64824         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
64825         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
64826         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
64827         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
64828         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
64829         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
64830         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
64831         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
64832         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
64833         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
64834         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
64835         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
64836         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
64837         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
64838         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
64839         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
64840         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
64841         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
64842         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
64843         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
64844         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
64845         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
64846         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
64847         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
64848         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
64849         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
64850         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
64851         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
64852         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
64853         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
64854         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
64855         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
64856         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
64857         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
64858         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
64859         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
64860         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
64861         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
64862         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
64863         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
64864         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
64865         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
64866         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
64867         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
64868         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
64869         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
64870         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
64871         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
64872         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
64873         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
64874         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
64875         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
64876         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
64877         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
64878         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
64879         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
64880         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
64881         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
64882         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
64883         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
64884         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
64885         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
64886         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
64887         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
64888         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
64889         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
64890         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
64891         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
64892         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
64893         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
64894         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
64895         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
64896         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
64897         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
64898         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
64899         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
64900         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
64901         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
64902         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
64903         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
64904         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
64905         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
64906         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
64907         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
64908         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
64909         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
64910         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
64911         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
64912         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
64913         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
64914         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
64915         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
64916         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
64917         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
64918
64919         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
64920         _XOPEN_SOURCE_EXTENDED for XPG4.
64921
64922         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
64923
64924         * Makeconfig (localtime): Remove variable.
64925         (inst_localtime-file): Likewise.
64926
64927 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64928
64929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
64930         Update.
64931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
64932         Update.
64933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
64934         Update.
64935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
64936         Update.
64937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
64938         Update.
64939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
64940         Update.
64941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
64942         Update.
64943         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
64944         Update.
64945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64946         Update.
64947
64948 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64949
64950         [BZ #2550]
64951         [BZ #2570]
64952         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
64953         comparisons to determine direction to adjust input.
64954         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
64955         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
64956         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
64957         Likewise.
64958         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
64959         Likewise.
64960         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
64961         Likewise.
64962         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
64963         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
64964         Likewise.
64965         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
64966         Likewise.
64967         * math/libm-test.inc (nexttoward_test): Add more tests.
64968
64969 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64970
64971         [BZ #14040]
64972         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
64973         in version GLIBC_2.1, not GLIBC_2.0.
64974         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
64975         Likewise.
64976
64977 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
64978
64979         [BZ #13942]
64980         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
64981         (1 - x) * (1 + x).
64982         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64983         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
64984         * math/libm-test.inc (acos_test): Add more tests.
64985         (asin_test): Likewise.
64986         * sysdeps/i386/fpu/libm-test-ulps: Update.
64987         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64988
64989         [BZ #14034]
64990         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
64991         of square root.
64992         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
64993         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64994         * math/libm-test.inc (acos_test_tonearest): New function.
64995         (acos_test_towardzero): Likewise.
64996         (acos_test_downward): Likewise.
64997         (acos_test_upward): Likewise.
64998         (asin_test_tonearest): Likewise.
64999         (asin_test_towardzero): Likewise.
65000         (asin_test_downward): Likewise.
65001         (asin_test_upward): Likewise.
65002         (main): Call the new functions.
65003         * sysdeps/i386/fpu/libm-test-ulps: Update.
65004         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65005
65006         [BZ #13884]
65007         [BZ #13924]
65008         * math/e_exp10.c: Include <float.h>.
65009         (__ieee754_exp10): Handle underflow here rather than multiplying
65010         large negative argument by M_LN10.
65011         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
65012         of __ieee754_expf.
65013         * math/e_exp10l.c: Include <float.h>.
65014         (__ieee754_exp10l): Handle underflow here rather than multiplying
65015         large negative argument by M_LN10l.
65016         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
65017         spurious overflow exception on underflow.
65018
65019 2012-04-29  Marek Polacek  <polacek@redhat.com>
65020
65021         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
65022         (__fortify_function): New macro.
65023         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
65024         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
65025         __extern_always_inline.
65026         * libio/bits/stdio2.h: Likewise.
65027         * libio/bits/stdio.h: Likewise.
65028         * string/string.h: Likewise.
65029         * string/bits/string3.h: Likewise.
65030         * include/stdio.h: Likewise.
65031         * stdlib/bits/stdlib.h: Likewise.
65032         * stdlib/stdlib.h: Likewise.
65033         * rt/bits/mqueue2.h: Likewise.
65034         * rt/mqueue.h: Likewise.
65035         * posix/bits/unistd.h: Likewise.
65036         * posix/unistd.h: Likewise.
65037         * io/bits/poll2.h: Likewise.
65038         * io/bits/fcntl2.h: Likewise.
65039         * io/fcntl.h: Likewise.
65040         * io/sys/poll.h: Likewise.
65041         * misc/bits/syslog.h: Likewise.
65042         * misc/bits/syslog-ldbl.h: Likewise.
65043         * misc/sys/syslog.h: Likewise.
65044         * socket/bits/socket2.h: Likewise.
65045         * socket/sys/socket.h: Likewise.
65046         * debug/tst-chk1.c: Likewise.
65047         * wcsmbs/bits/wchar2.h: Likewise.
65048         * wcsmbs/bits/wchar-ldbl.h: Likewise.
65049         * wcsmbs/wchar.h: Likewise.
65050
65051 2012-04-29  Andreas Jaeger  <aj@suse.de>
65052
65053         * Makerules (tests): Remove enable-check-abi protection.
65054         (check-abi-warn): Remove.
65055         (check-abi-%): Remove check-abi-warn usage.
65056
65057         * configure.in: Remove check-abi configure option.
65058         * configure: Regenerated.
65059         * config.make.in (enable-check-abi): Remove.
65060
65061 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
65062
65063         [BZ #14033]
65064         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
65065         double functions to double *_finite functions.
65066
65067         [BZ #13941]
65068         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
65069         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
65070         LDBL_MIN_EXP.
65071         * stdio-common/Makefile (tests): Add tst-sprintf3.
65072         * stdio-common/tst-sprintf3.c: New file.
65073
65074         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
65075         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
65076
65077 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
65078
65079         * conform/conformtest.pl: Remove duplicate typed-constant
65080         handling.
65081
65082 2012-04-28  David S. Miller  <davem@davemloft.net>
65083
65084         * Makerules (%.abilist): Add vpath on sysdep_dirs.
65085         (check-abi-%): Remove AWK script prerequisite and explicit
65086         abilist directory.
65087         (check-abi): Rewrite to just diff the symlist with the abilist.
65088         (config-tls, config-abi-config): Delete, no longer used.
65089         (update-abi-%): Remove AWK script and explicit abilist directory.
65090         (update-abi): Rewrite to simply compare and conditionally copy the
65091         symlist and the sysdep abilist file.  Remove update-abi-config
65092         checks.
65093         * abilist/ld.abilist: Remove.
65094         * abilist/libBrokenLocale.abilist: Remove.
65095         * abilist/libanl.abilist: Remove.
65096         * abilist/libcrypt.abilist: Remove.
65097         * abilist/libdl.abilist: Remove.
65098         * abilist/librt.abilist: Remove.
65099         * abilist/libthread_db.abilist: Remove.
65100         * abilist/libutil.abilist: Remove.
65101         * scripts/extract-abilist.awk: Remove.
65102         * scripts/merge-abilist.awk: Remove.
65103         * sysdeps/generic/libcidn.abilist: New file.
65104         * sysdeps/generic/libnss_compat.abilist: New file.
65105         * sysdeps/generic/libnss_db.abilist: New file.
65106         * sysdeps/generic/libnss_dns.abilist: New file.
65107         * sysdeps/generic/libnss_files.abilist: New file.
65108         * sysdeps/generic/libnss_hesiod.abilist: New file.
65109         * sysdeps/generic/libnss_nis.abilist: New file.
65110         * sysdeps/generic/libnss_nisplus.abilist: New file.
65111         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
65112         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
65113         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
65114         file.
65115         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
65116         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
65117         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
65118         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
65119         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
65120         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
65121         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
65122         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
65123         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
65124         file.
65125         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
65126         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
65127         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
65128         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
65129         file.
65130         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
65131         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
65132         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
65133         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
65134         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
65135         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
65136         file.
65137         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
65138         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
65139         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
65140         file.
65141         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
65142         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
65143         New file.
65144         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
65145         New file.
65146         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
65147         New file.
65148         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
65149         New file.
65150         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
65151         New file.
65152         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
65153         New file.
65154         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
65155         New file.
65156         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
65157         New file.
65158         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
65159         New file.
65160         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
65161         New file.
65162         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
65163         New file.
65164         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
65165         New file.
65166         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
65167         New file.
65168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
65169         file.
65170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
65171         New file.
65172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
65173         New file.
65174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
65175         file.
65176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
65177         New file.
65178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
65179         New file.
65180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
65181         file.
65182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
65183         New file.
65184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
65185         New file.
65186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
65187         New file.
65188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
65189         New file.
65190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
65191         New file.
65192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
65193         New file.
65194         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
65195         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
65196         file.
65197         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
65198         New file.
65199         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
65200         file.
65201         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
65202         file.
65203         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
65204         file.
65205         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
65206         file.
65207         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
65208         file.
65209         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
65210         New file.
65211         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
65212         file.
65213         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
65214         file.
65215         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
65216         New file.
65217         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
65218         file.
65219         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
65220         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
65221         file.
65222         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
65223         New file.
65224         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
65225         file.
65226         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
65227         file.
65228         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
65229         file.
65230         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
65231         file.
65232         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
65233         file.
65234         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
65235         New file.
65236         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
65237         file.
65238         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
65239         file.
65240         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
65241         New file.
65242         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
65243         file.
65244         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
65245         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
65246         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
65247         file.
65248         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
65249         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
65250         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
65251         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
65252         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
65253         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
65254         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
65255         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
65256         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
65257         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
65258         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
65259         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
65260         file.
65261         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
65262         New file.
65263         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
65264         file.
65265         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
65266         file.
65267         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
65268         file.
65269         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
65270         file.
65271         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
65272         file.
65273         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
65274         New file.
65275         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
65276         New file.
65277         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
65278         file.
65279         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
65280         New file.
65281         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
65282         file.
65283         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
65284         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
65285         file.
65286         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
65287         New file.
65288         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
65289         file.
65290         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
65291         file.
65292         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
65293         file.
65294         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
65295         file.
65296         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
65297         file.
65298         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
65299         New file.
65300         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
65301         New file.
65302         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
65303         file.
65304         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
65305         New file.
65306         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
65307         file.
65308
65309 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
65310
65311         * conform/conformtest.pl: Fix typo in handling typed-constant from
65312         allow-header.
65313
65314 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65315
65316         * README: Cut down references to pre-2.6 Linux kernels and
65317         Linuxthreads.  Update lists of configurations in libc and ports
65318         and sort alphabetically.  Say "or newer" with Linux kernel version
65319         requirements.
65320
65321         * config.h.in [IS_IN_build]: Allow compiling without optimization.
65322
65323 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
65324
65325         [BZ #887]
65326         * math/libm-test.inc (logb_test_downward): New test to expose
65327         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
65328         rounding mode.
65329
65330 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65331
65332         [BZ #14027]
65333         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
65334         to be done.
65335         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
65336         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
65337
65338 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
65339
65340         * sysdeps/unix/i386/brk.S: Remove file.
65341         * sysdeps/unix/i386/dl-brk.S: Likewise.
65342         * sysdeps/unix/i386/pipe.S: Likewise.
65343         * sysdeps/unix/i386/sigreturn.S: Likewise.
65344         * sysdeps/unix/i386/syscall.S: Likewise.
65345         * sysdeps/unix/i386/vfork.S: Likewise.
65346         * sysdeps/unix/i386/wait.S: Likewise.
65347
65348         * sysdeps/unix/common/tcsendbrk.c: Move to ...
65349         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
65350
65351         * configure.in (arm*-none*): Do not allow without
65352         --enable-hacker-mode.
65353         (netbsd*): Remove case setting base_os.
65354         (386bsd*): Likewise.
65355         (freebsd*): Likewise.
65356         (bsdi*): Likewise.
65357         (osf*): Likewise.
65358         (sunos*): Likewise.
65359         (ultrix*): Likewise.
65360         (newsos*): Likewise.
65361         (dynix*): Likewise.
65362         (*bsd*): Likewise.
65363         (sysv*): Likewise.
65364         (isc*): Likewise.
65365         (esix*): Likewise.
65366         (sco*): Likewise.
65367         (minix*): Likewise.
65368         (irix4*): Likewise.
65369         (irix6*): Likewise.
65370         (solaris[2-9]*): Likewise.
65371         (none): Likewise.
65372         * configure: Regenerated.
65373
65374 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65375
65376         [BZ #11521]
65377         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
65378         overflow or cancellation in calculating denominator.
65379         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
65380         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
65381         down expression to avoid unexpected rounding in newer GCCs.
65382         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
65383
65384 2012-04-26  David S. Miller  <davem@davemloft.net>
65385
65386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
65387         long-double compat symbols.
65388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
65389         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
65390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
65391         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
65392         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
65393         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
65394         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
65395         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
65396         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
65397         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
65398         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
65399         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
65400         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
65401
65402 2012-04-25  David S. Miller  <davem@davemloft.net>
65403
65404         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
65405         HWCAP_* values only after the memory barriers have been defined.
65406         (atomic_full_barrier): Define.
65407         (atomic_read_barrier): Define.
65408         (atomic_write_barrier): Define.
65409
65410 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
65411
65412         * shlib-versions: Add libgcc_s version information.
65413         * sysdeps/generic/libgcc_s.h: Remove.
65414         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
65415         libgcc_s.h.
65416         * sysdeps/gnu/unwind-resume.c: Likewise.
65417         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
65418
65419 2012-04-25  David S. Miller  <davem@davemloft.net>
65420
65421         * sysdeps/unix/sparc/brk.S: Delete.
65422         * sysdeps/unix/sparc/dl-brk.S: Delete.
65423         * sysdeps/unix/sparc/pipe.S: Delete.
65424         * sysdeps/unix/sparc/sysdep.S: Delete.
65425         * sysdeps/unix/sparc/sysdep.h: Delete.
65426         * sysdeps/unix/sparc/vfork.S: Delete.
65427         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
65428         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
65429         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
65430         (ret_ERRVAL, r0, r1, MOVE): Define.
65431         (JUMPTARGET): Remove.
65432         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
65433         sysdeps/unix/sparc/sysdep.h
65434         (ENTRY, END): Remove.
65435         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
65436
65437 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
65438
65439         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
65440         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
65441         -DIS_IN_build.
65442
65443         * timezone/README: Update upstream location and email address for
65444         tzcode and tzdata.
65445         * timezone/zdump.c: Update from tzcode 2012b.
65446         * timezone/zic.c: Likewise.
65447
65448         * configure.in (libc_cv_as_needed): Remove test.
65449         * configure: Regenerated.
65450         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
65451         conditional definition.
65452         [$(have-as-needed) != yes] (no-as-needed): Likewise.
65453         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
65454         * config.make.in (have-as-needed): Remove variable.
65455
65456 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
65457             Paul Pluzhnikov  <ppluzhnikov@google.com>
65458
65459         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
65460         strings correctly.
65461
65462 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
65463
65464         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
65465         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
65466         * sysdeps/sh/strlen.S: Likewise.
65467
65468 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65469
65470         * sysdeps/unix/fork.S: Remove file.
65471         * sysdeps/unix/i386/fork.S: Likewise.
65472         * sysdeps/unix/sparc/fork.S: Likewise.
65473
65474         * sysdeps/unix/system.c: Remove file.
65475         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
65476
65477         * sysdeps/unix/getegid.S: Remove file.
65478         * sysdeps/unix/geteuid.S: Likewise.
65479
65480 2012-04-24  Roland McGrath  <roland@hack.frob.com>
65481
65482         * scripts/check-localplt.awk: New file.
65483         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
65484         of diff.
65485         * scripts/data/localplt-generic.data: Add a comment.
65486
65487         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
65488         NODE when __dir_mkfile failed.
65489         * sysdeps/mach/hurd/symlinkat.c: Likewise.
65490         Reported by Ludovic Courtès <ludo@gnu.org>.
65491
65492 2012-04-24  Andreas Jaeger  <aj@suse.de>
65493
65494         * Makerules (common-clean): Also remove gen-as-const-headers
65495         files.
65496
65497 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65498
65499         * Makerules (native-compile): Do not change working directory for
65500         build.  Use $(OUTPUT_OPTION) in command.
65501         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
65502
65503 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65504
65505         [BZ #13886]
65506         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
65507         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
65508         * math/libm-test.inc (floor_test): Add more tests.
65509         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
65510
65511 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65512
65513         * sysdeps/unix/getdents.c: Remove file.
65514         * sysdeps/unix/sysv/getdents.c: Likewise.
65515         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
65516
65517         * sysdeps/unix/syscalls.list (madvise): Add syscall from
65518         sysdeps/unix/mman/syscalls.list.
65519         (mmap): Likewise.
65520         (mprotect): Likewise.
65521         (msync): Likewise.
65522         (munmap): Likewise.
65523         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
65524         * sysdeps/unix/mman/syscalls.list: Remove.
65525         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
65526
65527         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
65528         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
65529         * configure: Regenerated.
65530         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
65531         $(libgcc_s_suffix).
65532         * config.make.in (libgcc_s_suffix): Remove variable.
65533
65534 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
65535
65536         * sysdeps/unix/sysv/gethostname.c: Move to ...
65537         * sysdeps/posix/gethostname.c: ... here.
65538
65539         * sysdeps/unix/execve.S: Remove file.
65540
65541         * sysdeps/unix/_exit.S: Remove file.
65542
65543 2012-04-23  Andreas Jaeger  <aj@suse.de>
65544
65545         [BZ #13739]
65546         * manual/Makefile: Remove make dist support, there's no
65547         need for a stand-alone documentation tar ball.
65548         (TEXI2DVI): Define always, it's not in Makeconfig.
65549         (dist): Removed.
65550         (tar-it): Removed.
65551         (edition): Removed.
65552         (glibc-doc-$(edition).tar): Removed
65553         (%.Z): Removed.
65554         (%.gz): Removed.
65555         (%.uu): Removed.
65556         (ETAGS): Remove, it's in Makeconfig.
65557         (move-if-change): Remove, it's in Makeconfig.
65558
65559 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
65560
65561         [BZ #13970]
65562         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
65563         (strtod, strtof, strtold, strtol, strtoul, strtoq)
65564         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
65565         (strtod_l, strtof_l, strtold_l): Remove __wur.
65566         It is not necessarily an error to ignore strtol's return value.
65567         One can reliably look at the stored endptr to decide whether
65568         the number had valid syntax.
65569
65570 2012-04-21  Andreas Jaeger  <aj@suse.de>
65571
65572         [BZ #13739]
65573         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
65574
65575 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
65576
65577         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
65578         * sysdeps/unix/sysv/Versions: Remove file.
65579
65580 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
65581
65582         [BZ #13927]
65583         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65584
65585 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
65586
65587         [BZ #7064]
65588         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
65589         version from __vm86.
65590
65591 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
65592
65593         * sysdeps/unix/common/lxstat.c: Remove file.
65594         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
65595
65596         * sysdeps/unix/sysv/Makefile: Remove file.
65597
65598         * sysdeps/unix/sysv/direct.h: Remove file.
65599
65600         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
65601         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
65602         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
65603         * sysdeps/unix/sysv/bits/signum.h: Likewise.
65604         * sysdeps/unix/sysv/bits/stat.h: Likewise.
65605         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
65606         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
65607
65608         * sysdeps/unix/sysv/setrlimit.c: Remove file.
65609
65610         * sysdeps/unix/xmknod.c: Remove file.
65611         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
65612
65613         * sysdeps/unix/sysv/settimeofday.c: Remove file.
65614
65615         * sysdeps/unix/sysv/i386/time.S: Remove file.
65616
65617         * sysdeps/unix/fxstat.c: Remove file.
65618         * sysdeps/unix/xstat.c: Likewise.
65619         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
65620
65621         * sysdeps/unix/sysv/sigaction.c: Remove file.
65622
65623         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
65624         (sysdep_headers): Remove variable.
65625         [termio.h not in sysdep_headers] (generated): Likewise.
65626         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
65627         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
65628         * sysdeps/unix/sysv/tcdrain.c: Likewise.
65629         * sysdeps/unix/sysv/tcflow.c: Likewise.
65630         * sysdeps/unix/sysv/tcflush.c: Likewise.
65631         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
65632         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
65633         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
65634         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
65635         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
65636
65637         * sysdeps/unix/siglist.c: Remove file.
65638
65639         * sysdeps/unix/getppid.S: Remove file.
65640
65641         * sysdeps/unix/mkdir.c: Remove file.
65642         * sysdeps/unix/rmdir.c: Likewise.
65643
65644 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
65645
65646         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
65647         ERR_MAX value.
65648         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
65649         errlist-compat value.
65650
65651 2012-04-18  David S. Miller  <davem@davemloft.net>
65652
65653         * sysdeps/generic/memcopy.h (reg_char): Delete.
65654         * debug/strcat_chk.c: Use char, not reg_char.
65655         * debug/strcpy_chk.c: Likewise.
65656         * debug/strncat_chk.c: Likewise.
65657         * debug/strncpy_chk.c: Likewise.
65658         * string/memchr.c: Likewise.
65659         * string/memrchr.c: Likewise.
65660         * string/rawmemchr.c: Likewise.
65661         * string/strcat.c: Likewise.
65662         * string/strchr.c: Likewise.
65663         * string/strchrnul.c: Likewise.
65664         * string/strcmp.c: Likewise.
65665         * string/strcpy.c: Likewise.
65666         * string/strncat.c: Likewise.
65667         * string/strncmp.c: Likewise.
65668         * string/strncpy.c: Likewise.
65669
65670 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65671
65672         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
65673         __builtin_memcopy is called when src and dest ranges are known to not
65674         overlap.
65675
65676 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65677
65678         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
65679         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
65680         fwd_align_merge macro call.
65681         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
65682         bwd_align_merge macro call.
65683         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65684
65685 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65686
65687         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
65688         bwd_align_merge macros.
65689         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
65690         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
65691         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65692
65693 2012-04-18  David S. Miller  <davem@davemloft.net>
65694
65695         * sysdeps/sparc/sparc64/memcopy.h: Delete.
65696
65697 2012-04-18  Andreas Jaeger  <aj@suse.de>
65698
65699         [BZ# 6794]
65700         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
65701         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
65702         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65703
65704         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
65705         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
65706         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65707
65708         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
65709         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
65710         Adjust for changed ldbl-128 files.
65711
65712         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
65713         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
65714         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65715
65716 2012-04-17  David S. Miller  <davem@davemloft.net>
65717
65718         * sysdeps/sparc/sparc32/memcopy.h: Delete.
65719
65720 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
65721
65722         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
65723         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
65724         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
65725         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
65726         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
65727         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
65728
65729 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65730
65731         [BZ #6794]
65732         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
65733         * math/libm-test.inc: Add ilogb errno and exception tests.
65734         * math/w_ilogb.c: New file: ilogb wrapper.
65735         * math/w_ilogbf.c: New file: ilogbf wrapper.
65736         * math/w_ilogbl.c: New file: ilogbl wrapper.
65737         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
65738         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
65739         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
65740         exception being thrown with 0.0 as argument.
65741         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
65742         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
65743         exception being thrown with 0.0 as argument.
65744         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
65745         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65746         exception being thrown with 0.0 as argument.
65747         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
65748         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65749         exception being thrown with 0.0 as argument.
65750         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
65751         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
65752         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
65753         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
65754         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
65755         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
65756         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
65757         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
65758         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
65759
65760 2012-04-17  Petr Baudis  <pasky@ucw.cz>
65761
65762         * include/sys/uio.h: Change __vector to __iovec to avoid clash
65763         with altivec.
65764
65765 2012-04-16  Marek Polacek  <polacek@redhat.com>
65766
65767         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
65768
65769 2012-04-16  Marek Polacek  <polacek@redhat.com>
65770
65771         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
65772         operands of fdivp instruction.
65773
65774 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65775
65776         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
65777         * elf/tst-auditmod3b.c: Likewise.
65778         * elf/tst-auditmod4b.c: Likewise.
65779         * elf/tst-auditmod5b.c: Likewise.
65780         * elf/tst-auditmod6b.c: Likewise.
65781         * elf/tst-auditmod6c.c: Likewise.
65782         * elf/tst-auditmod7b.c: Likewise.
65783         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
65784         * sysdeps/x86_64/preconfigure.in: Likewise.
65785         * sysdeps/x86_64/preconfigure: Regenerated.
65786
65787 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65788
65789         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
65790         __ILP32__.
65791
65792 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
65793
65794         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
65795         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
65796
65797 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
65798
65799         [BZ #13973]
65800         * locale/iso-639.def: Fix gl language name. Spotted by
65801         Yaron Shahrabani.
65802
65803 2012-04-12  Roland McGrath  <roland@hack.frob.com>
65804
65805         [BZ #2074]
65806         * libio/libio.h (__io_write_fn): Update comment.
65807
65808 2012-04-12  Petr Baudis  <pasky@ucw.cz>
65809
65810         [BZ #2074]
65811         * stdio.texi (Hook Functions): The user provided writer function
65812         is not allowed to return -1.
65813
65814 2012-04-11  David S. Miller  <davem@davemloft.net>
65815
65816         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65817
65818 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
65819
65820         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
65821         Add a leading slash to rtkaio.
65822
65823 2012-04-11  Jim Meyering  <meyering@redhat.com>
65824
65825         [BZ #11959]
65826         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
65827         It is not necessarily an error to ignore fwrite's return
65828         value.  One can reliably use ferror to test for errors after
65829         the fact.
65830
65831 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65832
65833         * bits/types.h (__snseconds_t): New type.
65834         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
65835
65836         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
65837         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65838         (__SNSECONDS_T_TYPE): Likewise.
65839         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65840         (__SNSECONDS_T_TYPE): Likewise.
65841         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65842         (__SNSECONDS_T_TYPE): Likewise.
65843
65844 2012-04-10  Andreas Jaeger  <aj@suse.de>
65845
65846         [BZ #2636]
65847         * manual/time.texi (Processor Time): Return type of times is
65848         elapsed real time since an arbitrary point in the past.
65849         (CPU Time): Move CLK_TCK from here...
65850         (Processor Time): ...to here.  Correct description.
65851         * manual/conf.texi (Constants for Sysconf): Correct description of
65852         _SC_CLK_TCK.
65853
65854 2012-04-10  David S. Miller  <davem@davemloft.net>
65855
65856         [BZ #13967]
65857         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
65858         where the is a gap between DT_REL(A) and DT_JMPREL.
65859
65860 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65861
65862         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
65863         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65864         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65865
65866 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
65867
65868         * elf/dl-support.c (_dl_inhibit_cache): New variable.
65869         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
65870         (dl_main): Handle --inhibit-cache.
65871         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
65872         _dl_inhibit_cache.
65873         * elf/dl-load.c (_dl_map_object): Use it.
65874         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
65875
65876 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65877
65878         [BZ #13872]
65879         * sysdeps/i386/fpu/e_powl.S (p78): New object.
65880         (__ieee754_powl): Saturate large exponents rather than testing for
65881         overflow of y*log2(x).
65882         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65883         * math/libm-test.inc (pow_test): Do not permit spurious overflow
65884         exceptions.
65885
65886         [BZ #11521]
65887         * math/s_ctan.c: Include <float.h>.
65888         (__ctan): Avoid internal overflow or cancellation in calculating
65889         denominator.
65890         * math/s_ctanf.c: Likewise.
65891         * math/s_ctanl.c: Likewise.
65892         * math/s_ctanh.c: Likewise.
65893         * math/s_ctanhf.c: Likewise.
65894         * math/s_ctanhl.c: Likewise.
65895         * math/libm-test.inc (ctan_test): Add more tests.
65896         (ctanh_test): Likewise.
65897         * sysdeps/i386/fpu/libm-test-ulps: Update.
65898         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65899
65900 2012-04-09  Andreas Jaeger  <aj@suse.de>
65901
65902         [BZ #6894]
65903         * manual/filesys.texi (Directory Entries): Mention that d_namlen
65904         is an optional BSD extension.
65905
65906         [BZ #10254]
65907         * manual/stdio.texi (Opening Streams): Document additional fopen
65908         parameters.
65909
65910 2012-04-09  Roland McGrath  <roland@hack.frob.com>
65911
65912         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
65913         %eax without telling the compiler.
65914
65915 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
65916
65917         [BZ # 13963]
65918         * manual/install.texi: Use sourceware.org.
65919
65920 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65921
65922         [BZ #13873]
65923         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
65924         (__ieee754_pow): Generate overflow and underflow using huge*huge
65925         and tiny*tiny rather than just returning constant infinity or zero
65926         for large exponents.
65927         * math/libm-test.inc (pow_test): Require overflow exceptions for
65928         applicable cases of large exponents.
65929
65930         [BZ #706]
65931         * sysdeps/i386/fpu/e_pow.S (p10): New object.
65932         (__ieee754_pow): Use iterative multiplication algorithm only for
65933         integer exponents with absolute value below 1024.  Check for odd
65934         integer exponents when using algorithm for real exponents.
65935         * math/libm-test.inc (pow_test): Add more tests.
65936         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65937
65938 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
65939
65940         [BZ #13705]
65941         * math/libm-test.inc (exp_test): Do not allow overflow exception
65942         on underflow test.
65943
65944 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
65945
65946         [BZ #13705]
65947         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
65948         instead of __kernel_standard_f.
65949
65950 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
65951
65952         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
65953         * sysdeps/x86_64/memset_chk.S: Likewise.
65954
65955 2012-04-08  Andreas Jaeger  <aj@suse.de>
65956
65957         [BZ #10153]
65958         * manual/startup.texi (Environment Access): Describe return value
65959         for putenv and setenv.
65960
65961         [BZ #6895]
65962         * manual/filesys.texi (Directory Entries): Add description for
65963         DT_LNK.
65964
65965         [BZ #6890]
65966         * manual/filesys.texi (Directory Entries): Clarify that it's file
65967         system not operating system in the description of DT_UNKNOWN.
65968
65969         [BZ #6578]
65970         * manual/syslog.texi (closelog): Fix reference, it's openlog.
65971
65972 2012-04-08  Stephen Compall  <s11@member.fsf.org>
65973
65974         [BZ #6649]
65975         * manual/llio.texi (Opening and Closing Files): Add cross
65976         reference to explain mode argument.
65977
65978 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
65979
65980         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
65981         * sysdeps/x86_64/memset_chk.S: Likewise.
65982
65983 2012-04-07  David S. Miller  <davem@davemloft.net>
65984
65985         * elf/elf.h (R_SPARC_WDISP10): Define.
65986         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
65987         R_SPARC_SIZE32.
65988         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
65989         R_SPARC_SIZE64 and R_SPARC_H34.
65990
65991 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
65992
65993         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
65994         conditions and remove no longer applicable assertion.
65995
65996 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65997
65998         * bits/byteswap.h: Include <features.h>.
65999         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
66000         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
66001
66002 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
66003
66004         * bits/byteswap.h (__bswap_16): Removed.
66005         Include <bits/byteswap-16.h> to get __bswap_16.
66006         * sysdeps/i386/bits/byteswap.h: Likewise.
66007         * sysdeps/s390/bits/byteswap.h: Likewise.
66008         * sysdeps/x86_64/bits/byteswap.h: Likewise.
66009         * bits/byteswap-16.h: New file.
66010         * sysdeps/i386/bits/byteswap-16.h: Likewise.
66011         * sysdeps/s390/bits/byteswap-16.h: Likewise.
66012         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
66013         * string/Makefile (headers): Add bits/byteswap-16.h.
66014
66015 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
66016
66017         [BZ #13895]
66018         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
66019         extra indirection.
66020         * nss/Makefile (tests-static, tests): Add tst-nss-static.
66021         * nss/tst-nss-static.c: New.
66022
66023 2012-04-06  Robert Millan  <rmh@gnu.org>
66024
66025         [BZ #6486]
66026         * manual/llio.texi (File Position Primitive): lseek
66027         refers to WHENCE when it really means OFFSET.
66028
66029 2012-04-06  Andreas Jaeger  <aj@suse.de>
66030
66031         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
66032         strncmp declarations.
66033
66034         * abilist/libc.abilist: Add __poll and __ppoll.
66035
66036 2012-04-05  David S. Miller  <davem@davemloft.net>
66037
66038         * scripts/check-local-headers.sh: Accept a host triplet in the
66039         path matched by the exclude regexp.
66040
66041         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
66042         definition.
66043         * sysdeps/powerpc/powerpc32/dl-machine.h
66044         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
66045         * sysdeps/s390/s390-32/dl-machine.h
66046         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66047         * sysdeps/sparc/sparc32/dl-machine.h
66048         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66049         * sysdeps/sparc/sparc64/dl-machine.h
66050         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66051
66052         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
66053         lazy binding.
66054         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
66055         undefined symbol errors.
66056
66057         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
66058         DT_NEEDED entries.
66059
66060 2012-04-05  Michael Matz  <matz@suse.de>
66061
66062         [BZ #13592]
66063         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
66064
66065 2012-04-05  Andreas Jaeger  <aj@suse.de>
66066
66067         [BZ #13908]
66068         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
66069         comment.
66070
66071 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66072
66073         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
66074         which ROUND is no valid rounding mode.
66075
66076 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66077
66078         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
66079         read again.
66080         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
66081
66082 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66083
66084         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
66085         an exception using FPU order intentionally.
66086
66087 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66088
66089         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
66090         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
66091         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
66092         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
66093
66094 2012-04-05  Simon Josefsson  <simon@josefsson.org>
66095
66096         [BZ #12340]
66097         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
66098         EINVAL when BUFLEN is too smal.
66099
66100 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
66101
66102         [BZ #13553]
66103         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
66104         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
66105
66106 2012-04-03  Andreas Jaeger  <aj@suse.de>
66107
66108         [BZ #13938]
66109         * manual/setjmp.texi (System V contexts): Fix sentence.
66110
66111         [BZ #13926]
66112         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
66113         New macro for this case.
66114         [!__GNUC__] (__bswap_64): New inline function for this case.
66115         * sysdeps/x86_64/bits/byteswap.h: Likewise.
66116         * bits/byteswap.h: Likewise.
66117         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
66118         ull, guard with __GLIBC_HAVE_LONG_LONG.
66119
66120         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
66121         __GLIBC_HAVE_LONG_LONG.
66122
66123         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
66124         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
66125
66126 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
66127
66128         [BZ #13691]
66129         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
66130         inptr and inend, rather than using last_ch.
66131
66132 2012-04-02  David S. Miller  <davem@davemloft.net>
66133
66134         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
66135         * stdio-common/printf-parse.h (read_int): Change return type to
66136         'int', return -1 on INT_MAX overflow.
66137         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
66138         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
66139         overflows INT_MAX.  Check for overflow of in-format-string precision
66140         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
66141         SIZE_MAX not INT_MAX for integer overflow test.
66142         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
66143         skip the construct in the format string but do not record anything.
66144         * stdio-common/bug22.c: Adjust to test both width/prevision
66145         INT_MAX overflow as well as total length INT_MAX overflow.  Check
66146         explicitly for proper errno values.
66147
66148 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
66149
66150         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
66151         CHAR_MAX.
66152         * string/test-strcmp.c [! WIDE]: Likewise.
66153         * time/tst-mktime2.c: Likewise for INT_MAX.
66154         * string/test-string.h: #include <sys/param.h> for MIN.
66155
66156         * csu/init-first.c (__libc_init_first): Call __ctype_init.
66157         * sysdeps/i386/init-first.c (init): Likewise.
66158         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
66159         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
66160         * sysdeps/sh/init-first.c (init): Likewise.
66161
66162 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
66163
66164         * po/ru.po: Update from translation team.
66165         * po/vi.po: Likewise.
66166
66167 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
66168
66169         * resolv/nss_dns/dns-host.c: Merge copyright years.
66170
66171 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
66172
66173         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
66174         Optimize memcpy with prefetch if
66175         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
66176         src, dst pointers have unequal 16 byte alignments.
66177
66178 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
66179
66180         [BZ #13928]
66181         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
66182         from a CNAME entry and return the minimum ttl for the query.
66183         (gaih_getanswer_slice): Likewise.
66184
66185 2012-03-30  Jeff Law  <law@redhat.com>
66186
66187         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
66188         due to long keys.
66189         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
66190         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
66191
66192         * resolv/nss_dns/dns-host.c: Update copyright year.
66193
66194 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
66195
66196         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
66197         requests to save a system call.  Fix check that all bytes are sent.
66198
66199         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
66200         comments for sendmmsg.
66201
66202 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
66203
66204         [BZ #13691]
66205         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
66206         with only 1 character between 0x0041 and 0x01b0.
66207         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
66208         * wcsmbs/tst-mbsnrtowcs.c: New file.
66209
66210 2012-03-29  David S. Miller  <davem@davemloft.net>
66211
66212         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
66213         small copies by hand.
66214
66215 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
66216
66217         [BZ #13761]
66218         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
66219         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
66220         group memberships.
66221
66222 2012-03-28  David S. Miller  <davem@davemloft.net>
66223
66224         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
66225         that branches into memcpy.
66226         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
66227         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
66228         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
66229         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
66230         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
66231         bits.
66232         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
66233         implementation too.
66234         * sysdeps/sparc/mempcpy.S: New file.
66235
66236         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
66237         the IFUNC routine in the libc case.
66238         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
66239
66240         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
66241         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
66242         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
66243         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
66244         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
66245         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
66246         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
66247         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
66248
66249         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
66250         loop to 256 bytes instead of 64 bytes and fix test signedness.
66251
66252         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
66253         * sysdeps/sparc/sparc32/Makefile: rather than here...
66254         * sysdeps/sparc/sparc64/Makefile: and here.
66255
66256 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
66257
66258         * malloc/mallocbug.c: Avoid warnings about unused variables.
66259
66260 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
66261
66262         [BZ #13760]
66263         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
66264         in the right place. Discard and retry query if response is
66265         larger than input buffer size.
66266
66267 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
66268
66269         [BZ #369]
66270         [BZ #2678]
66271         [BZ #3866]
66272         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
66273         x for large integer exponent.
66274         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
66275         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
66276         sign of result as needed afterwards.
66277         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
66278         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
66279         result for underflowing pow the same as for overflow.
66280         (__kernel_standard_l): Handle powl overflow and underflow here
66281         rather than calling __kernel_standard.
66282         * math/libm-test.inc (pow_test): Add more tests.
66283
66284         [BZ #3868]
66285         [BZ #13879]
66286         [BZ #13910]
66287         [BZ #13911]
66288         [BZ #13912]
66289         [BZ #13913]
66290         [BZ #13915]
66291         [BZ #13916]
66292         [BZ #13917]
66293         [BZ #13918]
66294         [BZ #13919]
66295         [BZ #13920]
66296         [BZ #13921]
66297         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
66298         * sysdeps/ieee754/k_standard.c: Include <float.h>.
66299         (__kernel_standard_l): New function.
66300         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
66301         __kernel_standard.
66302         * math/w_acosl.c (__acosl): Likewise.
66303         * math/w_asinl.c (__asinl): Likewise.
66304         * math/w_atan2l.c (__atan2l): Likewise.
66305         * math/w_atanhl.c (__atanhl): Likewise.
66306         * math/w_coshl.c (__coshl): Likewise.
66307         * math/w_exp10l.c (__exp10l): Likewise.
66308         * math/w_exp2l.c (__exp2l): Likewise.
66309         * math/w_fmodl.c (__fmodl): Likewise.
66310         * math/w_hypotl.c (__hypotl): Likewise.
66311         * math/w_j0l.c (__j0l, __y0l): Likewise.
66312         * math/w_j1l.c (__j1l, __y1l): Likewise.
66313         * math/w_jnl.c (__jnl, __ynl): Likewise.
66314         * math/w_lgammal.c (__lgammal): Likewise.
66315         * math/w_log10l.c (__log10l): Likewise.
66316         * math/w_log2l.c (__log2l): Likewise.
66317         * math/w_logl.c (__logl): Likewise.
66318         * math/w_powl.c (__powl): Likewise.
66319         * math/w_remainderl.c (__remainderl): Likewise.
66320         * math/w_scalbl.c (sysv_scalbl): Likewise.
66321         * math/w_sinhl.c (__sinhl): Likewise.
66322         * math/w_sqrtl.c (__sqrtl): Likewise.
66323         * math/w_tgammal.c (__tgammal): Likewise.
66324         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
66325         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
66326         * math/libm-test.inc (acos_test): Add more tests.
66327         (acosh_test): Likewise.
66328         (asin_test): Likewise.
66329         (atanh_test): Likewise.
66330         (exp_test): Likewise.
66331         (exp10_test): Likewise.
66332         (exp2_test): Likewise.
66333         (expm1_test): Likewise.
66334         (lgamma_test): Likewise.
66335         (log_test): Likewise.
66336         (log10_test): Likewise.
66337         (log1p_test): Likewise.
66338         (log2_test): Likewise.
66339         (pow_test): Do not allow some spurious overflow exceptions.
66340         (sqrt_test): Add more tests.
66341         (tgamma_test): Likewise.
66342         (y0_test): Likewise.
66343         (y1_test): Likewise.
66344         (yn_test): Likewise.
66345
66346 2012-03-27  Anton Blanchard  <anton@samba.org>
66347
66348         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
66349         MAP_HUGETLB.
66350         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
66351         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
66352         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
66353
66354 2012-03-27  David S. Miller  <davem@davemloft.net>
66355
66356         * conform/Makefile: Run run-conformtest.sh using $(BASH).
66357
66358         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
66359         have-as-vis3 check.
66360
66361 2012-03-27  Andreas Jaeger  <aj@suse.de>
66362
66363         * sysdeps/x86_64/elf/configure.in: Moved to ...
66364         * sysdeps/x86_64/configure.in: ... here.
66365         * sysdeps/x86_64/elf/start.S: Moved to ...
66366         * sysdeps/x86_64/start.S: ... here.
66367         * sysdeps/x86_64/elf/configure: Delete.
66368
66369         * sysdeps/x86_64/configure.in: Merge contents from
66370         sysdeps/i386/configure.in (without i686 check).
66371
66372         * sysdeps/i386/elf/Versions: Merge into ...
66373         * sysdeps/i386/Versions: ... this.
66374         * sysdeps/i386/elf/Versions: Delete file.
66375         * sysdeps/i386/elf/start.S: Moved to ...
66376         * sysdeps/i386/start.S: ...here.
66377         * sysdeps/i386/elf/configure.in: Merge into...
66378         * sysdeps/i386/configure.in: ...here.
66379         * sysdeps/i386/elf/configure.in: Delete file.
66380         * sysdeps/i386/elf/configure: Delete file.
66381
66382         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
66383         * debug/backtracesyms.c: ... here.
66384         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
66385         * debug/backtracesymsfd.c: ... here.
66386         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
66387         * sysdeps/generic/ifunc-sel.h: ... here.
66388
66389         * sysdeps/unix/i386/start.c: Delete file.
66390         * sysdeps/unix/sparc/start.c: Delete file.
66391         * sysdeps/unix/start.c: Delete file.
66392
66393         * sysdeps/sh/elf/configure.in: Moved to ...
66394         * sysdeps/sh/configure.in: ... here.
66395         * sysdeps/sh/elf/start.S: Moved to ...
66396         * sysdeps/sh/start.S: ... here.
66397         * sysdeps/sh/elf/configure: Delete file.
66398
66399         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
66400         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
66401         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
66402         * sysdeps/powerpc/powerpc64/entry.h: ... here.
66403         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
66404         * sysdeps/powerpc/powerpc64/start.S: here.
66405         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
66406         * sysdeps/powerpc/powerpc64/Makefile: ... this.
66407         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
66408         * sysdeps/powerpc/powerpc64/configure.in: ... this.
66409         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
66410
66411         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
66412         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
66413         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
66414         * sysdeps/powerpc/powerpc32/start.S: ... here.
66415         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
66416         * sysdeps/powerpc/powerpc32/configure.in: ... this.
66417         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
66418
66419         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
66420         * sysdeps/powerpc/ifunc-sel.h: ... here.
66421         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
66422         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
66423
66424         * sysdeps/sparc/elf/configure.in: Moved to ...
66425         * sysdeps/sparc/configure.in: ... here.
66426         * sysdeps/sparc/elf/configure: Delete file.
66427         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
66428         * sysdeps/sparc/sparc32/start.S: ... here.
66429         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
66430         * sysdeps/sparc/sparc64/start.S: ... here.
66431         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
66432         * sysdeps/sparc/sparc32/Makefile: ... this.
66433         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
66434         * sysdeps/sparc/sparc64/Makefile: ... this.
66435
66436         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
66437         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
66438         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
66439         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
66440         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
66441         * sysdeps/s390/s390-32/setjmp.S: ... here.
66442         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
66443         * sysdeps/s390/s390-32/configure.in: ... here.
66444         * sysdeps/s390/s390-32/elf/configure: Delete file.
66445         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
66446         * sysdeps/s390/s390-32/start.S: ... here.
66447
66448         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
66449         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
66450         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
66451         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
66452         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
66453         * sysdeps/s390/s390-64/setjmp.S: ... here.
66454         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
66455         * sysdeps/s390/s390-64/configure.in: ... here
66456         * sysdeps/s390/s390-64/elf/configure: Delete file.
66457         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
66458         * sysdeps/s390/s390-64/start.S: ... here.
66459         * sysdeps/s390/s390-64/elf/configure: Delete.
66460
66461         * configure.in: Remove support for elf directories in sysdeps.
66462
66463         * configure: Regenerated.
66464         * sysdeps/i386/configure: Regenerated.
66465         * sysdeps/powerpc/powerpc32/configure: Regenerated.
66466         * sysdeps/powerpc/powerpc64/configure: Regenerated.
66467         * sysdeps/s390/s390-32/configure: Regenerated.
66468         * sysdeps/s390/s390-64/configure: Regenerated.
66469         * sysdeps/sh/configure: Regenerated.
66470         * sysdeps/sparc/configure: Regenerated.
66471         * sysdeps/x86_64/configure: Regenerated.
66472
66473 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
66474
66475         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66476
66477         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
66478         denormal result into account.
66479
66480 2012-03-25  Roland McGrath  <roland@hack.frob.com>
66481
66482         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
66483         Reported by Allan McRae <allan@archlinux.org>.
66484
66485 2012-03-23  Jeff Law  <law@redhat.com>
66486
66487         * nss/getnssent.c (__nss_getent): Fix typo.
66488
66489 2012-03-23  David S. Miller  <davem@davemloft.net>
66490
66491         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66492
66493 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
66494
66495         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
66496         to pad to uint64_t for each field.
66497         (dl_tls_index): Replace unsigned long with uint64_t.
66498
66499 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
66500         Paul Pluzhnikov  <ppluzhnikov@google.com>
66501
66502         [BZ #6528]
66503         * grp/Makefile (otherlibs): Don't set it.
66504         * inet/Makefile (otherlibs): Likewise.
66505         * login/Makefile (otherlibs): Likewise.
66506         * nscd/Makefile (otherlibs): Likewise.
66507         * posix/Makefile (otherlibs): Likewise.
66508         * pwd/Makefile (otherlibs): Likewise.
66509         * rt/Makefile (otherlibs): Likewise.
66510         * sunrpc/Makefile (otherlibs): Likewise.
66511         * nss/Makefile (otherlibs): Likewise.
66512         Add libnss_files to routines and static-only-routines.
66513         ($(objpfx)getent): Remove rule.
66514         * resolv/Makefile: Add libnss_dns and libresolv to routines and
66515         static-only-routines.
66516
66517 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66518
66519         [BZ #13892]
66520         * math/s_cexp.c: Include <float.h>.
66521         (__cexp): Handle exp result overflowing not necessarily
66522         overflowing both real and imaginary parts of result.
66523         * math/s_cexpf.c: Likewise.
66524         * math/s_cexpl.c: Likewise.
66525         * math/libm-test.inc (cexp_test): Add more tests.
66526         * sysdeps/i386/fpu/libm-test-ulps: Update.
66527         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66528
66529 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66530
66531         * include/link.h (ELFW): New macro.
66532         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
66533         Replace ELF64_R_TYPE with ELFW(R_TYPE).
66534
66535 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66536
66537         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
66538         with uint64_t.
66539
66540 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66541
66542         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
66543         declaration.
66544         (struct La_x32_retval): Likewise.
66545
66546 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66547
66548         * sysdeps/x86_64/preconfigure.in: New file.
66549         * sysdeps/x86_64/preconfigure: New generated file.
66550
66551 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66552
66553         [BZ #13824]
66554         * math/e_exp2l.c: Include <float.h>.
66555         (__ieee754_exp2l): Handle overflow and underflow cases
66556         separately.  Only pass fractional part of argument to
66557         __ieee754_expl.
66558         * math/libm-test.inc (exp2_test): Add more tests.
66559
66560         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
66561         negating x to take absolute value.
66562         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
66563         Likewise.
66564         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
66565         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
66566         Likewise.
66567         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
66568         computing low part if x was negated.
66569         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
66570
66571 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66572
66573         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
66574         la_x32_gnu_pltexit.
66575         (pltexit): Cast int_retval to ptrdiff_t.
66576         * elf/tst-auditmod3b.c: Likewise.
66577         * elf/tst-auditmod4b.c: Likewise.
66578         * elf/tst-auditmod5b.c: Likewise.
66579         * elf/tst-auditmod6b.c: Likewise.
66580         * elf/tst-auditmod6c.c: Likewise.
66581         * elf/tst-auditmod7b.c: Likewise.
66582
66583         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
66584         and x32_gnu_pltexit.
66585
66586         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
66587         __ELF_NATIVE_CLASS.
66588         (La_x32_regs): New macro.
66589         (La_x32_retval): Likewise.
66590         (la_x32_gnu_pltenter): New function prototype.
66591         (la_x32_gnu_pltexit): Likewise.
66592
66593 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
66594
66595         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
66596         exponent.
66597
66598         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66599
66600         * configure.in (libc_cv_cc_nofma): Check for option to disable
66601         generation of FMA instructions.
66602         * configure: Regenerate.
66603         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
66604         * sysdeps/ieee754/dbl-64/Makefile: New file.
66605         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
66606         Remove brandred-fma4.
66607         (CFLAGS-brandred-fma4.c): Remove.
66608         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
66609         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
66610         define.
66611         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
66612         define.
66613
66614 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66615
66616         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
66617         LLONG_MAX != LONG_MAX.
66618         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66619         (_fitoa_word): Likewise.
66620         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
66621         LLONG_MAX != LONG_MAX.
66622         * stdio-common/_itowa.h: Include <_itoa.h>.
66623         (_itowa_word): Use _ITOA_WORD_TYPE on value.
66624         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
66625         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
66626         only if not defined.
66627         (_ITOA_WORD_TYPE): Likewise.
66628         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66629         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
66630
66631 2012-03-21  David S. Miller  <davem@davemloft.net>
66632
66633         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66634
66635 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66636
66637         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
66638         of x86_64 when setting libc_cv_slibdir, libdir and
66639         libc_cv_localedir.
66640         * sysdeps/unix/sysv/linux/configure: Regenerated.
66641
66642 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66643
66644         * manual/lang.texi (Old Varargs): Remove section.
66645         (How Variadic): Update menu.
66646         (va_start): Do not mention varargs.h.
66647
66648 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66649             Joseph Myers  <joseph@codesourcery.com>
66650
66651         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
66652         link test.
66653         * configure: Regenerated.
66654
66655 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66656
66657         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
66658         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
66659         conformtest.pl
66660
66661 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66662
66663         * NOTES: Remove.
66664         * Makefile (files-for-dist): Remove NOTES.
66665         (NOTES): Remove rule.
66666         * README: Don't refer to NOTES.
66667         * manual/creature.texi: Don't include macros.texi.
66668         * manual/intro.texi (creature.texi): Remove comment referring to
66669         NOTES.
66670
66671         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
66672         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
66673         * configure: Regenerated.
66674         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
66675         LIBC_TRY_CC_OPTION.
66676         (libc_cv_as_i686): Likewise.
66677         (libc_cv_cc_avx): Likewise.
66678         (libc_cv_cc_sse2avx): Likewise.
66679         (libc_cv_cc_fma4): Likewise.
66680         (libc_cv_cc_novzeroupper): Likewise.
66681         * sysdeps/i386/configure: Regenerated.
66682
66683         [BZ #13883]
66684         * sysdeps/i386/fpu/s_cexp.S: Remove.
66685         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
66686         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
66687         * math/libm-test.inc (cexp_test): Add more tests.
66688         * sysdeps/i386/fpu/libm-test-ulps: Update.
66689         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66690
66691 2012-03-21  Allan McRae  <allan@archlinux.org>
66692
66693         * timezone/Makefile: Do not install iso3166.tab and zone.tab
66694
66695 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66696
66697         [BZ #13871]
66698         * math/w_exp2.c: Do not include <float.h>.
66699         (o_threshold, u_threshold): Remove.
66700         (__exp2): Calculate result before checking finiteness and calling
66701         __kernel_standard.
66702         * math/w_exp2f.c: Likewise.
66703         * math/w_exp2l.c: Likewise.
66704         * math/libm-test.inc (exp2_test): Require overflow exception for
66705         1e6 input.
66706
66707         [BZ #3866]
66708         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
66709         range of signed 64-bit integers before using fistpll.  Remove
66710         checks for whether integers fit in mantissa bits.
66711         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
66712         the range of signed 32-bit integers before using fistpl.  Remove
66713         checks for whether integers fit in mantissa bits.
66714         * sysdeps/i386/fpu/e_powl.S (p64): New object.
66715         (__ieee754_powl): Test for y outside the range of signed 64-bit
66716         integers before using fistpll.  Reduce 64-bit values to 63-bit
66717         ones as needed.
66718         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
66719         divide-by-zero is raised for zero to large negative powers.
66720         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
66721         (__ieee754_powl): Test for y outside the range of signed 64-bit
66722         integers before using fistpll.  Reduce 64-bit values to 63-bit
66723         ones as needed.
66724         * math/libm-test.inc (pow_test): Add more tests.
66725
66726 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66727
66728         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
66729         <stdio-common/_itoa.h>.
66730         * debug/segfault.c: Likewise.
66731         * elf/dl-cache.c: Likewise.
66732         * elf/dl-minimal.c: Likewise.
66733         * elf/dl-misc.c: Likewise.
66734         * elf/dl-sysdep.c: Likewise.
66735         * elf/dl-version.c: Likewise.
66736         * elf/rtld.c: Likewise.
66737         * hurd/hurdsock.c: Likewise.
66738         * hurd/lookup-retry.c: Likewise.
66739         * malloc/malloc.c: Likewise.
66740         * malloc/mtrace.c: Likewise.
66741         * nscd/nscd_getgr_r.c: Likewise.
66742         * nscd/nscd_getpw_r.c: Likewise.
66743         * nscd/nscd_getserv_r.c: Likewise.
66744         * posix/getopt_init.c: Likewise.
66745         * posix/wordexp.c: Likewise.
66746         * stdio-common/_itoa.c: Likewise.
66747         * stdio-common/printf_fphex.c: Likewise.
66748         * stdio-common/vfprintf.c: Likewise.
66749         * string/_strerror.c: Likewise.
66750         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
66751         * sysdeps/i386/i686/hp-timing.h: Likewise.
66752         * sysdeps/mach/_strerror.c: Likewise.
66753         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
66754         * sysdeps/mach/hurd/sethostid.c: Likewise.
66755         * sysdeps/mach/hurd/xmknodat.c: Likewise.
66756         * sysdeps/mach/xpg-strerror.c: Likewise.
66757         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66758         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66759         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
66760         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
66761         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
66762         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
66763         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
66764         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
66765         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
66766         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
66767         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
66768         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
66769         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
66770         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
66771         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
66772         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
66773         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
66774         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
66775         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
66776         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
66777         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
66778
66779         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
66780
66781         * stdio-common/_itoa.h: Moved to ...
66782         * sysdeps/generic/_itoa.h: Here.
66783
66784         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
66785
66786         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
66787         instead of "_itoa.h" and "_itowa.h".
66788         * stdio-common/vfprintf.: Likewise.
66789
66790 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66791
66792         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
66793         <bits/wordsize.h>.
66794         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
66795         (__signbit): Likwise.
66796         (llrintf): Likwise.
66797         (llrint): Likwise.
66798
66799 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66800
66801         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
66802         __WORDSIZE != 64.
66803
66804 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
66805
66806         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
66807         OVERFLOW_EXCEPTION_OK.
66808         * math/libm-test.inc ("Philosophy"): Update comment about
66809         exception testing.
66810         (OVERFLOW_EXCEPTION): Define.
66811         (OVERFLOW_EXCEPTION_OK): Likewise.
66812         (INVALID_EXCEPTION_OK): Renumber.
66813         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
66814         (IGNORE_ZERO_INF_SIGN): Likewise.
66815         (test_exceptions): Handle FE_OVERFLOW.
66816         (exp10_test): Expect overflow exceptions.
66817         (exp2_test): Likewise.
66818         (expm1_test): Likewise.
66819         (nextafter_test): Likewise.
66820         (pow_test): Likewise.
66821         (scalbn_test): Likewise.
66822         (scalbln_test): Likewise.
66823
66824 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66825
66826         * sysdeps/x86_64/bits/atomic.h
66827         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
66828         64bit integer.
66829         (atomic_exchange_acq): Likewise.
66830         (__arch_exchange_and_add_body): Likewise.
66831         (__arch_add_body): Likewise.
66832         (atomic_add_negative): Likewise.
66833         (atomic_add_zero): Likewise.
66834
66835 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66836
66837         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
66838         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
66839
66840 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66841
66842         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
66843         Check __x86_64__ instead of __WORDSIZE.
66844
66845 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66846
66847         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
66848
66849 2012-03-19  David S. Miller  <davem@davemloft.net>
66850
66851         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66852
66853         * sysdeps/sparc/fpu/fenv_private.h: New file.
66854         * sysdeps/sparc/fpu/math_private.h: Use it.
66855         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
66856         Remove.
66857         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
66858         (libc_feholdexcept_setroundl): Remove.
66859         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
66860         Remove.
66861         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
66862         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
66863
66864 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66865
66866         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
66867         int64_t instead of long int.
66868         (INSERT_WORDS64): Likwise.
66869
66870 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66871
66872         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
66873         _Unwind_GetCFA return to _Unwind_Ptr first.
66874
66875 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
66876
66877         [BZ #13629]
66878         * math/s_clog.c: Include <float.h>.
66879         (__clog): Scale large or subnormal inputs.
66880         * math/s_clogf.c: Likewise.
66881         * math/s_clogl.c: Likewise.
66882         * math/s_clog10.c: Include <float.h>.
66883         (M_LOG10_2): Define.
66884         (__clog10): Scale large or subnormal inputs.
66885         * math/s_clog10f.c: Likewise.
66886         * math/s_clog10l.c: Likewise.
66887         * math/libm-test.inc (clog_test): Add more tests.
66888         (clog10_test): Likewise.
66889         * sysdeps/i386/fpu/libm-test-ulps: Update.
66890         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66891
66892         [BZ #11451]
66893         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
66894         x and y.
66895         * math/libm-test.inc (atan2_test): Add another test.
66896
66897         * Makerules (common-objdir-compile): Remove.
66898         * sysdeps/unix/Makefile (config-generated): Do not add
66899         $(unix-generated) to variable.
66900         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
66901         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
66902         Remove rule.
66903         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
66904         Likewise.
66905         [generic bits/local_lim.h] (before-compile): Do not append to
66906         variable.
66907         [generic bits/local_lim.h] (common-generated): Likewise.
66908         [generic sys/param.h] (before-compile): Do not append to variable.
66909         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
66910         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
66911         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
66912         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
66913         include.
66914         [generic sys/param.h] (sys/param.h-includes): Remove variable.
66915         [generic sys/param.h] (sys/param.h-includes): Remove rule.
66916         [generic sys/param.h] ($(addprefix
66917         $(common-objpfx),$(sys/param.h-includes))): Likewise.
66918         [generic sys/param.h] (common-generated): Do not append to
66919         variable.
66920         [generic sys/param.h] (sysdep_headers): Likewise.
66921         [generic bits/errno.h] (before-compile): Do not append to
66922         variable.
66923         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
66924         rule.
66925         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
66926         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
66927         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
66928         [generic bits/errno.h] (common-generated): Do not append to
66929         variable.
66930         [generic bits/ioctls.h] (before-compile): Do not append to
66931         variable.
66932         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
66933         rule.
66934         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
66935         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
66936         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
66937         rule.
66938         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
66939         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
66940         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
66941         [generic bits/ioctls.h] (common-generated): Do not append to
66942         variable.
66943         [generic sys/syscall.h] (syscall.h): Remove variable.
66944         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
66945         rule.
66946         [generic sys/syscall.h] (before-compile): Do not append to
66947         variable.
66948         [generic sys/syscall.h] (common-generated): Likewise.
66949         * sysdeps/unix/errnos-tmpl.c: Remove file.
66950         * sysdeps/unix/errnos.awk: Likewise.
66951         * sysdeps/unix/ioctls-tmpl.c: Likewise.
66952         * sysdeps/unix/ioctls.awk: Likewise.
66953         * sysdeps/unix/mk-local_lim.c: Likewise.
66954         * sysdeps/unix/snarf-ioctls: Likewise.
66955
66956 2012-03-19  Richard Henderson  <rth@twiddle.net>
66957
66958         * sysdeps/i386/fpu/fenv_private.h: New file.
66959         * sysdeps/i386/fpu/math_private.h: Use it.
66960         (math_opt_barrier, math_force_eval): Remove.
66961         (libc_feholdexcept_setround_53bit): Remove.
66962         (libc_feupdateenv_53bit): Remove.
66963         * sysdeps/x86_64/fpu/math_private.h: Likewise.
66964         (math_opt_barrier, math_force_eval): Remove.
66965         (libc_feholdexcept): Remove.
66966         (libc_feholdexcept_setround): Remove.
66967         (libc_fetestexcept, libc_fesetenv): Remove.
66968         (libc_feupdateenv_test): Remove.
66969         (libc_feupdateenv, libc_feholdsetround): Remove.
66970         (libc_feresetround): Remove.
66971
66972         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
66973         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
66974
66975         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
66976         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
66977         (libc_feupdateenv_testl): New.
66978         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
66979         (libc_feupdateenv_testf): New.
66980         (libc_feupdateenv): Use libc_feupdateenv_test.
66981         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
66982         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
66983
66984         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
66985         (libc_feholdsetroundf, libc_feholdsetroundl): New.
66986         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
66987         (libc_feresetround_noex): New.
66988         (libc_feresetround_noexf): New.
66989         (libc_feresetround_noexl): New.
66990         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
66991         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
66992         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
66993         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
66994         SET_RESTORE_ROUND.
66995         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
66996         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
66997         (__cos): Likewise.
66998         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
66999         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
67000         SET_RESTORE_ROUND_NOEX.
67001         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
67002         SET_RESTORE_ROUND_NOEXF.
67003         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
67004         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
67005         (libc_feholdsetroundf): New.
67006         (libc_feresetround, libc_feresetroundf): New.
67007
67008         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
67009         (libc_feholdexcept_setround_53bit): Convert from macro to function.
67010         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
67011
67012         * sysdeps/generic/math_private.h: Include <fenv.h>.
67013         (default_libc_feholdexcept): New.
67014         (default_libc_feholdexcept_setround): New.
67015         (default_libc_fesetenv, default_libc_feupdateenv): New.
67016         (libc_feholdexcept): Only define if undefined.
67017         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
67018         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
67019         (libc_feholdexcept_setroundl): Likewise.
67020         (libc_feholdexcept_setround_53bit): Likewise.
67021         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
67022         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
67023         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
67024         (libc_feupdateenv_53bit): Likewise.
67025         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
67026         (libc_feholdexcept): Convert from macro to inline function.
67027         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
67028         (libc_fesetenv, libc_feupdateenv): Likewise.
67029
67030         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
67031         not previously defined.
67032         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
67033         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
67034         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
67035         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
67036         * sysdeps/ieee754/flt-32/math_private.h: New file.
67037         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
67038         math_private.h below SET_FLOAT_WORD.
67039         (__isnan, __isinf_ns, __finite): Remove.
67040         (__isnanf, __isinf_nsf, __finitef): Remove.
67041
67042 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
67043
67044         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67045
67046 2012-03-17  David S. Miller  <davem@davemloft.net>
67047
67048         [BZ #6471]
67049         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
67050         for 2.16.
67051
67052 2012-03-16  David S. Miller  <davem@davemloft.net>
67053
67054         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
67055         warnings.
67056
67057         [BZ #6471]
67058         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
67059         properly.
67060         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
67061         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
67062         sysdep_routines when subdir is sysvipc.
67063         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
67064         __getshmlba helper.
67065
67066         * sysdeps/sparc/fpu/libm-test/ulps: Update.
67067
67068 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67069
67070         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
67071         [__LP64__].
67072
67073 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67074
67075         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
67076         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
67077         (__lround): Renamed to ...
67078         (__llround): This.  Replace long int with long long int.
67079         Define lround functions as aliases of llround functions.
67080         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
67081
67082 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67083
67084         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
67085         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
67086         adresses to uintptr_t.  Replace "long int" and "unsigned long
67087         int" with "greg_t" on va_arg.
67088
67089 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67090
67091         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
67092         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
67093
67094         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
67095         Move e_machine check before EI_CLASS check.  Handle x32
67096         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
67097         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
67098         SKIP_EM_IA_64 and include
67099         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
67100
67101         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
67102         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
67103         (add_system_dir): New macro.
67104
67105         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
67106         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
67107
67108 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
67109
67110         [BZ #2551]
67111         [BZ #2552]
67112         [BZ #2553]
67113         [BZ #2554]
67114         [BZ #2562]
67115         [BZ #2563]
67116         [BZ #2565]
67117         [BZ #2566]
67118         [BZ #2576]
67119         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
67120         (y0): Likewise.
67121         * math/w_j0f.c (j0f): Likewise.
67122         (y0f): Likewise.
67123         * math/w_j0l.c (__j0l): Likewise.
67124         (__y0l): Likewise.
67125         * math/w_j1.c (j1): Likewise.
67126         (y1): Likewise.
67127         * math/w_j1f.c (j1f): Likewise.
67128         (y1f): Likewise.
67129         * math/w_j1l.c (__j1l): Likewise.
67130         (__y1l): Likewise.
67131         * math/w_jn.c (jn): Likewise.
67132         (yn): Likewise.
67133         * math/w_jnf.c (jnf): Likewise.
67134         (ynf): Likewise.
67135         * math/w_jnl.c (__jnl): Likewise.
67136         (__ynl): Likewise.
67137         * math/libm-test.inc (j0_test): Add more tests.
67138         (j1_test): Likewise.
67139         (jn_test): Likewise.  Add trailing semicolon to existing test.
67140         (y0_test): Likewise.
67141         (y1_test): Likewise.
67142         * sysdeps/i386/fpu/libm-test-ulps: Update.
67143         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67144
67145         [BZ #13851]
67146         [BZ #13854]
67147         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
67148         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
67149         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
67150         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
67151         (__tanl): Set errno for infinite argument.
67152         * sysdeps/i386/fpu/mptan.c: Remove.
67153         * sysdeps/i386/fpu/s_tan.S: Likewise.
67154         * sysdeps/i386/fpu/s_tanl.S: Likewise.
67155         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
67156         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
67157         * math/libm-test.inc (tan_test): Add more tests and enable more
67158         tests for double and long double.
67159         * sysdeps/i386/fpu/libm-test-ulps: Update.
67160         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67161
67162 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
67163
67164         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
67165         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
67166
67167 2012-03-16  Roland McGrath  <roland@hack.frob.com>
67168
67169         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
67170         * configure.in: Use it for both main tree and add-ons.
67171         * configure: Regenerated.
67172
67173 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67174
67175         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
67176
67177 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
67178
67179         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
67180         in comment.
67181
67182         [BZ #13851]
67183         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
67184         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
67185         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
67186         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
67187         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
67188         infinite argument.
67189         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
67190         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
67191         != 0 for prec == 2.
67192         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
67193         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
67194         * sysdeps/i386/fpu/s_cosl.S: Likewise.
67195         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
67196         * sysdeps/i386/fpu/s_sinl.S: Likewise.
67197         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
67198         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
67199         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
67200         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
67201         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
67202         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
67203         * math/libm-test.inc (cos_test): Add more tests and enable more
67204         tests for long double.
67205         (sin_test): Likewise.
67206         (sincos_test): Likewise.
67207         * sysdeps/i386/fpu/libm-test-ulps: Update.
67208         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67209
67210 2012-03-16  David S. Miller  <davem@davemloft.net>
67211
67212         * sysdeps/sparc/fpu/math_private.h: New file.
67213
67214 2012-03-15  David S. Miller  <davem@davemloft.net>
67215
67216         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
67217         file.
67218         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
67219         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
67220         file.
67221         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
67222         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
67223         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
67224         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
67225         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
67226         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
67227         sysdep routines.
67228         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67229
67230         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
67231         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
67232
67233         * sysdeps/sparc/sparc-ifunc.h: New file.
67234         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
67235         sparc-ifunc.h
67236         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
67237         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
67238         Likewise.
67239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
67240         Likewise.
67241         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
67242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
67243         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
67244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
67245         Likewise.
67246         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
67247         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
67248         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
67249         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
67250         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
67251         Likewise.
67252         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
67253         Likewise.
67254         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
67255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
67256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
67257         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
67258         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
67259         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
67260         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
67261         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
67262         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
67263         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
67264         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
67265         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
67266         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
67267         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
67268         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
67269         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
67270         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
67271         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
67272         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
67273         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
67274         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
67275         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
67276         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
67277         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
67278
67279 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
67280
67281         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
67282         scaling.
67283         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67284
67285 2012-03-15  Andreas Jaeger  <aj@suse.de>
67286
67287         [BZ #13852]
67288         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
67289         ieee754/flt-32 implementation for sin, cos and sincos.
67290         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
67291         * sysdeps/i386/fpu/s_cosf.S: Likewise.
67292         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
67293         * sysdeps/i386/fpu/s_sinf.S: Likewise.
67294         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
67295         ieee754/flt-32 implementation for tan.
67296
67297         * math/libm-test.inc (cos_test): Enable some large input tests for
67298         float as well
67299         (sin_test): Likewise.
67300         (sincos_test): Likewise.
67301         (tan_test): Add tests for large input.
67302
67303         * sysdeps/i386/fpu/libm-test-ulps: Update.
67304
67305 2012-03-15  Andreas Jaeger  <aj@suse.de>
67306
67307         [BZ #13658]
67308         * math/libm-test.inc (cos_test): Add more test cases.
67309         (sin_test): Likewise.
67310         (sincos_test): Likewise.
67311
67312 2012-03-15  Andreas Jaeger  <aj@suse.de>
67313
67314         [BZ #13837]
67315         * math/libm-test.inc (cos_test): Add a test case for large input
67316         value.
67317         (sin_test): Likewise.
67318         (sincos_test): Likewise.
67319
67320 2012-03-15  Andreas Jaeger  <aj@suse.de>
67321             Joseph Myers  <joseph@codesourcery.com>
67322
67323         [BZ #13658]
67324         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
67325         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
67326         * sysdeps/i386/fpu/branred.c: Likewise.
67327         * sysdeps/i386/fpu/dosincos.c: Likewise.
67328         * sysdeps/i386/fpu/mpa.c: Likewise.
67329         * sysdeps/i386/fpu/s_cos.S: Likewise.
67330         * sysdeps/i386/fpu/s_sin.S: Likewise.
67331         * sysdeps/i386/fpu/s_sincos.S: Likewise.
67332         * sysdeps/i386/fpu/sincos32.c: Likewise.
67333
67334         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
67335         Define.
67336         (libc_feupdateenv_53bit): Define.
67337         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
67338         Define.
67339         (libc_feupdateenv_53bit): Define.
67340
67341         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
67342         53 bit (without extend i386 double precision).
67343
67344         * math/libm-test.inc (sincos_test): Add tests for large input.
67345         (sin): Likewise.
67346         (cos): Likewise.
67347
67348         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
67349
67350 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
67351
67352         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67353
67354 2012-03-15  David S. Miller  <davem@davemloft.net>
67355
67356         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
67357         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
67358         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
67359         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
67360         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
67361         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
67362         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
67363         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
67364         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
67365         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
67366         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
67367         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
67368         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
67369         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
67370         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
67371         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
67372         file.
67373         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
67374         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
67375         file.
67376         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
67377         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
67378         file.
67379         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
67380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
67381         file.
67382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
67383         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
67384         fmin/fmax sysdep routines.
67385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67386
67387 2012-03-14  David S. Miller  <davem@davemloft.net>
67388
67389         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
67390         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
67391         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
67392         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
67393         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
67394         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
67395         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
67396         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
67397         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
67398         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
67399         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
67400         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
67401         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
67402         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
67403         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
67404         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
67405         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
67406         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
67407         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
67408         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
67409         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
67410         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
67411         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
67412         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
67413         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
67414         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
67415         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
67416         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
67417         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
67418         routines.
67419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
67420         file.
67421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
67422         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
67423         file.
67424         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
67425         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
67426         file.
67427         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
67428         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
67429         file.
67430         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
67431         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
67432         file.
67433         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
67434         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
67435         file.
67436         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
67437         file.
67438         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
67439         file.
67440         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
67441         file.
67442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
67443         New file.
67444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
67445         file.
67446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
67447         file.
67448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
67449         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
67450         file.
67451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
67452         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
67453         file.
67454         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
67455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
67456         file.
67457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
67458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
67459         VIS3 routines.
67460
67461         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
67462         New file.
67463
67464         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67465
67466         * sysdeps/sparc/configure.in: New file.
67467         * sysdeps/sparc/configure: Generate.
67468         * configure.in (libc_cv_sparc_as_vis3): Substitute.
67469         * configure: Regenerate.
67470         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
67471         * config.make.in (have-as-vis3): New.
67472         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
67473         available use -Av9d instead of -Av9a.
67474         * sysdeps/sparc/sparc64/Makefile: Likewise.
67475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
67476         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
67477         New file.
67478         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
67479         file.
67480         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
67481         New file.
67482         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
67483         file.
67484         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
67485         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
67486         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
67487         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
67488         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
67489
67490         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
67491         fzeros/fnegs to load 0x80000000 into a float register instead of
67492         using the stack.
67493         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
67494
67495 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67496
67497         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67498         bits/syscall.h.
67499         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
67500         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
67501         ($(inst_includedir)/bits/syscall.h): Remove rule.
67502         ($(objpfx)bits/syscall.d): Include instead of
67503         $(objpfx)syscall-list.d.
67504         (generated): Change syscall-list.h and syscall-list.d to
67505         bits/syscall.h and bits/syscall.d.
67506
67507 2012-03-14  Roland McGrath  <roland@hack.frob.com>
67508
67509         [BZ #13846]
67510         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
67511
67512 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67513
67514         [BZ #13841]
67515         * math/s_csqrt.c: Include <float.h>.
67516         (__csqrt): Scale large or subnormal inputs.
67517         * math/s_csqrtf.c: Likewise.
67518         * math/s_csqrtl.c: Likewise.
67519         * math/libm-test.inc (csqrt_test): Add more tests.
67520         * sysdeps/i386/fpu/libm-test-ulps: Update.
67521         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67522
67523         [BZ #13840]
67524         * math/libm-test.inc (hypot_test): Add more tests.
67525
67526 2012-03-13  David S. Miller  <davem@davemloft.net>
67527
67528         [BZ #13840]
67529         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
67530         double-precision for the calculation instead of scaling.
67531
67532 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
67533
67534         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
67535         manipulate bits before adding and subtracting TWO52[sx].
67536         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
67537         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
67538         Likewise.
67539         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
67540
67541 2012-03-13  David S. Miller  <davem@davemloft.net>
67542
67543         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
67544         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
67545         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
67546         rtld-global-offsets.h
67547         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
67548
67549         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
67550         large parameters.
67551
67552         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
67553
67554         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
67555         'err' in the ifdef scope in which it is actually used.
67556
67557         * nss/nss_db/db-init.c: Include string.h
67558
67559 2012-03-12  David S. Miller  <davem@davemloft.net>
67560
67561         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
67562         masking out of the most significant byte of random value used.
67563         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67564         Fix coding style in previous change.
67565
67566         * sysdeps/unix/sysv/linux/kernel-features.h
67567         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
67568         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
67569         expression.
67570         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
67571         later.
67572
67573 2012-03-11  David S. Miller  <davem@davemloft.net>
67574
67575         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
67576         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
67577         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
67578         for 'resultvar' otherwise things get truncated on 64-bit.
67579
67580         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67581         Fix masking out of the most significant byte of random value used.
67582
67583         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67584
67585 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
67586
67587         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67588
67589 2012-03-09  David S. Miller  <davem@davemloft.net>
67590
67591         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
67592         variables with appropriate CPP guards.
67593         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
67594         from the frame pointer, not the stack pointer.  Correct layout
67595         comments.  Fix test on resulting framesize and the management of
67596         the outregs buffer for pltexit.  Preserve floating point return
67597         values across _dl_call_pltexit call.
67598         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
67599         framesize and the management of the outregs buffer for pltexit.
67600         Preserve floating point return values across _dl_call_pltexit
67601         call.
67602         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
67603         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
67604         (la_sparc64_gnu_pltexit): New functions.
67605         (print_exit): Fix format string for return register value.
67606
67607 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
67608
67609         * sunrpc/Makefile (others): Add rpcgen.
67610         ($(objpfx)rpcgen): Remove special build rule and dependency on
67611         libc.
67612         * sunrpc/rpcgen.c: New file.
67613
67614 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67615
67616         [BZ #13673]
67617         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
67618         * stdio-common/bug-vfprintf-nargs.c: Likewise.
67619         * sysdeps/i386/crti.S: Likewise.
67620         * sysdeps/i386/crtn.S: Likewise.
67621         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
67622         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
67623         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
67624         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
67625         * sysdeps/sh/crti.S: Likewise.
67626         * sysdeps/sh/crtn.S: Likewise.
67627         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
67628
67629         [BZ #13673]
67630         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
67631         with URL.
67632         * locale/programs/locfile-kw.gperf: Likewise.
67633         * locale/programs/charmap-kw.h: Regenerated.
67634         * locale/programs/locfile-kw.h: Likewise.
67635
67636         [BZ #13673]
67637         * intl/plural.y: Replace FSF snail mail address with URL.
67638         * intl/plural.c: Regenerated.
67639
67640 2012-03-09  Richard Henderson  <rth@twiddle.net>
67641
67642         * include/math_private.h: Remove file.
67643         * math/math_private.h: Move file ...
67644         * sysdeps/generic/math_private.h: ... here.
67645
67646         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
67647         * sysdeps/powerpc/fpu/math_private.h: Likewise.
67648         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67649
67650         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
67651         and <math_private.h>.
67652         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
67653         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
67654         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
67655         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
67656         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
67657         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
67658         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67659         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67660         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
67661         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67662         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67663         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
67664         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
67665         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67666         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
67667         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
67668         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
67669         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
67670         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
67671         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
67672         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67673         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
67674         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
67675         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67676         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
67677         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67678         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
67679         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67680         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67681         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
67682         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
67683         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67684         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
67685         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
67686         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
67687         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
67688         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
67689         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
67690         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
67691         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
67692         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
67693         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
67694         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
67695         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
67696         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
67697         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
67698         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
67699         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
67700         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
67701         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
67702         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
67703         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
67704         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
67705         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
67706         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
67707         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
67708         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
67709         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
67710         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
67711         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
67712         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67713         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
67714         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67715         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
67716         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
67717         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67718         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67719         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67720         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
67721         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
67722         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
67723         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
67724         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
67725         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
67726         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
67727         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
67728         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
67729         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
67730         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
67731         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
67732         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
67733         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
67734         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
67735         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
67736         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
67737         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
67738         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
67739         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
67740         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
67741         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
67742         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
67743         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
67744         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
67745         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
67746         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
67747         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
67748         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
67749         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
67750         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
67751         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
67752         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
67753         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
67754         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
67755         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
67756         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
67757         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
67758         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
67759         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
67760         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
67761         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
67762         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
67763         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
67764         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
67765         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
67766         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
67767         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
67768         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
67769         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
67770         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
67771         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
67772         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
67773         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
67774         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
67775         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
67776         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
67777         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
67778         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
67779         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
67780         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
67781         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
67782         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
67783         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
67784         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
67785         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
67786         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
67787         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
67788         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
67789         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
67790         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
67791         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
67792         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
67793         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
67794         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
67795         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
67796         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
67797         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
67798         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
67799         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
67800         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
67801         * sysdeps/ieee754/k_standard.c: Likewise.
67802         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
67803         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
67804         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
67805         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
67806         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
67807         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
67808         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
67809         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
67810         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
67811         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
67812         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
67813         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
67814         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
67815         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
67816         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
67817         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
67818         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
67819         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
67820         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
67821         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
67822         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
67823         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
67824         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
67825         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
67826         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
67827         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
67828         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
67829         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
67830         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
67831         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
67832         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
67833         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
67834         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
67835         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
67836         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
67837         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
67838         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
67839         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
67840         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
67841         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
67842         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
67843         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
67844         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
67845         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
67846         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
67847         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
67848         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
67849         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
67850         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
67851         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
67852         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
67853         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
67854         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
67855         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
67856         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
67857         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
67858         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
67859         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
67860         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
67861         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
67862         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
67863         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
67864         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
67865         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
67866         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
67867         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
67868         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
67869         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
67870         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
67871         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
67872         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
67873         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
67874         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
67875         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
67876         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
67877         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
67878         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
67879         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
67880         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67881         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
67882         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
67883         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
67884         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
67885         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
67886         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
67887         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
67888         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
67889         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
67890         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
67891         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
67892         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
67893         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
67894         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
67895         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
67896         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
67897         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
67898         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
67899         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
67900         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
67901         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
67902         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
67903         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
67904         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
67905         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
67906         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
67907         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
67908         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
67909         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
67910         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
67911         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
67912         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
67913         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
67914         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
67915         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
67916         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
67917         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
67918         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
67919         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
67920         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
67921         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
67922         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
67923         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
67924         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
67925         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
67926         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
67927         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
67928         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
67929         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
67930         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
67931         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
67932         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
67933         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
67934         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
67935         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
67936         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
67937         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
67938         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
67939         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
67940         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
67941         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
67942         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
67943         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
67944         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
67945         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
67946         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
67947         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
67948         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
67949         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
67950         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
67951         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
67952         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
67953         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
67954         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
67955         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
67956         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
67957         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
67958         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
67959         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
67960         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
67961         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
67962         * sysdeps/ieee754/s_lib_version.c: Likewise.
67963         * sysdeps/ieee754/s_matherr.c: Likewise.
67964         * sysdeps/ieee754/s_signgam.c: Likewise.
67965         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
67966         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
67967         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
67968         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
67969         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
67970         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
67971         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
67972         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
67973         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
67974         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
67975         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
67976         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
67977         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
67978         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
67979         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
67980         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67981         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67982         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67983         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67984         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
67985         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
67986
67987 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67988
67989         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
67990         * sunrpc/rpc_main.c: Likewise.
67991         * sunrpc/rpc_svcout.c: Likewise.
67992
67993 2012-03-09  David S. Miller  <davem@davemloft.net>
67994
67995         * include/math_private.h: New file.
67996
67997 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67998
67999         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
68000         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
68001         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
68002         from <bits/socket_type.h>.
68003         (enum __socket_type): Don't define here.
68004         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
68005         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68006         bits/socket_type.h.
68007
68008         [BZ #13566]
68009         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
68010         checking __USE_GNU.
68011
68012         * Makerules ($(inst_includedir)/%.h): New rule.
68013         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
68014         (install-others): Remove variable setting.
68015         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
68016
68017 2012-03-08  Richard Henderson  <rth@twiddle.net>
68018
68019         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
68020         from macro to inline function; merge with the
68021         !__LIBC_INTERNAL_MATH_INLINES version.
68022         (__ieee754_sqrtf): Likewise.
68023
68024         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
68025         to inline function.
68026         (__rintf, __floor, __floorf): Likewise.
68027
68028         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
68029         macro to inline function.
68030         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
68031
68032         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
68033         not <math/math_private.h>.
68034
68035 2012-03-08  David S. Miller  <davem@davemloft.net>
68036
68037         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
68038         copyright year.
68039         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
68040
68041 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
68042
68043         * resolv/gai_misc.c (handle_requests): Fix struct timespec
68044         normalization.
68045         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
68046         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
68047
68048 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
68049
68050         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
68051         be defined individually, they must be defined as a block.  Define
68052         S for printing a string instead of hidint the different by using a
68053         macro for adding the 'l'.
68054         * stdio-common/tst-fphex-wide.c: Adjust.
68055
68056 2012-03-07  Marek Polacek  <polacek@redhat.com>
68057
68058         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
68059
68060 2012-03-08  Marek Polacek  <polacek@redhat.com>
68061
68062         [BZ #13806]
68063         * stdio-common/Makefile (tests): Add tst-fphex-wide.
68064         * stdio-common/tst-fphex.c: Define a few macros to make the
68065         test reusable.  Use them.
68066         * stdio-common/tst-fphex-wide.c: New file.
68067
68068 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
68069
68070         [BZ #6911]
68071         * manual/macros.texi (gnusystems): New macro.
68072         (nongnusystems): Likewise.
68073         (gnulinuxhurdsystems): Likewise.
68074         (gnuhurdsystems): Likewise..
68075         (gnulinuxsystems): Likewise.
68076         * manual/charset.texi: Use new macros or @theglibc{} to refer to
68077         variants of the GNU system, not "GNU system".
68078         * manual/conf.texi: Likewise.
68079         * manual/errno.texi: Likewise.  Update example of errno macro
68080         expansion.
68081         * manual/filesys.texi: Likewise.
68082         (getumask): Document as specific to GNU/Hurd.
68083         * manual/install.texi: Likewise.  Reword some references to
68084         GNU/Linux.
68085         * manual/intro.texi: Likewise.
68086         * manual/io.texi: Likewise.
68087         (File Name Portability): Detail which constraints are inapplicable
68088         to all GNU systems and which are only inapplicable to GNU/Hurd.
68089         * manual/job.texi: Likewise.
68090         * manual/llio.texi: Likewise.
68091         (O_NOCTTY): Document as present on GNU/Linux.
68092         * manual/maint.texi: Likewise.
68093         * manual/memory.texi: Likewise.
68094         * manual/pattern.texi: Likewise.
68095         * manual/pipe.texi: Likewise.
68096         * manual/process.texi: Likewise.
68097         * manual/resource.texi: Likewise.
68098         (RUSAGE_CHILDREN): Remove statement about specifying a particular
68099         child on GNU/Hurd.
68100         * manual/setjmp.texi: Likewise.
68101         * manual/signal.texi: Likewise.
68102         * manual/startup.texi: Likewise.
68103         * manual/stdio.texi: Likewise.
68104         * manual/terminal.texi: Likewise.
68105         (ONLCR): Document as POSIX.
68106         (OXTABS): Document availability on GNU/Linux as XTABS.
68107         (ONOEOT): Document availability separately from other bits.
68108         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
68109         * manual/time.texi: Likewise.
68110         * manual/users.texi: Likewise.
68111         * INSTALL: Regenerated.
68112         * sysdeps/gnu/errlist.c: Regenerated.
68113
68114         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
68115         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
68116         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
68117         puts.
68118         * configure: Regenerated.
68119
68120 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
68121
68122         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
68123         default includes instead of AC_HEADER_CHECK.
68124         * sysdeps/i386/configure: Regenerated.
68125
68126         [BZ #10716]
68127         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
68128         * math/s_cacoshf.c (__cacoshf): Likewise.
68129         * math/s_cacoshl.c (__cacoshl): Likewise.
68130         * math/s_casinh.c (__casinh): Set signs of result from argument.
68131         * math/s_casinhf.c (__casinhf): Likewise.
68132         * math/s_casinhl.c (__casinhl): Likewise.
68133         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
68134         (casinh_test): Add more tests.
68135         * sysdeps/i386/fpu/libm-test-ulps: Update.
68136         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68137
68138 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
68139
68140         * po/zh_TW.po: Update from translation team.
68141
68142         * login/Makefile (distribute): Remove variable.
68143         * catgets/Makefile: Likewise.
68144         * mach/Makefile: Likewise.
68145         * malloc/Makefile: Likewise.
68146         * misc/Makefile: Likewise.
68147         * iconv/Makefile: Likewise.
68148         * nscd/Makefile: Likewise.
68149         * hurd/Makefile: Likewise.
68150         * manual/Makefile: Likewise.
68151         * locale/Makefile: Likewise.
68152         * intl/Makefile: Likewise.
68153         * conform/Makefile: Likewise.
68154         * nss/Makefile: Likewise.
68155         * time/Makefile: Likewise.
68156         * soft-fp/Makefile: Likewise.
68157         * dirent/Makefile: Likewise.
68158         * gmon/Makefile: Likewise.
68159         * po/Makefile: Likewise.
68160         * rt/Makefile: Likewise.
68161         * socket/Makefile: Likewise.
68162         * math/Makefile: Likewise.
68163         * signal/Makefile: Likewise.
68164         * debug/Makefile: Likewise.
68165         * elf/Makefile: Likewise.
68166         * timezone/Makefile: Likewise.
68167         * stdlib/Makefile: Likewise.
68168         * iconvdata/Makefile: Likewise.
68169         * sunrpc/Makefile: Likewise.
68170         * io/Makefile: Likewise.
68171         * argp/Makefile: Likewise.
68172         * inet/Makefile: Likewise.
68173         * hesiod/Makefile: Likewise.
68174         * grp/Makefile: Likewise.
68175         * csu/Makefile: Likewise.
68176         * wctype/Makefile: Likewise.
68177         * crypt/Makefile: Likewise.
68178         * libio/Makefile: Likewise.
68179         * string/Makefile: Likewise.
68180         * nis/Makefile: Likewise.
68181         * resolv/Makefile: Likewise.
68182         * stdio-common/Makefile: Likewise.
68183         * wcsmbs/Makefile: Likewise.
68184         * dlfcn/Makefile: Likewise.
68185         * posix/Makefile: Likewise.
68186
68187         [BZ #6959]
68188         * timezone/Makefile: Don't install timezone files, just the programs
68189         and scripts.
68190
68191 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
68192
68193         * nss/databases.def: Add missing gshadow entry.
68194
68195         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
68196
68197 2012-03-06  Marek Polacek  <polacek@redhat.com>
68198
68199         [BZ #13726]
68200         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
68201         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
68202         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
68203         * stdio-common/tst-long-dbl-fphex.c: New file.
68204
68205 2012-03-06  David S. Miller  <davem@davemloft.net>
68206
68207         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
68208         (set_obp_int): New function.
68209         (get_obp_int): New function.
68210         (__get_clockfreq_via_dev_openprom): Likewise.
68211         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
68212         Avoid unused variable warnings on 'val' and use builtin_expect.
68213         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
68214         __builtin_expect.
68215         (INLINE_CLONE_SYSCALL): Likewise.
68216
68217 2012-03-05  David S. Miller  <davem@davemloft.net>
68218
68219         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68220
68221 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
68222
68223         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68224
68225         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
68226         only for |x| >= 40.
68227         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
68228
68229 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
68230
68231         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
68232         Replace gettimeofday with __vdso_gettimeofday.
68233
68234         * sysdeps/unix/sysv/linux/x86_64/init-first.c
68235         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
68236         __vdso_clock_gettime and __vdso_getcpu.
68237
68238         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
68239         time with __vdso_time.
68240
68241 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
68242
68243         * manual/lang.texi (size_t): Note types to which size_t may be
68244         equivalent with the GNU C Library, but do not describe when
68245         differences between them are significant.
68246
68247 2012-03-05  Andreas Jaeger  <aj@suse.de>
68248
68249         * sysdeps/i386/fpu/libm-test-ulps: Update.
68250
68251 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
68252
68253         [BZ #3976]
68254         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
68255         (__ieee754_pow): Save and restore rounding mode and use
68256         round-to-nearest for main computations.
68257         * math/libm-test.inc (pow_test_tonearest): New function.
68258         (pow_test_towardzero): Likewise.
68259         (pow_test_downward): Likewise.
68260         (pow_test_upward): Likewise.
68261         (main): Call the new functions.
68262         * sysdeps/i386/fpu/libm-test-ulps: Update.
68263         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68264
68265         [BZ #3976]
68266         * math/libm-test.inc (cosh_test_tonearest): New function.
68267         (cosh_test_towardzero): Likewise.
68268         (cosh_test_downward): Likewise.
68269         (cosh_test_upward): Likewise.
68270         (sinh_test_tonearest): Likewise.
68271         (sinh_test_towardzero): Likewise.
68272         (sinh_test_downward): Likewise.
68273         (sinh_test_upward): Likewise.
68274         (main): Call the new functions.
68275         * sysdeps/i386/fpu/libm-test-ulps: Update.
68276         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68277
68278 2012-03-05  Tom de Vries  <tom@codesourcery.com>
68279
68280         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
68281         default stack guard is set in last bytes.
68282         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
68283
68284 2012-03-05  Kees Cook  <keescook@chromium.org>
68285
68286         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
68287
68288         [BZ #13656]
68289         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
68290         possibly allocate from heap instead of stack.
68291         * stdio-common/bug-vfprintf-nargs.c: New file.
68292         * stdio-common/Makefile (tests): Add nargs overflow test.
68293
68294 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
68295
68296         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68297
68298 2012-03-03  Marek Polacek  <polacek@redhat.com>
68299
68300         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
68301         * math/math_private.h: Likewise.
68302         * stdlib/tst-strtod.c: Likewise.
68303         * sysdeps/i386/i486/bits/atomic.h: Likewise.
68304         * sysdeps/x86_64/bits/atomic.h: Likewise.
68305
68306 2012-03-02  David S. Miller  <davem@davemloft.net>
68307
68308         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
68309         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
68310         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
68311         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
68312         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
68313         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
68314         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
68315         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
68316
68317 2012-03-02  Roland McGrath  <roland@hack.frob.com>
68318
68319         [BZ #13792]
68320         * manual/examples/README: New file, says the example source files
68321         can be used under GPL>=2.
68322         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
68323         line containing just "*/".
68324         * manual/examples/add.c: Add copyright header (GPL>=2).
68325         * manual/examples/argp-ex1.c: Likewise.
68326         * manual/examples/argp-ex2.c: Likewise.
68327         * manual/examples/argp-ex3.c: Likewise.
68328         * manual/examples/argp-ex4.c: Likewise.
68329         * manual/examples/atexit.c: Likewise.
68330         * manual/examples/db.c: Likewise.
68331         * manual/examples/dir.c: Likewise.
68332         * manual/examples/dir2.c: Likewise.
68333         * manual/examples/execinfo.c: Likewise.
68334         * manual/examples/filecli.c: Likewise.
68335         * manual/examples/filesrv.c: Likewise.
68336         * manual/examples/fmtmsgexpl.c: Likewise.
68337         * manual/examples/genpass.c: Likewise.
68338         * manual/examples/inetcli.c: Likewise.
68339         * manual/examples/inetsrv.c: Likewise.
68340         * manual/examples/isockad.c: Likewise.
68341         * manual/examples/longopt.c: Likewise.
68342         * manual/examples/memopen.c: Likewise.
68343         * manual/examples/memstrm.c: Likewise.
68344         * manual/examples/mkfsock.c: Likewise.
68345         * manual/examples/mkisock.c: Likewise.
68346         * manual/examples/mygetpass.c: Likewise.
68347         * manual/examples/pipe.c: Likewise.
68348         * manual/examples/popen.c: Likewise.
68349         * manual/examples/rprintf.c: Likewise.
68350         * manual/examples/search.c: Likewise.
68351         * manual/examples/select.c: Likewise.
68352         * manual/examples/setjmp.c: Likewise.
68353         * manual/examples/sigh1.c: Likewise.
68354         * manual/examples/sigusr.c: Likewise.
68355         * manual/examples/stpcpy.c: Likewise.
68356         * manual/examples/strdupa.c: Likewise.
68357         * manual/examples/strftim.c: Likewise.
68358         * manual/examples/strncat.c: Likewise.
68359         * manual/examples/subopt.c: Likewise.
68360         * manual/examples/swapcontext.c: Likewise.
68361         * manual/examples/termios.c: Likewise.
68362         * manual/examples/testopt.c: Likewise.
68363         * manual/examples/testpass.c: Likewise.
68364         * manual/examples/timeval_subtract.c: Likewise.
68365
68366         [BZ #13792]
68367         * manual/time.texi (Elapsed Time): Move timeval_subtract example
68368         function to ...
68369         * manual/timeval_subtract.c.texi: ... here, new file.
68370
68371 2012-03-02  David S. Miller  <davem@davemloft.net>
68372
68373         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
68374
68375 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
68376
68377         [BZ #3976]
68378         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
68379         (__sin): Save and restore rounding mode and use round-to-nearest
68380         for all computations.
68381         (__cos): Save and restore rounding mode and use round-to-nearest
68382         for all computations.
68383         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
68384         <fenv.h>.
68385         (tan): Save and restore rounding mode and use round-to-nearest for
68386         all computations.
68387         * math/libm-test.inc (cos_test_tonearest): New function.
68388         (cos_test_towardzero): Likewise.
68389         (cos_test_downward): Likewise.
68390         (cos_test_upward): Likewise.
68391         (sin_test_tonearest): Likewise.
68392         (sin_test_towardzero): Likewise.
68393         (sin_test_downward): Likewise.
68394         (sin_test_upward): Likewise.
68395         (tan_test_tonearest): Likewise.
68396         (tan_test_towardzero): Likewise.
68397         (tan_test_downward): Likewise.
68398         (tan_test_upward): Likewise.
68399         (main): Call the new functions.
68400         * sysdeps/i386/fpu/libm-test-ulps: Update.
68401         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68402
68403         [BZ #10135]
68404         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
68405         small n, then large n, before computing and testing k+n.
68406         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
68407         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
68408         Likewise.
68409         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
68410         Likewise.
68411         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
68412         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
68413         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
68414         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
68415         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
68416         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
68417         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
68418         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
68419         * math/libm-test.inc (scalbn_test): Add more tests.
68420         (scalbln_test): Likewise.
68421
68422         * manual/filesys.texi (mode_t): Describe constraints on size and
68423         signedness, not exact equivalence to a particular type.
68424         (ino_t): Likewise.
68425         (ino64_t): Likewise.
68426         (dev_t): Likewise.
68427         (nlink_t): Likewise.
68428         (blkcnt_t): Likewise.
68429         (blkcnt64_t): Likewise.
68430         * manual/llio.texi (off_t): Likewise.
68431
68432         [BZ #3976]
68433         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
68434         (__ieee754_exp): Save and restore rounding mode and use
68435         round-to-nearest for all computations.
68436         * math/libm-test.inc (exp_test_tonearest): New function.
68437         (exp_test_towardzero): Likewise.
68438         (exp_test_downward): Likewise.
68439         (exp_test_upward): Likewise.
68440         (main): Call the new functions.
68441         * sysdeps/i386/fpu/libm-test-ulps: Update.
68442         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68443
68444 2012-03-01  Chris Demetriou  <cgd@google.com>
68445
68446         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
68447         have predictable order.
68448
68449 2012-03-01  David S. Miller  <davem@davemloft.net>
68450
68451         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
68452
68453         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
68454         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
68455         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
68456         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
68457
68458         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
68459         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
68460         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
68461         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
68462         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
68463         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
68464         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
68465         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
68466         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
68467
68468         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68469
68470         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
68471         * sysdeps/sparc/fpu/libm-test-ulps: to here.
68472         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
68473
68474         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
68475         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
68476         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68477         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
68478         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
68479         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
68480         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
68481         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
68482         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68483         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
68484         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
68485         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68486         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
68487         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68488         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68489         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68490         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
68491         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
68492         * sysdeps/sparc/elf/configure: Regenerated.
68493
68494 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
68495
68496         * configure.in (AS, LD): Require binutils 2.20 or later.
68497         * configure: Regenerated.
68498         * manual/install.texi (Tools for Compilation): Give binutils 2.20
68499         as required minimum version.
68500         * INSTALL: Regenerated.
68501
68502         [BZ #2541]
68503         [BZ #4108]
68504         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
68505         before squaring exponent.
68506         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
68507         bottom long double and 27 bits of top long double before squaring
68508         exponent.
68509         * math/libm-test.inc (erfc_test): Add more tests.
68510         * sysdeps/i386/fpu/libm-test-ulps: Update.
68511         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68512         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68513
68514 2012-03-01  Kai Tietz  <ktietz@redhat.com>
68515
68516         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
68517         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
68518         containing bit-fields.
68519         * soft-fp/extended.h (_FP_UNION_E): Likewise.
68520         * soft-fp/single.h (_FP_UNION_S): Likewise.
68521         * soft-fp/double.h (_FP_UNION_D): Likewise.
68522
68523 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68524
68525         [BZ #13786]
68526         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
68527         not include ../strcmp.S.
68528         [USE_AS_STRNCASECMP_L]: Likewise.
68529         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
68530         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
68531         * sysdeps/i386/i686/multiarch/strncase_l-c.c
68532         (__strncasecmp_l_ia32): Define as alias to
68533         __strncasecmp_l_nonascii.
68534
68535         [BZ #5794]
68536         * math/libm-test.inc (expm1_test): Add test for bug 5794.
68537         * sysdeps/i386/fpu/libm-test-ulps: Update.
68538         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68539
68540         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
68541         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68542
68543 2012-02-29  Jeff Law  <law@redhat.com>
68544
68545         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
68546         out of bounds read.
68547
68548 2012-02-29  Marek Polacek  <polacek@redhat.com>
68549
68550         [BZ #13706]
68551         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
68552         * elf/Makefile: Add rules to run tst-unused-dep.out.
68553
68554 2012-02-28  David S. Miller  <davem@davemloft.net>
68555
68556         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
68557         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
68558         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
68559         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
68560         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
68561         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
68562
68563 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68564
68565         * math/libm-test.inc (llround_test): Move one test from
68566         lround_test.  Use TEST_f_L in moved test.
68567         (lround_test): Move misplaced test to llround_test.  Add testcase
68568         from bug 2561.
68569
68570 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
68571
68572         * sysdeps/x86_64/fpu/e_expf.S: New file.
68573         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
68574
68575 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
68576
68577         [BZ #13637]
68578         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
68579         of remain_len that may cause incomplete multi-byte character and
68580         false match.
68581         * posix/bug-regex33.c: New file.
68582         * posix/Makefile (tests): Add bug-regex33.
68583
68584 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
68585
68586         * manual/macros.texi: New file.
68587         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
68588         * manual/libc.texinfo: Include macros.texi.
68589         * manual/creatute.texi: Likewise.
68590         * manual/install.texi: Likewise.
68591         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
68592         @glibcadj{} in references to the GNU C Library.
68593         * manual/charset.texi: Likewise.
68594         * manual/conf.texi: Likewise.
68595         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
68596         when not using those macros.
68597         * manual/creature.texi: Likewise.
68598         * manual/crypt.texi: Likewise.
68599         * manual/errno.texi: Likewise.
68600         * manual/filesys.texi: Likewise.
68601         * manual/header.texi: Likewise.
68602         * manual/install.texi: Likewise.
68603         * manual/intro.texi: Likewise.
68604         * manual/io.texi: Likewise.
68605         * manual/job.texi: Likewise.
68606         * manual/lang.texi: Likewise.
68607         * manual/libc.texiinfo: Likewise.
68608         * manual/llio.texi: Likewise.
68609         * manual/locale.texi: Likewise.
68610         * manual/maint.texi: Likewise.
68611         * manual/math.texi: Likewise.
68612         * manual/memory.texi: Likewise.
68613         * manual/message.texi: Likewise.
68614         * manual/nss.texi: Likewise.
68615         * manual/pattern.texi: Likewise.
68616         * manual/process.texi: Likewise.
68617         * manual/resource.texi: Likewise.
68618         * manual/search.texi: Likewise.
68619         * manual/setjmp.texi: Likewise.
68620         * manual/signal.texi: Likewise.
68621         * manual/socket.texi: Likewise.
68622         * manual/startup.texi: Likewise.
68623         * manual/stdio.texi: Likewise.
68624         * manual/string.texi: Likewise.
68625         * manual/sysinfo.texi: Likewise.
68626         * manual/syslog.texi: Likewise.
68627         * manual/terminal.texi: Likewise.
68628         * manual/time.texi: Likewise.
68629         * manual/users.texi: Likewise.
68630         * INSTALL: Regenerated.
68631         * NOTES: Regenerated.
68632         * sysdeps/gnu/errlist.c: Regenerated.
68633
68634 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
68635
68636         * include/dirent.h: Include <dirstream.h> before
68637         <dirent/dirent.h>.
68638
68639 2012-02-28  David S. Miller  <davem@davemloft.net>
68640
68641         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
68642         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
68643         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
68644         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
68645
68646 2012-02-27  David S. Miller  <davem@davemloft.net>
68647
68648         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
68649         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
68650         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
68651         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
68652
68653         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
68654         frame pointer instead of stack pointer relative arg slot.
68655         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68656         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68657         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68658
68659 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
68660
68661         [BZ #3992]
68662         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
68663
68664 2012-02-27  David S. Miller  <davem@davemloft.net>
68665
68666         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
68667         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68668         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
68669         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
68670         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68671         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68672         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
68673         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
68674
68675 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68676
68677         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
68678         later.  Allow versions 5-9.
68679         * configure: Regenerated.
68680         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
68681         required minimum version and 4.6 as recommended version.  Do not
68682         mention bugs in GCC 2.7 and 2.8.
68683         * INSTALL: Regenerated.
68684
68685 2012-02-27  David S. Miller  <davem@davemloft.net>
68686
68687         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
68688         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
68689         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
68690         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
68691         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
68692         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
68693         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
68694         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
68695
68696         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
68697         manipulate bits before adding and subtracting TWO112[sx].
68698         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68699
68700 2012-02-27  Roland McGrath  <roland@hack.frob.com>
68701
68702         [BZ #13775]
68703         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
68704         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
68705         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
68706         being in POSIX, because they are in 1003.1-2008.
68707
68708         * rt/tst-aio.c: Include <fcntl.h>.
68709         * rt/tst-aio7.c: Likewise.
68710         * rt/tst-aio64.c: Likewise.
68711
68712         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
68713
68714 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68715
68716         * manual/install.texi (--with-headers): Describe headers as
68717         interface headers, not private headers.
68718         (Specific advice for GNU/Linux systems): Describe use of headers
68719         from "make headers_install", not private headers from older
68720         kernels.
68721         * INSTALL: Regenerated.
68722         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
68723         Change to 2.6.19.
68724         * sysdeps/unix/sysv/linux/configure: Regenerated.
68725
68726         * manual/llio.texi (fclean): Remove documentation.
68727
68728         * manual/Makefile (libc-texi-generated): New variable.  Include
68729         version.texi.
68730         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
68731         $(libc-texi-generated), not duplicated list of files.
68732         (version.texi, stamp-version): New rules.
68733         (realclean): Remove $(libc-texi-generated), not individual files
68734         from that list.  Do not remove dir-add.texinfo.
68735         * manual/libc.texinfo: Comment out uses of edition numbers and
68736         references to printed manual.  Remove last-updated dates.
68737         (EDITION): Comment out.
68738         (ISBN): Likewise.
68739         (VERSION, UPDATED): Remove.
68740         (version.texi): Include.
68741
68742 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
68743
68744         * sysdeps/posix/spawni.c: Include <signal.h>.
68745         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
68746         * sysdeps/pthread/aio_fsync.c: Likewise.
68747
68748 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
68749
68750         * conform/Makefile (tests): Run only when not cross-compiling and
68751         when fast-check is not defined.
68752
68753         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
68754         * conform/data/limits.h-data: Fixes for POSIX2008.
68755         * conform/run-conformtest.sh: Run all tests.
68756         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
68757         headers.
68758         * include/bits/dlfcn.h: Likewise.
68759         * include/langinfo.h: Likewise.
68760         * include/monetary.h: Likewise.
68761         * include/sys/poll.h: Likewise.
68762
68763         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
68764         for __USE_GNU.
68765         * posix/spawn.h: Define __need_sigset_t.
68766         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
68767         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
68768         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
68769         to get sigevent_t only.
68770         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
68771         only for __USE_GNU.
68772         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
68773         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
68774         process_vm_writev only for __USE_GNU.
68775         * termios/termios.h: Declare tcgetsid also for POSIX2008.
68776
68777         * conform/Makefile: For now ignore errors from run-conformtest.
68778         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
68779         POSIX to avoid namespace pollution.  Don't prepend headers.
68780         * conform/data/aio.h-data: Fixes for POSIX testing.
68781         * conform/data/fcntl.h-data: Likewise.
68782         * conform/data/glob.h-data: Likewise.
68783         * conform/data/grp.h-data: Likewise.
68784         * conform/data/pthread.h-data: Likewise.
68785         * conform/data/pwd.h-data: Likewise.
68786         * conform/data/signal.h-data: Likewise.
68787         * conform/data/spawn.h-data: Likewise.
68788         * conform/data/stdio.h-data: Likewise.
68789         * conform/data/stdlib.h-data: Likewise.
68790         * conform/data/stropts.h-data: Likewise.
68791         * conform/data/sys/mman.h-data: Likewise.
68792         * conform/data/sys/stat.h-data: Likewise.
68793         * conform/data/sys/types.h-data: Likewise.
68794         * conform/data/sys/wait.h-data: Likewise.
68795         * conform/data/time.h-data: Likewise.
68796         * conform/data/unistd.h-data: Likewise.
68797         * conform/data/utime.h-data: Likewise.
68798
68799         * io/sys/stat.h: fchmod was always in POSIX.
68800         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
68801         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
68802         * rt/aio.h: Define __need_timespec before including <time.h>.
68803         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
68804         struct.  Add forward declaration of pthread_attr_t and use it in
68805         sigevent.
68806         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
68807         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
68808         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
68809         always remove CLK_TCK definition.
68810
68811 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
68812
68813         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
68814
68815 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
68816
68817         * conform/run-conformtest.sh: New file.
68818         * conform/Makefile: Run run-conformtest for tests.
68819         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
68820         support.
68821
68822         * conform/data/uchar.h-data: New file.
68823         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
68824         * conform/data/arpa/inet.h-data: Likewise.
68825         * conform/data/assert.h-data: Likewise.
68826         * conform/data/complex.h-data: Likewise.
68827         * conform/data/cpio.h-data: Likewise.
68828         * conform/data/ctype.h-data: Likewise.
68829         * conform/data/dirent.h-data: Likewise.
68830         * conform/data/dlfcn.h-data: Likewise.
68831         * conform/data/errno.h-data: Likewise.
68832         * conform/data/fcntl.h-data: Likewise.
68833         * conform/data/float.h-data: Likewise.
68834         * conform/data/fmtmsg.h-data: Likewise.
68835         * conform/data/fnmatch.h-data: Likewise.
68836         * conform/data/ftw.h-data: Likewise.
68837         * conform/data/glob.h-data: Likewise.
68838         * conform/data/grp.h-data: Likewise.
68839         * conform/data/iconv.h-data: Likewise.
68840         * conform/data/inttypes.h-data: Likewise.
68841         * conform/data/langinfo.h-data: Likewise.
68842         * conform/data/libgen.h-data: Likewise.
68843         * conform/data/limits.h-data: Likewise.
68844         * conform/data/locale.h-data: Likewise.
68845         * conform/data/math.h-data: Likewise.
68846         * conform/data/monetary.h-data: Likewise.
68847         * conform/data/mqueue.h-data: Likewise.
68848         * conform/data/ndbm.h-data: Likewise.
68849         * conform/data/net/if.h-data: Likewise.
68850         * conform/data/netdb.h-data: Likewise.
68851         * conform/data/netinet/in.h-data: Likewise.
68852         * conform/data/nl_types.h-data: Likewise.
68853         * conform/data/poll.h-data: Likewise.
68854         * conform/data/pthread.h-data: Likewise.
68855         * conform/data/pwd.h-data: Likewise.
68856         * conform/data/regex.h-data: Likewise.
68857         * conform/data/sched.h-data: Likewise.
68858         * conform/data/search.h-data: Likewise.
68859         * conform/data/semaphore.h-data: Likewise.
68860         * conform/data/setjmp.h-data: Likewise.
68861         * conform/data/signal.h-data: Likewise.
68862         * conform/data/spawn.h-data: Likewise.
68863         * conform/data/stdarg.h-data: Likewise.
68864         * conform/data/stdio.h-data: Likewise.
68865         * conform/data/stdlib.h-data: Likewise.
68866         * conform/data/string.h-data: Likewise.
68867         * conform/data/strings.h-data: Likewise.
68868         * conform/data/stropts.h-data: Likewise.
68869         * conform/data/sys/ipc.h-data: Likewise.
68870         * conform/data/sys/mman.h-data: Likewise.
68871         * conform/data/sys/msg.h-data: Likewise.
68872         * conform/data/sys/resource.h-data: Likewise.
68873         * conform/data/sys/select.h-data: Likewise.
68874         * conform/data/sys/sem.h-data: Likewise.
68875         * conform/data/sys/shm.h-data: Likewise.
68876         * conform/data/sys/socket.h-data: Likewise.
68877         * conform/data/sys/stat.h-data: Likewise.
68878         * conform/data/sys/statvfs.h-data: Likewise.
68879         * conform/data/sys/time.h-data: Likewise.
68880         * conform/data/sys/timeb.h-data: Likewise.
68881         * conform/data/sys/times.h-data: Likewise.
68882         * conform/data/sys/types.h-data: Likewise.
68883         * conform/data/sys/uio.h-data: Likewise.
68884         * conform/data/sys/un.h-data: Likewise.
68885         * conform/data/sys/utsname.h-data: Likewise.
68886         * conform/data/sys/wait.h-data: Likewise.
68887         * conform/data/syslog.h-data: Likewise.
68888         * conform/data/tar.h-data: Likewise.
68889         * conform/data/termios.h-data: Likewise.
68890         * conform/data/utime.h-data: Likewise.
68891         * conform/data/utmpx.h-data: Likewise.
68892         * conform/data/varargs.h-data: Likewise.
68893         * conform/data/wchar.h-data: Likewise.
68894         * conform/data/wctype.h-data: Likewise.
68895         * conform/data/wordexp.h-data: Likewise.
68896
68897         * include/stropts.h: New file.
68898         * include/uchar.h: New file.
68899         * include/aio.h: Changes to allow conformtest.pl to use the headers.
68900         * include/assert.h: Likewise.
68901         * include/ctype.h: Likewise.
68902         * include/dirent.h: Likewise.
68903         * include/dlfcn.h: Likewise.
68904         * include/fcntl.h: Likewise.
68905         * include/fnmatch.h: Likewise.
68906         * include/glob.h: Likewise.
68907         * include/grp.h: Likewise.
68908         * include/libio.h: Likewise.
68909         * include/locale.h: Likewise.
68910         * include/math.h: Likewise.
68911         * include/net/if.h: Likewise.
68912         * include/netdb.h: Likewise.
68913         * include/netinet/in.h: Likewise.
68914         * include/pthread.h: Likewise.
68915         * include/pwd.h: Likewise.
68916         * include/regex.h: Likewise.
68917         * include/sched.h: Likewise.
68918         * include/search.h: Likewise.
68919         * include/setjmp.h: Likewise.
68920         * include/signal.h: Likewise.
68921         * include/stdio.h: Likewise.
68922         * include/stdlib.h: Likewise.
68923         * include/string.h: Likewise.
68924         * include/sys/cdefs.h: Likewise.
68925         * include/sys/mman.h: Likewise.
68926         * include/sys/msg.h: Likewise.
68927         * include/sys/resource.h: Likewise.
68928         * include/sys/select.h: Likewise.
68929         * include/sys/socket.h: Likewise.
68930         * include/sys/stat.h: Likewise.
68931         * include/sys/statvfs.h: Likewise.
68932         * include/sys/time.h: Likewise.
68933         * include/sys/times.h: Likewise.
68934         * include/sys/uio.h: Likewise.
68935         * include/sys/utsname.h: Likewise.
68936         * include/sys/wait.h: Likewise.
68937         * include/termios.h: Likewise.
68938         * include/time.h: Likewise.
68939         * include/ulimit.h: Likewise.
68940         * include/unistd.h: Likewise.
68941         * include/utime.h: Likewise.
68942         * include/wchar.h: Likewise.
68943         * include/wctype.h: Likewise.
68944         * include/wordexp.h: Likewise.
68945
68946         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
68947
68948         * time/time.h: TIME_UTC must be a macro.
68949         Make timespec_get available for ISO C11 only as well.
68950
68951 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
68952
68953         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
68954         Reported by Peng Haitao <penght@cn.fujitsu.com>.
68955
68956 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68957
68958         * configure.in: Use -o not -a in test for unsupported multi-arch.
68959
68960 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68961
68962         * manual/texinfo.tex: Update to version 2012-01-19.16.
68963
68964 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68965
68966         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
68967
68968 2012-02-24  Roland McGrath  <roland@hack.frob.com>
68969
68970         [BZ #13738]
68971         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
68972         * manual/fdl-1.3.texi: New file.
68973         * manual/fdl-1.1.texi: File removed.
68974
68975         [BZ #13738]
68976         * manual/libc.texinfo (FDL_VERSION): New @set.
68977         Use it for mention of FDL in cover text.
68978         (Documentation License): Use it in @include file name.
68979
68980 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68981             Roland McGrath  <roland@hack.frob.com>
68982
68983         [BZ #5461]
68984         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
68985         (not LONG_LONG_MAX and LONG_LONG_MIN.
68986         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
68987         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
68988         name.
68989         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
68990
68991 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68992
68993         [BZ #2547]
68994         [BZ #11365]
68995         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
68996         manipulate bits before adding and subtracting TWO23[sx].
68997         * math/libm-test.inc (nearbyint_test): Add more tests.
68998
68999 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69000
69001         [BZ #2548]
69002         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
69003         bits before adding and subtracting TWO23[sx].
69004         * math/libm-test.inc (rint_test): Add more tests.
69005         (rint_test_tonearest): Likewise.
69006         (rint_test_towardzero): Likewise.
69007         (rint_test_downward): Likewise.
69008         (rint_test_upward: Likewise.
69009
69010 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69011
69012         [BZ #10110]
69013         * include/stdc-predef.h: New file.  Extracted from features.h.
69014         * include/features.h: Include stdc-predef.h.
69015         * Makefile (headers): Add stdc-predef.h.
69016         * CONFORMANCE (Compiler limitations): Update.
69017
69018 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69019
69020         * manual/libc.texinfo (VERSION, UPDATED): Revert.
69021
69022 2012-02-21  David S. Miller  <davem@davemloft.net>
69023
69024         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
69025         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
69026
69027 2012-02-20  David S. Miller  <davem@davemloft.net>
69028
69029         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
69030         using a normal save/restore sequence, rather than allocating a
69031         dummy stack frame just to store a frame pointer and restore.
69032         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
69033
69034 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69035
69036         * manual/install.texi: Fix stray word in line-wrapped comment.
69037
69038 2012-02-20  David S. Miller  <davem@davemloft.net>
69039
69040         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
69041         both binutils and gcc support GOTDATA.
69042
69043         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
69044         "rd %pc" in the PIC register setup sequences.
69045
69046         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
69047         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
69048         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
69049         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
69050         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
69051         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
69052         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
69053         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
69054         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
69055         (SYSCALL_ERROR_HANDLER): Likewise.
69056         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
69057         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
69058         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
69059         (SYSCALL_ERROR_HANDLER): Likewise.
69060
69061         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
69062         (HAVE_GCC_GOTDATA): New.
69063         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
69064         relocation support in both binutils and gcc.
69065         * sysdeps/sparc/elf/configure: Regenerate.
69066
69067         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
69068         * sysdeps/sparc/sparc32/elf/configure: Delete.
69069         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
69070         * sysdeps/sparc/sparc64/elf/configure: Delete.
69071         * sysdeps/sparc/elf/configure.in: New file.
69072         * sysdeps/sparc/elf/configure: Generate.
69073
69074         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
69075         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
69076         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
69077         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
69078         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
69079
69080 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69081
69082         * manual/install.texi: Do not mention specific glibc version
69083         numbers.
69084         * manual/libc.texinfo (VERSION, UPDATED): Update.
69085         (@copying): Use @copyright{} and range of years.
69086
69087 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69088
69089         [BZ #13695]
69090         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
69091         [crti.S not in sysdirs] (generated): Do not append.
69092         [crti.S not in sysdirs] (omit-deps): Likewise.
69093         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
69094         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
69095         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
69096         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
69097         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
69098         Likewise.
69099         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
69100         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
69101         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
69102         * csu/defs.awk: Remove file.
69103         * sysdeps/generic/initfini.c: Likewise.
69104         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
69105         variable.
69106         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
69107         Likewise.
69108
69109 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69110
69111         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
69112         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
69113         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
69114         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
69115         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
69116         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
69117         <bits/epoll.h>.
69118         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
69119         (__EPOLL_PACKED): Define to empty if not defined by
69120         <bits/epoll.h>.
69121         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
69122         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69123         bits/epoll.h.
69124
69125 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69126
69127         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
69128         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
69129         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
69130         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
69131         <bits/timerfd.h>.
69132         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
69133         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69134         bits/timerfd.h.
69135
69136 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69137
69138         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
69139         in C locale.
69140         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
69141         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
69142         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
69143         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69144
69145 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
69146
69147         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69148         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
69149
69150 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
69151
69152         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
69153         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
69154         defined.
69155         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
69156         Likewise.
69157         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
69158         entry for 2.16.
69159
69160 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
69161
69162         * math/w_acos.c: Use non-signaling floating-point comparisons.
69163         * math/w_acosf.c: Likewise.
69164         * math/w_acosh.c: Likewise.
69165         * math/w_acoshf.c: Likewise.
69166         * math/w_acoshl.c: Likewise.
69167         * math/w_acosl.c: Likewise.
69168         * math/w_asin.c: Likewise.
69169         * math/w_asinf.c: Likewise.
69170         * math/w_asinl.c: Likewise.
69171         * math/w_atanh.c: Likewise.
69172         * math/w_atanhf.c: Likewise.
69173         * math/w_atanhl.c: Likewise.
69174         * math/w_exp2.c: Likewise.
69175         * math/w_exp2f.c: Likewise.
69176         * math/w_exp2l.c: Likewise.
69177         * math/w_j0.c: Likewise.
69178         * math/w_j0f.c: Likewise.
69179         * math/w_j0l.c: Likewise.
69180         * math/w_j1.c: Likewise.
69181         * math/w_j1f.c: Likewise.
69182         * math/w_j1l.c: Likewise.
69183         * math/w_jn.c: Likewise.
69184         * math/w_jnf.c: Likewise.
69185         * math/w_log.c: Likewise.
69186         * math/w_log10.c: Likewise.
69187         * math/w_log10f.c: Likewise.
69188         * math/w_log10l.c: Likewise.
69189         * math/w_log2.c: Likewise.
69190         * math/w_log2f.c: Likewise.
69191         * math/w_log2l.c: Likewise.
69192         * math/w_logf.c: Likewise.
69193         * math/w_logl.c: Likewise.
69194         * math/w_sqrt.c: Likewise.
69195         * math/w_sqrtf.c: Likewise.
69196         * math/w_sqrtl.c: Likewise.
69197         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
69198         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
69199         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
69200         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
69201         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
69202
69203 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69204
69205         [BZ #9739]
69206         * manual/string.texi (strnlen): Use correct parameter name in
69207         equivalent expression.
69208
69209 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69210
69211         [BZ #11174]
69212         * manual/users.texi (seteuid): Consistently use neweuid for
69213         argument name.
69214
69215 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69216
69217         [BZ #13704]
69218         * manual/nss.texi (Services in the NSS configuration): Correct
69219         list of services in example configuration file.
69220
69221 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
69222
69223         [BZ #11322]
69224         * manual/arith.texi: Remove statements about negative zero
69225         behaving identically to zero.
69226
69227 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
69228
69229         [BZ #5993]
69230         * manual/install.texi: Do not document upgrading from libc5.
69231
69232 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
69233
69234         [BZ #4596]
69235         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
69236
69237 2012-02-18  David S. Miller  <davem@davemloft.net>
69238
69239         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
69240         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
69241         %o7 across the call.
69242         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
69243         instead.
69244         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
69245         SETUP_PIC_REG_LEAF.
69246         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
69247         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
69248         * sysdeps/sparc/crtn.S: Likewise.
69249
69250 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
69251
69252         * aout/Makefile: Remove.
69253
69254 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
69255
69256         [BZ #13058]
69257         * manual/examples/argp-ex1.c (main): Format definition in GNU
69258         style.
69259         * manual/examples/argp-ex2.c (main): Likewise.
69260         * manual/examples/argp-ex3.c (main): Likewise.
69261         * manual/examples/argp-ex4.c (main): Likewise.
69262         * manual/examples/longopt.c (main): Use new-style prototype
69263         definition.
69264         * manual/examples/strncat.c (main): Specify return type and use
69265         (void) for arguments.
69266         * manual/examples/subopt.c (main): Use char **argv argument.
69267
69268 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69269
69270         [BZ #5077]
69271         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
69272         rounding modes.
69273
69274 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
69275
69276         [BZ #6907]
69277         * manual/string.texi (strchr): Change when strchrnul is
69278         recommended.
69279
69280 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
69281
69282         [BZ #174]
69283         * manual/locale.texi (setlocale): Document LOCPATH.
69284
69285 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69286
69287         [BZ #10210]
69288         * manual/process.texi (execle): Move @dots{} before last argument.
69289
69290 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
69291
69292         [BZ #12047]
69293         * manual/charset.texi (Generic Charset Conversion): Fix typo
69294         (LC_TYPE -> LC_CTYPE).
69295
69296 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
69297
69298         [BZ #5805]
69299         * manual/arith.texi (scalbn): Use @var{} on parameter names.
69300         (scalbnf): Likewise.
69301         (scalbnl): Likewise.
69302         (scalbln): Likewise.
69303         (scalblnf): Likewise.
69304         (scalblnl): Likewise.
69305         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
69306         (vwarnx): Likewise.
69307         (verr): Likewise.
69308         (verrx): Likewise.
69309         * manual/filesys.texi (telldir): Use braces around return type.
69310         * manual/llio.texi (mmap): Add space after comma.
69311         (mmap64): Likewise.
69312         * manual/math.texi (jn): Use @var{} on parameter names.
69313         (jnf): Likewise.
69314         (jnl): Likewise.
69315         (yn): Likewise.
69316         (ynf): Likewise.
69317         (ynl): Likewise.
69318         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
69319         line.
69320         * manual/resource.texi (ulimit): Use @dots{} instead of literal
69321         "...".
69322         (sched_get_priority_min): Remove semicolon on @deftypefun line.
69323         (sched_get_priority_max): Likewise.
69324         * manual/signal.texi (sigvec): Add space after comma.
69325         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
69326         names.
69327         (if_indextoname): Likewise.
69328         (if_freenameindex): Likewise.
69329         (sendto): Use ',' instead of '.' in prototype.
69330         * manual/startup.texi (syscall): Use @dots{} instead of literal
69331         "...".
69332         * manual/stdio.texi (__fpending): Separate initial words of
69333         paragraph from @deftypefun line.
69334         * manual/syslog.texi (syslog): Use @dots{} instead of literal
69335         "...".
69336         (vsyslog): Use @var{} on parameter names.
69337         * manual/terminal.texi (stty): Use @var{} on parameter names.
69338         * manual/users.texi (getutmp): Use @var{} on parameter names.
69339         (getutmpx): Likewise.
69340
69341 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69342
69343         [BZ #6884]
69344         * manual/stdio.texi (fopen): Fix typos in description of
69345         ",ccs=STRING".
69346
69347 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
69348
69349         [BZ #4026]
69350         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
69351         get clock_id definition.
69352
69353 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
69354
69355         [BZ #4822]
69356         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
69357         (madvise): Cast every argument to void on its own.
69358
69359 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69360
69361         [BZ #9902]
69362         * manual/startup.texi (Exit Status): Fix typo.
69363
69364 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69365
69366         [BZ #10140]
69367         * manual/examples/argp-ex1.c: Include <stdlib.h>.
69368         * manual/examples/argp-ex2.c: Likewise.
69369         * manual/examples/argp-ex3.c: Likewise.
69370
69371 2012-02-16  Richard Henderson  <rth@redhat.com>
69372
69373         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
69374         * sysdeps/s390/s390-32/initfini.c: Remove.
69375         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
69376         * sysdeps/s390/s390-64/initfini.c: Remove.
69377
69378 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
69379
69380         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
69381         compiler output for sysdeps/generic/initfini.c.
69382         * sysdeps/sh/elf/initfini.c: Remove file.
69383
69384 2012-02-16  David S. Miller  <davem@davemloft.net>
69385
69386         [BZ #11494]
69387         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
69388
69389         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
69390         * sysdeps/sparc/crti.S: New file.
69391         * sysdeps/sparc/crtn.S: New file.
69392         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
69393         * sysdeps/sparc/sparc64/Makefile: Likewise.
69394
69395 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
69396
69397         [BZ #3335]
69398         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
69399
69400 2012-02-15  Roland McGrath  <roland@hack.frob.com>
69401
69402         [BZ #4822]
69403         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
69404
69405         * mach/devstream.c (cookie_io_functions_t): Macro removed.
69406         (write, read, close): Likewise.
69407         Patch by Aurelien Jarno <aurelien@aurel32.net>.
69408
69409 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
69410
69411         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
69412         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
69413         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
69414         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
69415         <bits/signalfd.h>.
69416         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
69417         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69418         bits/signalfd.h.
69419
69420 2012-02-14  Marek Polacek  <polacek@redhat.com>
69421
69422         * sysdeps/x86_64/crti.S: New file.
69423         * sysdeps/x86_64/crtn.S: New file.
69424         * sysdeps/x86_64/elf/initfini.c: Remove file.
69425
69426 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69427
69428         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
69429         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
69430         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
69431         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
69432         <bits/inotify.h>.
69433         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
69434         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69435         bits/inotify.h.
69436
69437 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69438
69439         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
69440         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
69441         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
69442         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
69443         <bits/eventfd.h>.
69444         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
69445         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69446         bits/eventfd.h.
69447
69448 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
69449
69450         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
69451         __feraiseexcept instead of feraiseexcept.
69452
69453         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
69454         nanosleep invocations.
69455         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
69456         strings, and add error checking for a nanosleep invocations.
69457
69458 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
69459
69460         Replace FSF snail mail address with URLs, as per GNU coding standards.
69461         Most of the snail mail addresses were wrong anyway, and omitting
69462         them makes the source code easier to maintain.  Almost all of the
69463         changes are to license notices and to locale LC_IDENTIFICATION
69464         addresses, except for this one:
69465         * manual/libc.texinfo: In "Published by", give the FSF's URL,
69466         not its snail mail address.
69467
69468 2012-02-09  Richard Henderson  <rth@twiddle.net>
69469
69470         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
69471         of kernel-features.h.
69472
69473         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
69474
69475 2012-02-08  Marek Polacek  <polacek@redhat.com>
69476
69477         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
69478         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
69479         * sysdeps/gnu/_G_config.h: Likewise.
69480         * sysdeps/generic/_G_config.h: Likewise.
69481
69482 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
69483
69484         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
69485         tests.
69486         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69487
69488         * sysdeps/powerpc/powerpc32/crti.S: New file.
69489         * sysdeps/powerpc/powerpc32/crtn.S: New file.
69490         * sysdeps/powerpc/powerpc64/crti.S: New file.
69491         * sysdeps/powerpc/powerpc64/crtn.S: New file.
69492
69493         * Makeconfig (have-initfini): Don't set.
69494         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
69495         * configure.in (nopic_initfini): Don't substitute.
69496         * config.h.in (HAVE_INITFINI): Don't #undef.
69497         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
69498         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
69499
69500 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
69501
69502         Support crti.S and crtn.S provided directly by architectures.
69503         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
69504         [crti.S in sysdirs] (omit-deps): Likewise.
69505         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
69506         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
69507         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
69508         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
69509         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
69510         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
69511         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
69512         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
69513         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
69514         compiler output for sysdeps/generic/initfini.c.
69515         * sysdeps/i386/elf/Makefile: Remove file.
69516         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
69517
69518 2012-02-07  Marek Polacek  <polacek@redhat.com>
69519
69520         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
69521         * sysdeps/gnu/_G_config.h: Likewise.
69522         * sysdeps/mach/hurd/_G_config.h: Likewise.
69523
69524 2012-02-07  Marek Polacek  <polacek@redhat.com>
69525
69526         * math/Makefile (tests): Add tst-CMPLX2.
69527         * math/tst-CMPLX2.c: New file.
69528
69529 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
69530
69531         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69532
69533         * math/libm-test.inc (jn_test): Add missing L suffix.
69534
69535 2012-02-06  Marek Polacek  <polacek@redhat.com>
69536
69537         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
69538         * sysdeps/i386/fpu/e_powf.S: Likewise.
69539         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
69540         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
69541         * sysdeps/i386/fpu/e_acosh.S: Likewise.
69542         * sysdeps/i386/fpu/e_pow.S: Likewise.
69543         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
69544         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
69545         * sysdeps/i386/fpu/s_expm1.S: Likewise.
69546         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
69547         * sysdeps/i386/fpu/e_log2.S: Likewise.
69548         * sysdeps/i386/fpu/e_log2l.S: Likewise.
69549         * sysdeps/i386/fpu/e_scalb.S: Likewise.
69550         * sysdeps/i386/fpu/e_powl.S: Likewise.
69551         * sysdeps/i386/fpu/s_log1p.S: Likewise.
69552         * sysdeps/i386/fpu/e_log10f.S: Likewise.
69553         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
69554         * sysdeps/i386/fpu/e_logl.S: Likewise.
69555         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
69556         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
69557         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
69558         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
69559         * sysdeps/i386/fpu/e_log2f.S: Likewise.
69560         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
69561         * sysdeps/i386/fpu/e_log.S: Likewise.
69562         * sysdeps/i386/fpu/s_cexp.S: Likewise.
69563         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
69564         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
69565         * sysdeps/i386/fpu/e_logf.S: Likewise.
69566         * sysdeps/i386/fpu/e_log10l.S: Likewise.
69567         * sysdeps/i386/fpu/e_atanh.S: Likewise.
69568         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
69569         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
69570         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
69571         * sysdeps/i386/fpu/e_log10.S: Likewise.
69572         * sysdeps/i386/fpu/s_frexp.S: Likewise.
69573         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
69574         * sysdeps/i386/fpu/s_asinh.S: Likewise.
69575         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
69576         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
69577         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
69578         * sysdeps/i386/asm-syntax.h: Likewise.
69579         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
69580         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
69581         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
69582         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
69583         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
69584         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
69585         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
69586         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
69587         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
69588         * sysdeps/powerpc/sysdep.h: Likewise.
69589         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
69590         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
69591
69592 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69593
69594         [BZ #411]
69595         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
69596
69597 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69598
69599         * sysdeps/i386/sysdep.h: Include <features.h>.
69600         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
69601         version.
69602
69603 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
69604
69605         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
69606         Define.
69607         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
69608         LOAD_PIC_REG_STR.
69609
69610 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69611
69612         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
69613         (SETUP_PIC_REG): Use GET_PC_THUNK.
69614         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
69615         macro.
69616
69617 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69618
69619         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
69620         for non-PIC compilation.
69621         (SETUP_PIC_REG): Add .p2align directive.
69622         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
69623         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
69624         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
69625         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
69626         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
69627         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
69628         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
69629         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
69630         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
69631         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
69632         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
69633         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
69634         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
69635         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
69636         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
69637         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
69638         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
69639         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
69640         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
69641         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
69642         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
69643         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
69644         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
69645         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
69646         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
69647         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
69648         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
69649         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
69650         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
69651         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
69652         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
69653         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
69654         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
69655         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
69656         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
69657         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
69658         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
69659         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
69660         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
69661         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
69662         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
69663
69664 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69665
69666         * math/tst-CMPLX.c: Include <stdio.h>.
69667
69668 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
69669
69670         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
69671         float.
69672         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69673         * sysdeps/sparc/bits/mathdef.h: Likewise.
69674
69675 2012-01-31  Marek Polacek  <polacek@redhat.com>
69676
69677         * libio/libio.h: Don't define _PARAMS.
69678         * locale/programs/config.h: Don't define PARAMS.
69679         * stdlib/strtol_l.c: Likewise.
69680         (__strtol_l): Remove PARAMS from the prototype.
69681
69682 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
69683
69684         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
69685         names.  Just use the correct names.  Remove unnecessary wrapper
69686         functions.
69687         * malloc/arena.c: Likewise.
69688         * malloc/hooks.c: Likewise.
69689
69690         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
69691         ARENA_TEST says not to.  Simplify test for creation of a new arena.
69692         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
69693
69694 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
69695
69696         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
69697         into tail calls.
69698         (update_get_addr): New function.
69699         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
69700         GET_ADDR_MODULE parameter.
69701
69702 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69703
69704         * crypt/cert.c: Remove __STDC__ conditionals.
69705         * crypt/crypt-entry.c: Likewise.
69706         * crypt/crypt_util.c: Likewise.
69707         * libio/filedoalloc.c: Likewise.
69708         * libio/fileops.c: Likewise.
69709         * libio/genops.c: Likewise.
69710         * libio/iofclose.c: Likewise.
69711         * libio/iofdopen.c: Likewise.
69712         * libio/iofopen.c: Likewise.
69713         * libio/iofopen64.c: Likewise.
69714         * libio/iogetdelim.c: Likewise.
69715         * libio/iopopen.c: Likewise.
69716         * libio/obprintf.c: Likewise.
69717         * libio/oldfileops.c: Likewise.
69718         * libio/oldiofclose.c: Likewise.
69719         * libio/oldiofdopen.c: Likewise.
69720         * libio/oldiofopen.c: Likewise.
69721         * libio/oldiopopen.c: Likewise.
69722         * libio/wfiledoalloc.c: Likewise.
69723         * libio/wgenops.c: Likewise.
69724         * locale/programs/xmalloc.c: Likewise.
69725         * misc/syslog.c: Likewise.
69726         * stdio-common/xbug.c: Likewise.
69727         * string/memchr.c: Likewise.
69728         * string/memcmp.c: Likewise.
69729         * string/memrchr.c: Likewise.
69730         * string/rawmemchr.c: Likewise.
69731         * sysdeps/posix/getcwd.c: Likewise.
69732         * time/strftime_l.c: Likewise.
69733
69734 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69735
69736         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
69737         * config.make.in (config-cflags-sse2avx): Define.
69738         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
69739         Fix typo.
69740
69741 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
69742
69743         * scripts/config.guess: Update from upstream config git repository.
69744         * scripts/config.sub: Likewise.
69745
69746 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
69747
69748         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
69749         (EM_NUM): Update.
69750         (R_TILEPRO_*, R_TILEGX_*): New macros.
69751
69752         * scripts/firstversions.awk: Fix bug in version range handling.
69753
69754         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
69755
69756         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
69757
69758         * include/sys/epoll.h: New file.
69759         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
69760         libc_hidden_def.
69761
69762 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
69763
69764         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
69765         Avoid unnecessary __WORDSIZE == 64 test.
69766         (fmaxf): Use VEX format if possible.
69767         (fmax): Likewise.
69768         (fminf): Likewise.
69769         (fmin): Likewise.
69770
69771         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
69772         * math/math_private.h: Remove libc_fegetround* and
69773         libc_fesetround*.
69774         * sysdeps/i386/configure.in: Check for -msse2avx.
69775         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
69776         also if SSE2AVX is defined.
69777         Remove libc_fegetround* and libc_fesetround*.
69778         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
69779         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
69780         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
69781         of HAS_YMM_USABLE.
69782         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69783         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69784         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69785         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69786         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69787
69788         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
69789
69790 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69791
69792         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
69793         size is not set.
69794         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
69795
69796 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
69797
69798         [BZ #13618]
69799         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
69800         relocation.
69801         * Makeconfig (libm): Define.
69802         * elf/Makefile: Add rules to build and run tst-relsort1.
69803         * elf/tst-relsort1.c: New file.
69804         * elf/tst-relsort1mod1.c: New file.
69805         * elf/tst-relsort1mod2.c: New file.
69806
69807 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
69808
69809         * math/s_ldexp.c: Remove __STDC__ conditionals.
69810         * math/s_ldexpf.c: Likewise.
69811         * math/s_ldexpl.c: Likewise.
69812         * math/s_nextafter.c: Likewise.
69813         * math/s_nexttowardf.c: Likewise.
69814         * math/s_significand.c: Likewise.
69815         * math/s_significandf.c: Likewise.
69816         * math/s_significandl.c: Likewise.
69817         * math/w_jnl.c: Likewise.
69818         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
69819         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
69820         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
69821         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
69822         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
69823         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
69824         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
69825         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
69826         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
69827         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
69828         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
69829         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
69830         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
69831         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
69832         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
69833         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
69834         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
69835         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
69836         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
69837         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
69838         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
69839         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
69840         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
69841         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
69842         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
69843         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
69844         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
69845         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
69846         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
69847         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
69848         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
69849         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
69850         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
69851         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
69852         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
69853         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
69854         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
69855         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
69856         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
69857         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
69858         * sysdeps/ieee754/k_standard.c: Likewise.
69859         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
69860         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
69861         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
69862         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
69863         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
69864         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
69865         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
69866         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
69867         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
69868         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
69869         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
69870         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
69871         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
69872         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
69873         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
69874         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
69875         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
69876         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
69877         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
69878         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
69879         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
69880         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
69881         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
69882         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
69883         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
69884         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
69885         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
69886         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
69887         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
69888         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
69889         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
69890         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
69891         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
69892         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
69893         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
69894         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
69895         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
69896         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
69897         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
69898         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
69899         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
69900         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
69901         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
69902         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
69903         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
69904         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
69905         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
69906         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
69907         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
69908         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
69909         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
69910         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
69911         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
69912         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
69913         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
69914         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
69915         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
69916         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
69917         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
69918         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
69919         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
69920         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
69921         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
69922         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
69923         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
69924         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
69925         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
69926         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
69927         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
69928         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
69929         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
69930         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
69931         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
69932         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
69933         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
69934         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
69935         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
69936         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
69937         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
69938         * sysdeps/ieee754/s_matherr.c: Likewise.
69939         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
69940         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
69941         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
69942         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
69943
69944 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69945
69946         * crypt/md5.h: Remove __STDC__ conditionals.
69947         * libio/libioP.h: Likewise.
69948         * locale/programs/config.h: Likewise.
69949         * sysdeps/generic/sysdep.h: Likewise.
69950         * sysdeps/i386/asm-syntax.h: Likewise.
69951         * sysdeps/s390/asm-syntax.h: Likewise.
69952         * sysdeps/unix/sysdep.h: Likewise.
69953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
69954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
69955
69956 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69957
69958         * libio/libio.h: Remove __STDC__ conditionals.
69959         * malloc/obstack.h: Likewise.
69960         * math/complex.h: Likewise.
69961         * math/math.h: Likewise.
69962         * sysdeps/generic/_G_config.h: Likewise.
69963         * sysdeps/gnu/_G_config.h: Likewise.
69964         * sysdeps/mach/hurd/_G_config.h: Likewise.
69965         * sysdeps/powerpc/bits/mathdef.h: Likewise.
69966         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69967         * sysdeps/sparc/bits/mathdef.h: Likewise.
69968
69969 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
69970
69971         [BZ #13583]
69972         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
69973         Clean up HAS_* macros.
69974         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
69975         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
69976         possible.
69977         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
69978         HAS_AVX.
69979         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69980         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69981         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69982         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69983         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69984
69985 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
69986
69987         * elf/tst-unique3.cc (gets): Remove declaration.
69988         * elf/tst-unique3lib.cc (gets): Likewise.
69989         * elf/tst-unique3lib2.cc (gets): Likewise.
69990         * elf/tst-unique4.cc (gets): Likewise.
69991
69992 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
69993
69994         * include/stdio.h: Add C++ protection.  Add gets declarations and
69995         definitions.
69996         * debug/tst-chk1.c: Don't declare gets here.
69997         * stdio-common/tst-gets.c: Likewise.
69998
69999 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
70000
70001         * posix/glob: Remove directory.
70002
70003 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
70004
70005         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
70006
70007 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
70008
70009         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
70010         of the non-standard EPFNOSUPPORT.
70011
70012 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70013
70014         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
70015         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
70016         ANYWHERE set to 1 only on KERN_NO_SPACE error.
70017
70018 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
70019
70020         * wcsmbs/uchar.h: Test __STDC_VERSION__.
70021
70022 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
70023
70024         * nscd/aicache.c (addhstaiX): Do not cache negative results of
70025         transient errors.
70026         * nscd/grpcache.c (cache_addgr): Likewise.
70027         * nscd/hstcache.c (cache_addhst): Likewise.
70028         * nscd/initgrcache.c (addinitgroupsX): Likewise.
70029         * nscd/pwdcache.c (cache_addpw): Likewise.
70030         * nscd/servicescache.c (cache_addserv): Likewise.
70031
70032 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
70033
70034         * malloc/malloc.c: Various cleanups.
70035         * malloc/hooks.c: Likewise.
70036
70037         * stdlib/Makefile (tests): Add bug-fmtmsg1.
70038         * stdlib/bug-fmtmsg1.c: New file.
70039
70040         * stdlib/fmtmsg.c (init): Add missing unlock.
70041         Patch by Peng Haitao <penght@cn.fujitsu.com>.
70042
70043 2012-01-12  Marek Polacek  <polacek@redhat.com>
70044
70045         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
70046         and _GNU_SOURCE.
70047
70048 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
70049
70050         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
70051         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
70052         macro to ensure uniqueness of label name.
70053         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70054         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70055
70056 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
70057
70058         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
70059
70060         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
70061         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
70062         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
70063         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
70064
70065 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
70066
70067         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
70068
70069         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
70070         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
70071         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
70072
70073         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
70074
70075         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
70076         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
70077         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
70078         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
70079
70080         * math/bits/math-finite.h: Add ldexp support.
70081
70082 2012-01-10  Marek Polacek  <polacek@redhat.com>
70083
70084         * locale/programs/localedef.h (show_archive_content): Add noreturn
70085         attribute.
70086
70087 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
70088
70089         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
70090
70091 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70092
70093         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
70094
70095         * io/Makefile (headers): Add bits/poll2.h.
70096
70097 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
70098
70099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
70100         typo #include statement.
70101
70102 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70103
70104         * include/sys/cdefs.h: Define __attribute_alloc_size.
70105         * catgets/gencat.c: Add alloc_size attribute and apply consistently
70106         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
70107         * elf/pldd.c: Likewise.
70108         * iconv/iconv_charmap.c: Likewise.
70109         * iconv/iconvconfig.c: Likewise.
70110         * iconv/strtab.c: Likewise.
70111         * locale/programs/locale.c: Likewise.
70112         * locale/programs/localedef.h: Likewise.
70113         * locale/programs/simple-hash.c: Likewise.
70114         * nscd/nscd.h: Likewise.
70115         * nss/makedb.c: Likewise.
70116         * sysdeps/generic/ldconfig.h: Likewise.
70117         * locale/programs/localedef.c: Remove xmalloc prototype.
70118         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
70119
70120 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
70121
70122         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
70123         appropriate.
70124
70125 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70126
70127         * math/Makefile (tests): Add tst-CMPLX.
70128         * math/tst-CMPLX.c: New file.
70129
70130         * math/complex.h (CMPLXL): Fix typo.
70131
70132         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
70133         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
70134         GLIBC_2.16.
70135         * debug/tst-chk1.c: Add poll and ppoll tests.
70136         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
70137         * include/sys/poll.h: Add hidden proto for ppoll.
70138         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
70139         * sysdeps/mach/hurd/ppoll.c: Likewise.
70140         * io/ppoll.c: Likewise.
70141         * debug/poll_chk.c: New file.
70142         * debug/ppoll_chk.c: New file.
70143         * include/bits/poll2.h: New file.
70144         * io/bits/poll2.h: New file.
70145
70146         [BZ #1350]
70147         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
70148
70149         * configure.in: static is always set to yes.  Remove.
70150         * config.make.in: Don't set build-static.
70151         * Makeconfig: Remove use of build-static.
70152         * dlfcn/Makefile: Likewise.
70153         * elf/Makefile: Likewise.
70154         * math/Makefile: Likewise.
70155         * misc/Makefile: Likewise.
70156         * nptl/Makefile: Likewise.
70157         * sysdeps/mach/hurd/Makefile: Likewise.
70158
70159         * configure.in: PWD_P is not used anymore.
70160         * config.make.in: Remove PWD_P entry.
70161
70162         * configure.in: Remove last remnants of RANLIB.
70163         No need to check for signed size_t anymore.
70164         Don't set libc_commonpagesize and libc_relro_required here for Alpha
70165         and IA-64.
70166         Remove __builtin_expect test because we require at least gcc 3.4.
70167         * aclocal.m4: Likewise.
70168
70169         * wcsmbs/mbrtoc16.c: Implement using towc function.
70170         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
70171         * wcsmbs/wcsmbsload.c: Likewise.
70172         * iconv/gconv_simple.c: Likewise.
70173         * iconv/gconv_int.h: Likewise.
70174         * iconv/gconv_builtin.h: Likewise.
70175         * iconv/iconv_prog.c: Remove CHAR16 handling.
70176
70177         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
70178
70179         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
70180
70181         * configure.in: Remove --with-elf and --enable-bounded options.
70182         Dont set base_machine for ia64.  More non-ELF conditions removed.
70183         Remove testing and setting of leading underscore information.
70184         * config.make.in (build-bounded): Set to no.
70185         * config.h.in: Remove NO_UNDERSCORES entry.
70186         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
70187         them.
70188         * csu/start.c: Remove !NO_UNDERSCORE code.
70189         * locale/localeinfo.h: Likewise.
70190         * sysdeps/generic/machine-gmon.h: Likewise.
70191         * sysdeps/generic/sysdep.h: Likewise.
70192         * sysdeps/i386/sysdep.h: Likewise.
70193         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70194         * sysdeps/mach/sysdep.h: Likewise.
70195         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70196         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70197         * sysdeps/sh/sysdep.h: Likewise.
70198         * sysdeps/sparc/sparc32/alloca.S: Likewise.
70199         * sysdeps/unix/i386/sysdep.S: Likewise.
70200         * sysdeps/unix/sparc/start.c: Likewise.
70201         * sysdeps/unix/sparc/sysdep.S: Likewise.
70202         * sysdeps/unix/sparc/sysdep.h: Likewise.
70203         * sysdeps/unix/start.c: Likewise.
70204         * sysdeps/unix/x86_64/sysdep.S: Likewise.
70205         * sysdeps/x86_64/sysdep.h: Likewise.
70206
70207 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
70208
70209         [BZ #13553]
70210         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
70211         for non-gcc.
70212         * argp/argp-fmtstream.h: Use const instead __const.
70213         * argp/argp.h: Likewise.
70214         * assert/assert.h: Likewise.
70215         * bits/fenv.h: Likewise.
70216         * bits/sched.h: Likewise.
70217         * bits/sigset.h: Likewise.
70218         * bits/sigthread.h: Likewise.
70219         * catgets/nl_types.h: Likewise.
70220         * conform/data/pthread.h-data: Likewise.
70221         * crypt/crypt-private.h: Likewise.
70222         * crypt/crypt.h: Likewise.
70223         * crypt/crypt_util.c: Likewise.
70224         * ctype/ctype.h: Likewise.
70225         * debug/execinfo.h: Likewise.
70226         * debug/mbsnrtowcs_chk.c: Likewise.
70227         * debug/mbsrtowcs_chk.c: Likewise.
70228         * debug/wcsnrtombs_chk.c: Likewise.
70229         * debug/wcsrtombs_chk.c: Likewise.
70230         * debug/wcstombs_chk.c: Likewise.
70231         * dirent/dirent.h: Likewise.
70232         * dlfcn/dlfcn.h: Likewise.
70233         * elf/neededtest4.c: Likewise.
70234         * grp/grp.h: Likewise.
70235         * gshadow/gshadow.h: Likewise.
70236         * iconv/gconv.h: Likewise.
70237         * iconv/gconv_int.h: Likewise.
70238         * iconv/gconv_simple.c: Likewise.
70239         * iconv/iconv.h: Likewise.
70240         * iconv/loop.c: Likewise.
70241         * iconv/skeleton.c: Likewise.
70242         * include/aio.h: Likewise.
70243         * include/aliases.h: Likewise.
70244         * include/argz.h: Likewise.
70245         * include/arpa/inet.h: Likewise.
70246         * include/assert.h: Likewise.
70247         * include/dirent.h: Likewise.
70248         * include/dlfcn.h: Likewise.
70249         * include/execinfo.h: Likewise.
70250         * include/fcntl.h: Likewise.
70251         * include/fenv.h: Likewise.
70252         * include/glob.h: Likewise.
70253         * include/grp.h: Likewise.
70254         * include/libintl.h: Likewise.
70255         * include/mntent.h: Likewise.
70256         * include/netdb.h: Likewise.
70257         * include/pwd.h: Likewise.
70258         * include/rpc/netdb.h: Likewise.
70259         * include/sched.h: Likewise.
70260         * include/search.h: Likewise.
70261         * include/shadow.h: Likewise.
70262         * include/signal.h: Likewise.
70263         * include/stdio.h: Likewise.
70264         * include/stdlib.h: Likewise.
70265         * include/string.h: Likewise.
70266         * include/sys/socket.h: Likewise.
70267         * include/sys/stat.h: Likewise.
70268         * include/sys/statfs.h: Likewise.
70269         * include/sys/statvfs.h: Likewise.
70270         * include/sys/syslog.h: Likewise.
70271         * include/sys/time.h: Likewise.
70272         * include/sys/uio.h: Likewise.
70273         * include/time.h: Likewise.
70274         * include/unistd.h: Likewise.
70275         * include/utmp.h: Likewise.
70276         * include/wchar.h: Likewise.
70277         * include/wctype.h: Likewise.
70278         * inet/aliases.h: Likewise.
70279         * inet/arpa/inet.h: Likewise.
70280         * inet/netinet/ether.h: Likewise.
70281         * inet/netinet/in.h: Likewise.
70282         * intl/libintl.h: Likewise.
70283         * io/bits/fcntl2.h: Likewise.
70284         * io/fcntl.h: Likewise.
70285         * io/ftw.h: Likewise.
70286         * io/sys/poll.h: Likewise.
70287         * io/sys/stat.h: Likewise.
70288         * io/sys/statfs.h: Likewise.
70289         * io/sys/statvfs.h: Likewise.
70290         * io/utime.h: Likewise.
70291         * libio/bits/stdio.h: Likewise.
70292         * libio/bits/stdio2.h: Likewise.
70293         * libio/libio.h: Likewise.
70294         * libio/libioP.h: Likewise.
70295         * libio/stdio.h: Likewise.
70296         * locale/lc-ctype.c: Likewise.
70297         * locale/locale.h: Likewise.
70298         * login/utmp.h: Likewise.
70299         * malloc/arena.c: Likewise.
70300         * malloc/malloc.c: Likewise.
70301         * malloc/malloc.h: Likewise.
70302         * malloc/mcheck.c: Likewise.
70303         * malloc/mtrace.c: Likewise.
70304         * math/bits/mathcalls.h: Likewise.
70305         * math/fenv.h: Likewise.
70306         * math/math_private.h: Likewise.
70307         * misc/bits/error.h: Likewise.
70308         * misc/bits/syslog.h: Likewise.
70309         * misc/err.h: Likewise.
70310         * misc/error.h: Likewise.
70311         * misc/fstab.h: Likewise.
70312         * misc/mntent.h: Likewise.
70313         * misc/regexp.h: Likewise.
70314         * misc/search.h: Likewise.
70315         * misc/sgtty.h: Likewise.
70316         * misc/sys/mman.h: Likewise.
70317         * misc/sys/syslog.h: Likewise.
70318         * misc/sys/uio.h: Likewise.
70319         * misc/sys/xattr.h: Likewise.
70320         * misc/ttyent.h: Likewise.
70321         * nis/rpcsvc/ypclnt.h: Likewise.
70322         * nss/nss.h: Likewise.
70323         * posix/bits/unistd.h: Likewise.
70324         * posix/fnmatch.h: Likewise.
70325         * posix/glob.h: Likewise.
70326         * posix/sched.h: Likewise.
70327         * posix/spawn.h: Likewise.
70328         * posix/sys/wait.h: Likewise.
70329         * posix/unistd.h: Likewise.
70330         * posix/wordexp.h: Likewise.
70331         * pwd/pwd.h: Likewise.
70332         * resolv/netdb.h: Likewise.
70333         * resource/sys/resource.h: Likewise.
70334         * rt/aio.h: Likewise.
70335         * rt/bits/mqueue2.h: Likewise.
70336         * rt/mqueue.h: Likewise.
70337         * shadow/shadow.h: Likewise.
70338         * signal/signal.h: Likewise.
70339         * socket/send.c: Likewise.
70340         * socket/sendto.c: Likewise.
70341         * socket/sys/socket.h: Likewise.
70342         * stdio-common/printf.h: Likewise.
70343         * stdlib/bits/stdlib.h: Likewise.
70344         * stdlib/fmtmsg.h: Likewise.
70345         * stdlib/monetary.h: Likewise.
70346         * stdlib/stdlib.h: Likewise.
70347         * stdlib/ucontext.h: Likewise.
70348         * streams/stropts.h: Likewise.
70349         * string/argz.h: Likewise.
70350         * string/bits/string2.h: Likewise.
70351         * string/string.h: Likewise.
70352         * string/strings.h: Likewise.
70353         * sunrpc/rpc/auth.h: Likewise.
70354         * sunrpc/rpc/auth_des.h: Likewise.
70355         * sunrpc/rpc/clnt.h: Likewise.
70356         * sunrpc/rpc/netdb.h: Likewise.
70357         * sunrpc/rpc/pmap_clnt.h: Likewise.
70358         * sunrpc/rpc/xdr.h: Likewise.
70359         * sysdeps/generic/inttypes.h: Likewise.
70360         * sysdeps/generic/net/if.h: Likewise.
70361         * sysdeps/generic/sys/swap.h: Likewise.
70362         * sysdeps/gnu/net/if.h: Likewise.
70363         * sysdeps/gnu/utmpx.h: Likewise.
70364         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
70365         * sysdeps/i386/i486/bits/string.h: Likewise.
70366         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
70367         * sysdeps/s390/bits/string.h: Likewise.
70368         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
70369         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
70370         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
70371         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
70372         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
70373         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
70374         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
70375         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
70376         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
70377         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
70378         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
70379         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
70380         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
70381         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
70382         * sysdeps/unix/sysv/linux/readv.c: Likewise.
70383         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
70384         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
70385         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
70386         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
70387         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
70388         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70389         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
70390         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
70391         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
70392         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
70393         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
70394         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
70395         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70396         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
70397         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
70398         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
70399         * sysvipc/sys/ipc.h: Likewise.
70400         * sysvipc/sys/msg.h: Likewise.
70401         * sysvipc/sys/sem.h: Likewise.
70402         * sysvipc/sys/shm.h: Likewise.
70403         * termios/termios.h: Likewise.
70404         * time/sys/time.h: Likewise.
70405         * time/time.h: Likewise.
70406         * wcsmbs/bits/wchar2.h: Likewise.
70407         * wcsmbs/uchar.h: Likewise.
70408         * wcsmbs/wchar.h: Likewise.
70409         * wctype/wctype.h: Likewise.
70410
70411         [BZ #13551]
70412         * Makeconfig: Remove all but ELF support including AIX support.
70413         * Makerules: Likewise.
70414         * config.h.in: Likewise.
70415         * config.make.in: Likewise.
70416         * configure: Likewise.
70417         * configure.in: Likewise.
70418         * csu/Makefile: Likewise.
70419         * csu/version.c: Likewise.
70420         * debug/Makefile: Likewise.
70421         * dlfcn/Makefile: Likewise.
70422         * elf/Makefile: Likewise.
70423         * extra-lib.mk: Likewise.
70424         * iconv/Makefile: Likewise.
70425         * include/libc-symbols.h: Likewise.
70426         * include/shlib-compat.h: Likewise.
70427         * resolv/Makefile: Likewise.
70428         * resolv/res_libc.c: Likewise.
70429         * rt/Makefile: Likewise.
70430         * sysdeps/i386/asm-syntax.h: Likewise.
70431         * sysdeps/i386/sysdep.h: Likewise.
70432         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70433         * sysdeps/mach/sysdep.h: Likewise.
70434         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
70435         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
70436         * sysdeps/s390/asm-syntax.h: Likewise.
70437         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70438         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70439         * sysdeps/sh/sysdep.h: Likewise.
70440         * sysdeps/unix/sparc/sysdep.h: Likewise.
70441         * sysdeps/wordsize-32/divdi3.c: Likewise.
70442         * sysdeps/x86_64/sysdep.h: Likewise.
70443
70444         * argp/Versions: Remove _argp_unlock_xxx.
70445
70446         [BZ #13559]
70447         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
70448         * abilist/libBrokenLocale.abilist: Likewise.
70449         * abilist/libanl.abilist: Likewise.
70450         * abilist/libc.abilist: Likewise.
70451         * abilist/libcrypt.abilist: Likewise.
70452         * abilist/libdl.abilist: Likewise.
70453         * abilist/libm.abilist: Likewise.
70454         * abilist/libnsl.abilist: Likewise.
70455         * abilist/libpthread.abilist: Likewise.
70456         * abilist/libresolv.abilist: Likewise.
70457         * abilist/librt.abilist: Likewise.
70458         * abilist/libthread_db.abilist: Likewise.
70459         * abilist/libutil.abilist: Likewise.
70460         * abilist/libnss_db.abilist: New file.
70461
70462         * scripts/abilist.awk: Add support for indirect functions.
70463
70464         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
70465
70466         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
70467
70468         * shlib-versions: Remove entries for ports architectures.
70469
70470         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
70471         files in ports.
70472         * elf/stackguard-macros.h: Remove support for IA-64.
70473         * elf/tst-auditmod1.c: Likewise.
70474         * sysdeps/generic/ldsodefs.h: Likewise.
70475
70476         * sysdeps/unix/sysv/linux/configure.in: Ports should define
70477         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
70478         configure files.
70479
70480         [BZ #13552]
70481         * configure.in: Remove --enable-omitfp support.
70482         * FAQ.in: Adjust.
70483         * config.make.in: Likewise.
70484         * Makeconfig: Likewise.
70485         * manual/install.texi: Likewise.
70486
70487         In case anyone cares, the IA-64 architecture could move to ports.
70488         * sysdeps/ia64/*: Removed.
70489         * sysdeps/unix/sysv/linux/ia64/*: Removed.
70490         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
70491
70492         [BZ #13555]
70493         * configure.in: Remove entries for unsupported architectures.
70494
70495         [BZ #13533]
70496         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
70497         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
70498         routines.
70499         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
70500         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
70501         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
70502         fall back to using wcrtomb.
70503         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
70504         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
70505         renaming.
70506         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
70507         * wcsmbs/tst-c16c32-1.c: New file.
70508
70509         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
70510         local variable.
70511
70512         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
70513
70514         * elf/tst-unique3.cc: Add explicit declaration of gets.
70515         * elf/tst-unique3lib.cc: Likewise.
70516         * elf/tst-unique3lib2.cc: Likewise.
70517         * elf/tst-unique4.cc: Likewise.
70518
70519         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
70520
70521 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
70522
70523         [BZ #13566]
70524         * assert/assert.h (static_assert): Don't define for C++.
70525         * libio/stdio.h (gets): Do declare for C++ <= C++11.
70526         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
70527
70528 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
70529
70530         * iconv/loop.c (single loop): Fix assertion in storing of
70531         remaining bytes.
70532
70533         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
70534
70535 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
70536
70537         * posix/getconf.c: Update copyright year.
70538         * nss/getent.c: Likewise.
70539         * nss/makedb.c: Likewise.
70540         * iconv/iconvconfig.c: Likewise.
70541         * iconv/iconv_prog.c: Likewise.
70542         * elf/ldconfig.c: Likewise.
70543         * elf/pldd.c: Likewise.
70544         * elf/sotruss.ksh: Likewise.
70545         * catgets/gencat.c: Likewise.
70546         * csu/version.c: Likewise.
70547         * elf/ldd.bash.in: Likewise.
70548         * elf/sprof.c (print_version): Likewise.
70549         * locale/programs/locale.c: Likewise.
70550         * locale/programs/localedef.c: Likewise.
70551         * login/programs/pt_chown.c: Likewise.
70552         * nscd/nscd.c (print_version): Likewise.
70553         * debug/xtrace.sh: Likewise.
70554         * malloc/memusage.sh: Likewise.
70555         * malloc/mtrace.pl: Likewise.
70556         * debug/catchsegv.sh: Likewise.
70557
70558 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
70559
70560         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
70561         pure attribute.
70562
70563 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
70564
70565         [BZ #13533]
70566         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
70567         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
70568         transformations.
70569         * iconv/gconv_int.h: Likewise.
70570         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
70571         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
70572         from libc for GLIBC_2.16.
70573         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
70574         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
70575         * wcsmbs/uchar.h: Really define mbstate_t.
70576         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
70577         * wcsmbs/c16rtomb.c: New file.
70578         * wcsmbs/mbrtoc16.c: New file.
70579         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
70580         for C/POSIX locale.
70581         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
70582         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
70583
70584         * wcsmbs/wchar.h: Add missing __restrict.
70585
70586 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70587
70588         [BZ #13532]
70589         * time/Makefile (routines): Add timespec_get.
70590         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
70591         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
70592         timespec for ISO C11.
70593         * time/timespec_get.c: New file.
70594         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
70595         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
70596
70597         [BZ #13531]
70598         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
70599         * stdlib/stdlib.h: Declare aligned_alloc.
70600         * Versions.def: Add GLIBC_2.16 for libc.
70601         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
70602
70603         [BZ 13527]
70604         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
70605         ISO C11.
70606
70607         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
70608         code.
70609
70610         [BZ #13528]
70611         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
70612
70613         [BZ #13529]
70614         * assert/assert.h (static_assert): Define.
70615
70616         * version.h: Update for 2.16 development version.
70617
70618         [BZ #13526]
70619         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
70620         _ISOC11_SOURCE.
70621
70622         * version.h (RELEASE): Bump for 2.15 release.
70623         * include/features.h (__GLIBC_MINOR__): Bump to 15.
70624
70625         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
70626         Patch by Marek Polacek <mpolacek@redhat.com>.
70627
70628         * bits/byteswap.h: Protect long long constants with __extension__.
70629         * sysdeps/i386/bits/byteswap.h: Likewise.
70630         * sysdeps/ia64/bits/byteswap.h: Likewise.
70631         * sysdeps/s390/bits/byteswap.h: Likewise.
70632         * sysdeps/x86_64/bits/byteswap.h: Likewise.
70633
70634 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70635
70636         [BZ #13540]
70637         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
70638         destination buffer.
70639         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
70640
70641 2011-12-23  Marek Polacek  <polacek@redhat.com>
70642
70643         * elf/dl-addr.c (determine_info): Add inline keyword.
70644         * elf/tst-auditmod4b.c (check_avx): Likewise.
70645         * elf/tst-auditmod6b.c (check_avx): Likewise.
70646         * elf/tst-auditmod6c.c (check_avx): Likewise.
70647         * elf/tst-auditmod7b.c (check_avx): Likewise.
70648
70649 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70650
70651         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
70652         !__SSE_MATH__.
70653
70654 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70655
70656         [BZ #13540]
70657         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
70658         processing for last bytes.
70659
70660 2011-08-06  Bruno Haible  <bruno@clisp.org>
70661
70662         [BZ #13061]
70663         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
70664         U+0385, not to U+1FEE.
70665
70666         [BZ #13062]
70667         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
70668         entry for U+00A5 U+0301.
70669
70670 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70671
70672         [BZ #13166]
70673         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
70674         buffer for the output is too small.
70675
70676         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
70677         optimization.
70678
70679         [BZ #13185]
70680         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
70681         SSE flags if possible.
70682
70683 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70684
70685         [BZ #13540]
70686         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
70687         processing for last bytes.
70688
70689 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
70690
70691         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
70692         (syscall-list-default-options, syscall-list-default-condition)
70693         (syscall-list-includes): Define.
70694         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
70695         list of ABIs and options and #if conditions for each ABI.  Do not
70696         handle common syscalls between ABIs specially.
70697         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
70698         Remove.
70699         (syscall-list-variants, syscall-list-32bit-options)
70700         (syscall-list-32bit-condition, syscall-list-64bit-options)
70701         (syscall-list-64bit-condition): Define.
70702         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
70703         (syscall-list-variants, syscall-list-32bit-options)
70704         (syscall-list-32bit-condition, syscall-list-64bit-options)
70705         (syscall-list-64bit-condition): Define.
70706         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
70707         Remove.
70708         (syscall-list-variants, syscall-list-32bit-options)
70709         (syscall-list-32bit-condition, syscall-list-64bit-options)
70710         (syscall-list-64bit-condition): Define.
70711         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
70712         Remove.
70713         (syscall-list-variants, syscall-list-32bit-options)
70714         (syscall-list-32bit-condition, syscall-list-64bit-options)
70715         (syscall-list-64bit-condition): Define.
70716
70717 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70718
70719         * locale/iso-639.def: Add brx entry.
70720
70721         [BZ #13328]
70722         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
70723         Proposed by Mariusz_Cukr <marcukr@op.pl>.
70724
70725         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
70726         __feraiseexcept_renamed.
70727
70728 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70729
70730         [BZ #13538]
70731         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
70732         EPOLLET with unsigned values.
70733         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70734         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70735
70736         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
70737         to large cancellation.
70738         * math/s_cacoshf.c: Likewise.
70739         * math/s_cacoshl.c: Likewise.
70740
70741 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
70742
70743         [BZ #13305]
70744         [BZ #12786]
70745         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
70746         * math/s_cacoshf.c: Likewise.
70747         * math/s_cacoshl.c: Likewise.
70748
70749 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70750
70751         [BZ #13439]
70752         * iconv/gconv.h: Define __GCONV_SWAP.
70753         * iconvdata/unicode.c: The swap bit must be stored in __flags.
70754         * iconvdata/utf-16.c: Likewise.
70755         * iconvdata/utf-32.c: Likewise.
70756
70757 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
70758
70759         [BZ #13524]
70760         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
70761         numerator after shifting it by one limb.
70762
70763 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
70764
70765         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
70766         under [__USE_EXTERN_INLINES].
70767
70768 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70769
70770         [BZ #13446]
70771         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
70772
70773 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70774
70775         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
70776         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
70777         optimized code.
70778         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
70779         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
70780         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
70781         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
70782         for strncasecmp/strncasecmp_l compilation.
70783         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
70784         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
70785
70786 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
70787
70788         [BZ #13484]
70789         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
70790         of __asm__.
70791
70792 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70793
70794         [BZ #13506]
70795         * time/tzfile.c (__tzfile_read): Check values from file header.
70796
70797 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
70798
70799         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
70800         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
70801         * powerpc/powerpc32/dl-start.S: Likewise.
70802         * powerpc/powerpc32/elf/start.S: Likewise.
70803         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
70804         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
70805         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
70806         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
70807         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
70808         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
70809         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
70810         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
70811         * powerpc/powerpc32/fpu/s_round.S: Likewise.
70812         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
70813         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
70814         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
70815         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
70816         * powerpc/powerpc32/memset.S: Likewise.
70817         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
70818         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70819         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70820         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70821         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70822         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
70823         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
70824         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
70825         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
70826         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
70827         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
70828         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70829         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70830
70831 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70832
70833         * math/libm-test.inc: Added more nearbyint tests.
70834         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
70835         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
70836         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
70837         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
70838
70839 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
70840
70841         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
70842         FD_CLOEXEC.
70843
70844 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70845
70846         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
70847         Add wcscpy-ssse3 wcscpy-c.
70848         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
70849         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
70850         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
70851         * sysdeps/x86_64/wcschr.S: New file.
70852         * sysdeps/x86_64/wcsrchr.S: New file.
70853         * string/test-strcmp.c: Remove checking of wcscmp function for
70854         wrong alignments.
70855         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
70856         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
70857         wcsrchr-sse2 wcsrchr-c.
70858         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
70859         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
70860         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
70861         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
70862         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
70863         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
70864         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
70865         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
70866         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
70867         * wcsmbc/wcschr.c (WCSCHR): New macro.
70868
70869 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70870
70871         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
70872         * wcsmbs/test-wcsrchr.c: New file.
70873         * string/test-strrchr.c: Add wcsrchr support.
70874         (WIDE): New macro.
70875         * wcsmbs/test-wcscpy.c: New file.
70876         * string/test-strcpy.c: Add wcscpy support.
70877         (WIDE): New macro.
70878
70879 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
70880
70881         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
70882         the inner loop.
70883
70884 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
70885
70886         [BZ #13472]
70887         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
70888
70889 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
70890
70891         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
70892         Minor optimizations.
70893
70894         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
70895         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
70896         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
70897
70898 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
70899
70900         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
70901         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
70902         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
70903         for gcc to avoid warnings.
70904         * inet/Makefile (tests): Add tst-checks.
70905         * inet/tst-checks.c: New file.
70906
70907         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
70908         warning.
70909
70910         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
70911         __wmemcmp_sse2.
70912
70913         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
70914         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
70915
70916         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
70917
70918 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
70919
70920         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
70921         problem.
70922
70923         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
70924
70925 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
70926
70927         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
70928         conditional on GCC version.
70929         (__arch_compare_and_exchange_val_8_acq)
70930         (__arch_compare_and_exchange_val_16_acq)
70931         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
70932         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
70933         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
70934
70935 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
70936
70937         * sysdeps/sh/backtrace.c: New file.
70938
70939 2011-12-02  Andreas Schwab  <schwab@redhat.com>
70940
70941         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
70942         parenthesis.
70943
70944 2011-12-01  Andreas Schwab  <schwab@redhat.com>
70945
70946         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
70947         falling back to utime.
70948
70949 2011-11-30  Andreas Schwab  <schwab@redhat.com>
70950
70951         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
70952         expectations for float.
70953
70954 2011-11-29  Andreas Schwab  <schwab@redhat.com>
70955
70956         * locale/weight.h (findidx): Add parameter len.
70957         * locale/weightwc.h (findidx): Likewise.
70958         * posix/fnmatch_loop.c (FCT): Adjust caller.
70959         * posix/regcomp.c (build_equiv_class): Likewise.
70960         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
70961         * posix/regexec.c (check_node_accept_bytes): Likewise.
70962         * string/strcoll_l.c (STRCOLL): Likewise.
70963         * string/strxfrm_l.c (STRXFRM): Likewise.
70964
70965 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
70966
70967         * Makefile.in: Remove CVSOPT handling.
70968         * configure.in: Remove use of AC_REVISION.
70969         * iconvdata/Makefile (distribute): No need to filter out CVS.
70970         * scripts/list-sources.sh: Remove CVS, subversion and monotone
70971         handling.
70972
70973 2011-11-16  Andreas Schwab  <schwab@redhat.com>
70974
70975         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
70976         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
70977         [USE_AS_STRNCASECMP_L]: Likewise.
70978         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
70979         NO_TLS_DIRECT_SEG_REFS.
70980         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
70981         Fix argument offsets for non-PIC.
70982         [USE_AS_STRNCASECMP_L]: Likewise.
70983         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
70984         NO_TLS_DIRECT_SEG_REFS.
70985
70986 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70987
70988         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
70989         O_CLOEXEC.
70990         * locale/loadlocale.c (_nl_load_locale): Likewise.
70991
70992 2011-11-15  Andreas Schwab  <schwab@redhat.com>
70993
70994         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
70995         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
70996         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
70997         (SYSCALL_GETTIME): Set errno on error.
70998
70999         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
71000         count references to noai6ai_cached.
71001
71002 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
71003
71004         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
71005
71006         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
71007         FD_CLOEXEC for /proc/self/maps.
71008
71009         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
71010         FD_CLOEXEC for /proc/meminfo.
71011
71012         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
71013         gai.conf.
71014
71015         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
71016         FD_CLOEXEC for given file.
71017
71018         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
71019
71020         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
71021         FD_CLOEXEC for /etc/hosts.
71022         (_gethtent): Likewise.
71023
71024         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
71025
71026         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
71027         cancellation and set FD_CLOEXEC for /etc/netgroup.
71028
71029         * nss/nss_files/files-key.c (search): Don't allow cancellation when
71030         reading /etc/publickey.
71031
71032         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
71033         allow cancellation when reading /etc/group.
71034
71035         * nss/nss_files/files-alias.c (internal_setent): Don't allow
71036         cancellation.
71037         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
71038
71039         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
71040         when using data file.
71041
71042         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
71043
71044         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
71045         (write_nis_obj): Use "c" and "e" in fopen.
71046
71047         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
71048
71049         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
71050
71051         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
71052
71053         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
71054
71055         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
71056         locale.alias.
71057
71058         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
71059
71060         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
71061
71062         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
71063
71064         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
71065         file parsing and set FD_CLOEXEC.
71066
71067 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
71068
71069         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
71070
71071 2011-11-14  Andreas Schwab  <schwab@redhat.com>
71072
71073         * malloc/arena.c (arena_get2): Don't call reused_arena when
71074         _int_new_arena failed.
71075
71076 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
71077
71078         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
71079         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
71080         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
71081         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
71082         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
71083         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
71084         to compile strcasecmp and strncasecmp.
71085         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
71086         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
71087
71088         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
71089
71090 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
71091
71092         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
71093         locale-defines.sym to gen-as-const-headers.
71094         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
71095         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
71096         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
71097         to compile strcasecmp and strncasecmp.
71098         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
71099         strcasecmp_l and strncasecmp_l.
71100         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
71101         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
71102         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
71103         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
71104         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
71105         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
71106         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
71107         * sysdeps/i386/i686/multiarch/strncase.S: New file.
71108         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
71109         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
71110         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
71111
71112 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
71113
71114         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
71115         result of SYSDEP_GETTIME_CPU to retval.
71116         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
71117         parameter list to macro.  Remove trailing semicolon.  Adjust users.
71118
71119         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
71120         variable.
71121
71122         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
71123         mantissa words.
71124         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
71125
71126         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
71127         from unused variable.
71128
71129         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
71130         DWARF definitions.
71131         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
71132         for assembling.
71133
71134         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
71135         over namespaces.
71136
71137         * sunrpc/rpc_prot.c (rejected): Fix case value.
71138
71139         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
71140         unsigned long long int to avoid warnings in shift.
71141
71142         * posix/regex_internal.c (re_string_reconstruct): Actually use result
71143         of use of trans.
71144         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
71145         variable tmp.
71146
71147         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
71148         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
71149         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
71150
71151         * nis/nis_table.c (nis_list): Use variable of correct type for
71152         result of __follow_path call.
71153
71154 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71155
71156         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
71157         of math functions ceil, trunc, floor, round, and sqrt, when
71158         avaliable on the platform.
71159         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
71160         name clash.
71161         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
71162         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
71163         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
71164
71165 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
71166
71167         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
71168         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
71169
71170 2011-11-11  Roland McGrath  <roland@hack.frob.com>
71171
71172         * include/unistd.h: Fix __readlink return type.
71173         Reported by Chris Metcalf <cmetcalf@tilera.com>.
71174
71175 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
71176
71177         * stdlib/ucontext.h: Undo last change for makecontext.
71178
71179 2011-11-11  Andreas Schwab  <schwab@redhat.com>
71180
71181         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
71182
71183         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
71184         * setjmp/setjmp.h: Mark functions as non-leaf.
71185         * setjmp/bits/setjmp2.h: Likewise.
71186         * stdlib/ucontext.h: Likewise.
71187
71188 2011-11-10  Andreas Schwab  <schwab@redhat.com>
71189
71190         * malloc/arena.c (_int_new_arena): Don't increment narenas.
71191         (reused_arena): Don't check arena limit.
71192         (arena_get2): Atomically check arena limit.
71193
71194 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
71195
71196         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
71197         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
71198
71199         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
71200         instructions.
71201
71202 2011-11-07  Andreas Schwab  <schwab@redhat.com>
71203
71204         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
71205         handler when locking.
71206
71207         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
71208         Fix size of allocated buffer.
71209
71210 2011-11-04  Andreas Schwab  <schwab@redhat.com>
71211
71212         [BZ #10103]
71213         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
71214         declarations for long double functions.
71215         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
71216
71217         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
71218
71219 2011-11-03  Andreas Schwab  <schwab@redhat.com>
71220
71221         * nscd/nscd.c (main): Don't start AVC thread until credentials are
71222         installed.
71223
71224         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
71225         is disabled.
71226
71227 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
71228
71229         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
71230
71231 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
71232
71233         * include/alloca.h (stackinfo_alloca_round): Define.
71234         (extend_alloca): Use it.
71235         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
71236         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
71237         here.
71238
71239         * scripts/check-local-headers.sh: Ignore libaudit.h.
71240
71241         * nscd/Makefile (extra-objs): Make recursively expanded.
71242
71243 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
71244
71245         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
71246         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
71247
71248         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
71249         * posix/tst-rfc3484-2.c: Likewise.
71250         * posix/tst-rfc3484-3.c: Likewise.
71251
71252         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
71253         process_vm_writev.
71254         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
71255         process_vm_writev.
71256         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
71257         process_vm_writev from libc using GLIBC_2.15 version.
71258
71259         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
71260
71261 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
71262
71263         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
71264         stack usage.
71265
71266 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
71267
71268         [BZ #13367]
71269         * nss/getent.c (initgroups_keys): Show error message in case no group
71270         names are given.
71271
71272         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
71273         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
71274         __bump_nl_timestamp.
71275         * nscd/connections (nscd_init): When host database is served open
71276         netlink socket and request notification about configuration changes.
71277         (main_loop_poll): Track netlink file descriptor and bump timestamp
71278         in case data becomes available.
71279         (main_loop_epoll): Likewise.
71280         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
71281         (database_pers_head): Add extra_data fileds.
71282         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
71283         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
71284         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
71285         Adjust caller.
71286         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
71287         in6ai data, call __free_in6ai.
71288         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
71289         Add -DHAVE_NETLINK.
71290         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
71291         interface information.  Reuse previous data if netlink timestamp
71292         is not changed.
71293         (__bump_nl_timestamp): New function.
71294         (__free_in6ai): New function.
71295
71296 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
71297
71298         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
71299         close_not_cancel_no_status here.
71300         (__check_pf): Reorganize code a bit to not call close twice if OOM.
71301
71302 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71303
71304         [BZ #13276]
71305         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
71306         return value.
71307
71308         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
71309         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
71310         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
71311
71312 2011-07-03  Andreas Jaeger  <aj@suse.de>
71313
71314         [BZ #10709]
71315         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
71316         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
71317         * math/libm-test.inc (sin_test): Add test case.
71318
71319 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71320
71321         [BZ #13337]
71322         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
71323         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71324
71325         * elf/chroot_canon.c (chroot_canon): Cleanups.
71326
71327         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
71328
71329         [BZ #13335]
71330         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
71331         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71332
71333         * string/test-strchr.c: Make usable for strchrnul testing.
71334         * string/test-strchrnul.c: New file.
71335         * string/Makefile (strop-tests): Add strchrnul.
71336
71337         * po/it.po: Update from translation team.
71338         * po/es.po: Likewise.
71339
71340 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
71341
71342         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
71343         the three constants needed as parameters.  Drop the others.
71344         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
71345         __m128i_strloadu_tolower.
71346         Create and initialize variable zero and use it in all the places
71347         where _mm_setzero_si128 was used.
71348
71349         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
71350         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
71351         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
71352         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
71353         anymore.
71354         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
71355         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
71356         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
71357         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
71358         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
71359         __mpranred, __mptan.
71360         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
71361         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
71362         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
71363         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
71364         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
71365         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
71366         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
71367         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
71368         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
71369
71370 2011-10-28  Andreas Schwab  <schwab@redhat.com>
71371
71372         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
71373         redefine if SHARED.
71374         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
71375
71376         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
71377         wide char related routines to wcsmbs subdir.
71378
71379 2011-10-27  Andreas Schwab  <schwab@redhat.com>
71380
71381         [BZ #13344]
71382         * misc/sys/cdefs.h (__THROWNL): Define.
71383         * posix/unistd.h: Use __THREADNL instead of __THREAD
71384         for memory synchronization functions.
71385
71386 2011-10-26  Roland McGrath  <roland@hack.frob.com>
71387
71388         [BZ #13349]
71389         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
71390         doesn't exist.
71391         * manual/stdio.texi (Obstack Streams): Node removed.
71392
71393 2011-10-26  Andreas Schwab  <schwab@redhat.com>
71394
71395         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
71396         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71397         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71398
71399         * math/math_private.h (math_force_eval): Allow non-addressable
71400         arguments.
71401         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
71402
71403 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71404
71405         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
71406         file is not needed.
71407
71408         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
71409         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
71410         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
71411         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
71412         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
71413         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
71414         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
71415         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
71416         Add AVX variants.
71417         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
71418         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
71419         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
71420         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
71421         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
71422         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
71423         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
71424         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
71425         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
71426         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
71427         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
71428         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
71429         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
71430         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
71431         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
71432         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
71433         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
71434         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
71435         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
71436
71437         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
71438         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
71439
71440         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
71441         place.  Use VEX encoding when compiling for AVX.
71442
71443 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71444
71445         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
71446         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
71447
71448         * string/test-strchr.c (do_test): Don't generate NUL bytes.
71449
71450 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71451
71452         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
71453         useless if() expression.
71454         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71455         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
71456         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
71457         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71458         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
71459         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71460         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71461         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71462         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
71463         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71464         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71465         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71466         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
71467         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71468         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
71469         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71470         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71471         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71472         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
71473
71474         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
71475
71476 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71477
71478         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
71479         condition.
71480         * elf/dl-fini.c (_dl_sort_fini): Likewise.
71481
71482 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71483
71484         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
71485         .text section.  Avoid duplicate constants.
71486         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
71487         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71488         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71489         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71490         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71491         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71492         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71493         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71494         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
71495         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
71496         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
71497         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
71498         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
71499         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
71500         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
71501         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
71502         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
71503         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
71504         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
71505         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71506         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
71507         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
71508         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
71509         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
71510         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
71511         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
71512         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
71513         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
71514         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
71515         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
71516         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
71517         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
71518         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
71519         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
71520         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
71521         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
71522         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
71523         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
71524         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
71525         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
71526         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
71527         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
71528         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
71529         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
71530         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
71531
71532 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
71533
71534         * sysdeps/x86_64/dla.h: Move to ...
71535         * sysdeps/x86_64/fpu/dla.h: ...here.
71536         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
71537         situations.  Use __builtin_fma only for gcc 4.6 and up.
71538
71539         * config.make.in: Add have-mfma4 entry.
71540         * configure.in: Substitute libc_cv_cc_fma4.
71541         * math/Makefile (dbl-only-routines): Add sincostab.
71542         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
71543         Use __sincostab not sincos.
71544         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
71545         name is a macro.
71546         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71547         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71548         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71549         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
71550         using __copysign.
71551         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
71552         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
71553         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
71554         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
71555         and __inv.
71556         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
71557         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
71558         __copysign.
71559         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
71560         define aliases when function name is a macro.
71561         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
71562         sysdeps/ieee754/dbl-64/sincos.tbl.
71563         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
71564         fma4-enabled routines.
71565         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
71566         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
71567         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
71568         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
71569         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
71570         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
71571         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
71572         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
71573         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
71574         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
71575         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
71576         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
71577         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
71578         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
71579         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
71580         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
71581         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
71582         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
71583         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
71584         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
71585         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
71586         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
71587         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
71588         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
71589         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
71590         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
71591         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
71592         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
71593         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
71594         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
71595
71596         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
71597         rename.
71598         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71599         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71600         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71601         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71602         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71603         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71604         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71605         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71606
71607 2011-10-24  Andreas Schwab  <schwab@redhat.com>
71608
71609         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
71610
71611 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71612
71613         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
71614
71615         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
71616         prediction.
71617         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
71618
71619         * string/strnlen.c: Don't define STRNLEN, reverse logic.
71620         Remove unused variable magic_bits.
71621         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
71622
71623         * string/strnlen.c: Define and use STRNLEN macro.
71624         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
71625         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
71626         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
71627         * wcsmbs/wcslen.c: Define and use WCSLEN.
71628         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
71629         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
71630         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
71631         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
71632         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
71633         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
71634         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71635
71636 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71637
71638         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
71639         strnlen-sse2-no-bsf.
71640         Rename strlen-no-bsf to strlen-sse2-no-bsf.
71641         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
71642         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
71643         Add strnlen support.
71644         (USE_AS_STRNLEN): New macro.
71645         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
71646         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
71647         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
71648         * sysdeps/x86_64/wcslen.S: New file.
71649
71650 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
71651
71652         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
71653         XMM-moves are used for copying on small sizes.
71654
71655 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71656
71657         * wcsmbs/Makefile (strop-tests): Add wcschr.
71658         * wcsmbs/test-wcschr.c: New file.
71659         * string/test-strchr.c: Update.
71660         Add wcschr support.
71661         (WIDE): New macro.
71662
71663 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71664
71665         * wcsmbs/Makefile (strop-tests): Add wcslen.
71666         * wcsmbs/test-wcslen.c: New file.
71667         * string/test-strlen.c: Update.
71668         Add wcslen support.
71669         (WIDE): New macro.
71670
71671 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71672
71673         * po/it.po: Update from translation team.
71674
71675 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71676
71677         * sysdeps/x86_64/wcscmp.S: Update.
71678         Fix wrong comparison semantics.
71679         wcscmp shall use signed comparison not unsigned.
71680         Don't use substraction to avoid overflow bug.
71681         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
71682         * wcsmbc/wcscmp.c: Likewise.
71683         * string/test-strcmp.c: Likewise.
71684         Add new tests to check cases with negative values.
71685
71686 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71687
71688         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
71689         * sysdeps/x86_64/dla.h: ...here.  New file.
71690         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
71691         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71692         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71693         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71694         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71695         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71696         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71697         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71698         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71699
71700 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
71701
71702         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
71703         __ynl_finite aliases.
71704
71705 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71706
71707         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71708
71709         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
71710         define DLA_FMA.
71711         [DLA_FMA] (EMULV): Use DLA_FMA.
71712         [DLA_FMA] (MUL12): Use EMULV.
71713         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
71714         that are not needed.
71715         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71716         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71717         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71718         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71719         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71720         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71721         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71722
71723 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
71724
71725         * math/s_nan.c: Undef __nan.
71726         * math/s_nanf.c: Undef __nanf.
71727         * math/s_nanl.c: Undef __nanl.
71728         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
71729         "math_private.h".
71730
71731 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71732
71733         * math/s_catan.c: Add branch predictions.
71734         * math/s_catanf.c: Likewise.
71735         * math/s_catanh.c: Likewise.
71736         * math/s_catanhf.c: Likewise.
71737         * math/s_catanhl.c: Likewise.
71738         * math/s_catanl.c: Likewise.
71739         * math/s_cexp.c: Likewise.
71740         * math/s_cexpf.c: Likewise.
71741         * math/s_cexpl.c: Likewise.
71742         * math/s_clog.c: Likewise.
71743         * math/s_clog10.c: Likewise.
71744         * math/s_clog10f.c: Likewise.
71745         * math/s_clog10l.c: Likewise.
71746         * math/s_clogf.c: Likewise.
71747         * math/s_clogl.c: Likewise.
71748         * math/s_csqrt.c: Likewise.
71749         * math/s_csqrtf.c: Likewise.
71750         * math/s_csqrtl.c: Likewise.
71751         * math/s_ctanf.c: Likewise.
71752         * math/s_ctanh.c: Likewise.
71753         * math/s_ctanhf.c: Likewise.
71754         * math/s_ctanhl.c: Likewise.
71755         * math/s_ctanl.c: Likewise.
71756
71757         * math/math_private.h: Define __nan, __nanf, __nanl.
71758         * math/s_cacosh.c: Include <math_private.h>.
71759         * math/s_cacoshl.c: Likewise.
71760         * math/s_casinh.c: Likewise.
71761         * math/s_casinhf.c: Likewise.
71762         * math/s_casinhl.c: Likewise.
71763         * math/s_ccos.c: Rely entire on ccosh.
71764         * math/s_ccosf.c: Rely entire on ccoshf.
71765         * math/s_ccosl.c: Rely entirely on ccoshl.
71766         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
71767         Remove tests for FE_INVALID.
71768         * math/s_ccoshf.c: Likewise.
71769         * math/s_ccoshl.c: Likewise.
71770         * math/s_csin.c: Likewise.
71771         * math/s_csinf.c: Likewise.
71772         * math/s_csinh.c Likewise.
71773         * math/s_csinhf.c: Likewise.
71774         * math/s_csinhl.c: Likewise.
71775         * math/s_csinl.c: Likewise.
71776         * math/s_ctan.c: Likewise.
71777         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
71778         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
71779         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
71780
71781 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
71782
71783         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
71784         compilation problems.
71785
71786         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
71787         __builtin_expect.
71788
71789 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
71790
71791         * sysdeps/i386/configure.in: Test for -mfma4 option.
71792         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
71793         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
71794         COMMON_CPUID_INDEX_80000001.
71795         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
71796         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
71797         use it if FMA3 is not supported.
71798         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
71799
71800         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
71801         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
71802
71803 2011-10-20  Andreas Schwab  <schwab@redhat.com>
71804
71805         [BZ #12892]
71806         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
71807         it would create a cycle with a link time dependency.
71808
71809 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
71810
71811         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
71812         instruction.
71813         * string/Makefile (strop-tests): Add rawmemchr.
71814         * string/test-rawmemchr.c: New file.
71815
71816         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
71817         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
71818         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
71819         when compiling str{,n}casecmp and when AVX is available.  Hook up
71820         new optimized code in initializers.
71821
71822 2011-10-19  Andreas Schwab  <schwab@redhat.com>
71823
71824         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
71825         __feraiseexcept instead of feraiseexcept.
71826
71827 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
71828
71829         * math/math_private.h: Define defaults for libc_fetestexcept and
71830         libc_feupdateenv.
71831         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
71832         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
71833         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71834         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71835         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71836         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71837         libc_fetestexcept and libc_feupdateenv.
71838
71839         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
71840         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
71841         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
71842         * sysdeps/x86_64/fpu/math_private.h: Define special version of
71843         libc_feholdexcept_setround.
71844
71845         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
71846         Add s_nearbyint-c and s_nearbyintf-c.
71847         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
71848         nearbyintf inlines.
71849         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
71850         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
71851         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
71852         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
71853
71854         * math/math_private.h: Define defaults for libc_fegetround,
71855         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
71856         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
71857         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
71858         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
71859         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
71860         standard functions.
71861         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71862         Remove comments and hacks for old compiler versions.
71863         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71864         libc_fegetround, libc_fesetround, libc_feholdexcept, and
71865         libc_feholdexceptl.
71866
71867 2011-10-18  Andreas Schwab  <schwab@redhat.com>
71868
71869         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
71870         (__feraiseexcept_renamed): Add __NTH.
71871         (feraiseexcept): Add __NTH.  Rename local variables to fix
71872         namespace violations.
71873
71874 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
71875
71876         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
71877
71878         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
71879
71880         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
71881         recently added interfaces.
71882         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
71883
71884         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
71885         about macro parameter expansion.
71886
71887         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
71888         __NO_MATH_INLINES is defined.  Cleanups.
71889
71890         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
71891         and __floorf is target has SSE4.1.
71892         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
71893         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
71894         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
71895         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
71896
71897         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
71898         name.
71899         (floorf): Likewise.
71900
71901         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
71902
71903 2011-10-17  Andreas Schwab  <schwab@redhat.com>
71904
71905         * misc/sys/cdefs.h: Fix last change.
71906
71907         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
71908         database lookup.
71909
71910 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
71911
71912         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
71913
71914         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
71915         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71916         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
71917         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71918         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71919         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
71920         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71921         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71922         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
71923         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
71924         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
71925         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
71926         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
71927         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
71928         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
71929         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
71930         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
71931         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
71932         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
71933         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
71934         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
71935         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
71936
71937         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
71938         ceil, ceilf, floor, floorf.
71939
71940         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
71941         Perform IRELATIVE relocations last.
71942
71943         * elf/do-rel.h: Add another parameter nrelative, replacing the
71944         local variable with the same name.  Change name of the function
71945         to end in Rel or Rela (uppercase).
71946         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
71947         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
71948         elf_dynamic_do_##reloc function.
71949
71950 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71951
71952         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
71953         is sufficient, at least on modern CPUs.
71954
71955         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
71956
71957         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
71958         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
71959
71960         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
71961         __expl_finite.
71962         * math/bits/math-finite.h: Add entries for exp.
71963         * math/e_expl.c: Add __*_finite alias.
71964         * sysdeps/i386/fpu/e_exp.S: Likewise.
71965         * sysdeps/i386/fpu/e_expf.S: Likewise.
71966         * sysdeps/i386/fpu/e_expl.c: Likewise.
71967         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71968         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71969         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
71970         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
71971         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
71972         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
71973         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
71974
71975         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
71976         is sufficient, at least on modern CPUs.
71977
71978         * ctype/ctype-info.c (__ctype_init): Define.
71979         * include/ctype.h (__ctype_init): Declare.
71980         (__ctype_b_loc): The variable is always initialized.
71981         (__ctype_toupper_loc): Likewise.
71982         (__ctype_tolower_loc): Likewise.
71983         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
71984         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
71985
71986 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
71987
71988         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
71989
71990         * configure.in: Also look in $cxxmachine/include for C++ system
71991         headers.
71992
71993 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71994
71995         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
71996         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
71997         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
71998         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
71999         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
72000         (USE_AS_WMEMCMP): New macro.
72001         Fixing indents.
72002         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
72003         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
72004         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
72005         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
72006         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72007         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
72008         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
72009         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
72010         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
72011         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
72012         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
72013         (USE_AS_WMEMCMP): New macro.
72014         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
72015         * sysdeps/string/test-memcmp.c: Update.
72016         Fix simple_wmemcmp.
72017         Add new tests.
72018         * wcsmbs/wmemcmp.c: Update.
72019         (WMEMCMP): New macro.
72020         Fix overflow bug.
72021
72022 2011-10-12  Andreas Jaeger  <aj@suse.de>
72023
72024         [BZ #13268]
72025         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
72026
72027 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
72028
72029         * libio/iofwide.c (do_length): Avoid warning.
72030
72031         * ctype/ctype.h (__isctype_f): Add missing __THROW.
72032
72033 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
72034
72035         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
72036
72037         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
72038         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
72039         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
72040         * sysdeps/i386/i686/fpu/e_log.S: New file.
72041         * sysdeps/i386/i686/fpu/e_logf.S: New file.
72042         * sysdeps/i386/i686/fpu/e_logl.S: New file.
72043
72044         * ctype/ctype.h: Add support for inlined isXXX functions when
72045         compiling C++ code.
72046
72047 2011-10-14  Andreas Schwab  <schwab@redhat.com>
72048
72049         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72050
72051         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
72052
72053 2011-10-13  Roland McGrath  <roland@hack.frob.com>
72054
72055         [BZ #13291]
72056         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
72057
72058 2011-10-13  Andreas Schwab  <schwab@redhat.com>
72059
72060         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
72061         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
72062         feraiseexcept.
72063
72064         * sysdeps/x86_64/memrchr.S: Check for zero size.
72065
72066         * string/stratcliff.c: Add memrchr tests.
72067
72068 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72069
72070         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72071         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
72072         rawmemchr-sse2 rawmemchr-sse2-bsf.
72073         * sysdeps/i386/i686/multiarch/memchr.S: New file.
72074         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
72075         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
72076         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
72077         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
72078         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
72079         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
72080         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
72081         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
72082         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
72083         * string/memrchr.c (MEMRCHR): New macro.
72084
72085 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
72086
72087         Add integration with gcc's -ffinite-math-only and optimize wrapper
72088         functions in libm.
72089         * Versions.def: Define GLIBC_2.15 version for libm.
72090         * math/Makefile (headers): Add bits/math-finite.h.
72091         * math/bits/math-finite.h: New file.
72092         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
72093         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
72094         * math/e_acoshl.c: Add __*_finite alias.
72095         * math/e_acosl.c: Likewise.
72096         * math/e_asinl.c: Likewise.
72097         * math/e_atan2l.c: Likewise.
72098         * math/e_atanhl.c: Likewise.
72099         * math/e_coshl.c: Likewise.
72100         * math/e_exp10.c: Likewise.
72101         * math/e_exp10f.c: Likewise.
72102         * math/e_exp10l.c: Likewise.
72103         * math/e_exp2l.c: Likewise.
72104         * math/e_fmodl.c: Likewise.
72105         * math/e_gammal_r.c: Likewise.
72106         * math/e_hypotl.c: Likewise.
72107         * math/e_j0l.c: Likewise.
72108         * math/e_j1l.c: Likewise.
72109         * math/e_jnl.c: Likewise.
72110         * math/e_lgammal_r.c: Likewise.
72111         * math/e_log10l.c: Likewise.
72112         * math/e_log2l.c: Likewise.
72113         * math/e_logl.c: Likewise.
72114         * math/e_powl.c: Likewise.
72115         * math/e_sinhl.c: Likewise.
72116         * math/e_sqrtl.c: Likewise.
72117         * math/e_scalb.c: Completely rewritten and optimized.
72118         * math/e_scalbf.c: Likewise.
72119         * math/e_scalbl.c: Likewise.
72120         * math/w_acos.c: Likewise.
72121         * math/w_acosf.c: Likewise.
72122         * math/w_acosl.c: Likewise.
72123         * math/w_acosh.c: Likewise.
72124         * math/w_acoshf.c: Likewise.
72125         * math/w_acoshl.c: Likewise.
72126         * math/w_asin.c: Likewise.
72127         * math/w_asinf.c: Likewise.
72128         * math/w_asinl.c: Likewise.
72129         * math/w_atan2.c: Likewise.
72130         * math/w_atan2f.c: Likewise.
72131         * math/w_atan2l.c: Likewise.
72132         * math/w_atanh.c: Likewise.
72133         * math/w_atanhf.c: Likewise.
72134         * math/w_atanhl.c: Likewise.
72135         * math/w_exp10.c: Likewise.
72136         * math/w_exp10f.c: Likewise.
72137         * math/w_exp10l.c: Likewise.
72138         * math/w_fmod.c: Likewise.
72139         * math/w_fmodf.c: Likewise.
72140         * math/w_fmodl.c: Likewise.
72141         * math/w_j0.c: Likewise.
72142         * math/w_j0f.c: Likewise.
72143         * math/w_j0l.c: Likewise.
72144         * math/w_j1.c: Likewise.
72145         * math/w_j1f.c: Likewise.
72146         * math/w_j1l.c: Likewise.
72147         * math/w_jn.c: Likewise.
72148         * math/w_jnf.c: Likewise.
72149         * math/w_log.c: Likewise.
72150         * math/w_logf.c: Likewise.
72151         * math/w_logl.c: Likewise.
72152         * math/w_log10.c: Likewise.
72153         * math/w_log10f.c: Likewise.
72154         * math/w_log10l.c: Likewise.
72155         * math/w_log2.c: Likewise.
72156         * math/w_log2f.c: Likewise.
72157         * math/w_log2l.c: Likewise.
72158         * math/w_pow.c: Likewise.
72159         * math/w_powf.c: Likewise.
72160         * math/w_powl.c: Likewise.
72161         * math/w_remainder.c: Likewise.
72162         * math/w_remainderf.c: Likewise.
72163         * math/w_remainderl.c: Likewise.
72164         * math/w_scalb.c: Likewise.
72165         * math/w_scalbf.c: Likewise.
72166         * math/w_scalbl.c: Likewise.
72167         * math/w_sqrt.c: Likewise.
72168         * math/w_sqrtf.c: Likewise.
72169         * math/w_sqrtl.c: Likewise.
72170         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
72171         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
72172         used.
72173         * math/math_private.h: Declare __kernel_standard_f.
72174         * math/w_cosh.c: Remove cruft and optimize a bit.
72175         * math/w_coshf.c: Likewise.
72176         * math/w_coshl.c: Likewise.
72177         * math/w_exp2.c: Likewise.
72178         * math/w_exp2f.c: Likewise.
72179         * math/w_exp2l.c: Likewise.
72180         * math/w_hypot.c: Likewise.
72181         * math/w_hypotf.c: Likewise.
72182         * math/w_hypotl.c: Likewise.
72183         * math/w_lgamma.c: Likewise.
72184         * math/w_lgamma_r.c: Likewise.
72185         * math/w_lgammaf.c: Likewise.
72186         * math/w_lgammaf_r.c: Likewise.
72187         * math/w_lgammal.c: Likewise.
72188         * math/w_lgammal_r.c: Likewise.
72189         * math/w_sinh.c: Likewise.
72190         * math/w_sinhf.c: Likewise.
72191         * math/w_sinhl.c: Likewise.
72192         * math/w_tgamma.c: Likewise.
72193         * math/w_tgammaf.c: Likewise.
72194         * math/w_tgammal.c: Likewise.
72195         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
72196         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
72197         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
72198         Minor optimizations.  Pretty printing.  Remove cruft.
72199         * sysdeps/i386/fpu/e_acosf.S: Likewise.
72200         * sysdeps/i386/fpu/e_acosh.S: Likewise.
72201         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
72202         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
72203         * sysdeps/i386/fpu/e_acosl.c: Likewise.
72204         * sysdeps/i386/fpu/e_asin.S: Likewise.
72205         * sysdeps/i386/fpu/e_asinf.S: Likewise.
72206         * sysdeps/i386/fpu/e_atan2.S: Likewise.
72207         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
72208         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
72209         * sysdeps/i386/fpu/e_atanh.S: Likewise.
72210         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
72211         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
72212         * sysdeps/i386/fpu/e_exp10.S: Likewise.
72213         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
72214         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
72215         * sysdeps/i386/fpu/e_exp2.S: Likewise.
72216         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
72217         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
72218         * sysdeps/i386/fpu/e_fmod.S: Likewise.
72219         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
72220         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
72221         * sysdeps/i386/fpu/e_hypot.S: Likewise.
72222         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
72223         * sysdeps/i386/fpu/e_log.S: Likewise.
72224         * sysdeps/i386/fpu/e_log10.S: Likewise.
72225         * sysdeps/i386/fpu/e_log10f.S: Likewise.
72226         * sysdeps/i386/fpu/e_log10l.S: Likewise.
72227         * sysdeps/i386/fpu/e_log2.S: Likewise.
72228         * sysdeps/i386/fpu/e_log2f.S: Likewise.
72229         * sysdeps/i386/fpu/e_log2l.S: Likewise.
72230         * sysdeps/i386/fpu/e_logf.S: Likewise.
72231         * sysdeps/i386/fpu/e_logl.S: Likewise.
72232         * sysdeps/i386/fpu/e_pow.S: Likewise.
72233         * sysdeps/i386/fpu/e_powf.S: Likewise.
72234         * sysdeps/i386/fpu/e_powl.S: Likewise.
72235         * sysdeps/i386/fpu/e_remainder.S: Likewise.
72236         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
72237         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
72238         * sysdeps/i386/fpu/e_scalb.S: Likewise.
72239         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
72240         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
72241         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
72242         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
72243         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
72244         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
72245         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
72246         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
72247         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
72248         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
72249         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
72250         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
72251         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
72252         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
72253         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
72254         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
72255         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
72256         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
72257         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
72258         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
72259         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
72260         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
72261         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
72262         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
72263         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
72264         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
72265         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
72266         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
72267         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
72268         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
72269         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
72270         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
72271         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
72272         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
72273         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
72274         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
72275         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
72276         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72277         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
72278         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
72279         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
72280         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
72281         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
72282         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
72283         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
72284         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
72285         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
72286         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
72287         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
72288         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
72289         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
72290         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
72291         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
72292         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
72293         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
72294         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
72295         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
72296         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
72297         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72298         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
72299         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
72300         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
72301         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
72302         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
72303         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
72304         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
72305         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
72306         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
72307         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
72308         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
72309         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
72310         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
72311         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
72312         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
72313         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
72314         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
72315         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
72316         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
72317         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
72318         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
72319         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
72320         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
72321         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
72322         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
72323         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
72324         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
72325         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
72326         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
72327         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
72328         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
72329         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
72330         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72331         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
72332         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
72333         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
72334         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
72335         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
72336         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
72337         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
72338         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
72339         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
72340         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
72341         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
72342         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
72343         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
72344         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
72345         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
72346         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
72347         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
72348         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
72349         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
72350         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
72351         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
72352         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
72353         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
72354         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
72355         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
72356         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
72357         (__isnanf): Likewise.
72358         (__isinf_ns): Likewise.
72359         (__isinf_nsf): Likewise.
72360         (__finite): Likewise.
72361         (__finitef): Likewise.
72362         (__ieee754_sqrt): Define as macro.
72363         (__ieee754_sqrtf): Define as macro.
72364         (__ieee754_sqrtl): Define as macro.
72365         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
72366         inlined copy.
72367         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
72368         __FINITE_MATH_ONLY__ consistent.
72369         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
72370
72371 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
72372
72373         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
72374         of rawmemchr.
72375
72376         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
72377
72378 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
72379
72380         * po/ja.po: Update from translation team.
72381
72382 2011-10-08  Roland McGrath  <roland@hack.frob.com>
72383
72384         * locale/programs/locarchive.c (prepare_address_space): New function.
72385         (create_archive, enlarge_archive, open_archive): Use it.
72386
72387         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
72388         inside [SHARED], where it is used.
72389
72390         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
72391
72392         * nss/getent.c (netgroup_keys): Remove unused variable.
72393         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
72394
72395 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
72396
72397         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
72398         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
72399         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
72400         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
72401         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
72402         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
72403         * math/Makefile (libm-calls): Add s_isinf_ns.
72404         * math/divtc3.c: Use __isinf_nsl instead of isinf.
72405         * math/multc3.c: Likewise.
72406         * math/s_casin.c: Likewise.
72407         * math/s_casinf.c: Likewise.
72408         * math/s_casinl.c: Likewise.
72409         * math/s_ccos.c: Likewise.
72410         * math/s_ccosf.c: Likewise.
72411         * math/s_ccosl.c: Likewise.
72412         * math/s_ctan.c: Likewise.
72413         * math/s_ctanf.c: Likewise.
72414         * math/s_ctanh.c: Likewise.
72415         * math/s_ctanhf.c: Likewise.
72416         * math/s_ctanhl.c: Likewise.
72417         * math/s_ctanl.c: Likewise.
72418         * math/w_fmod.c: Likewise.
72419         * math/w_fmodf.c: Likewise.
72420         * math/w_fmodl.c: Likewise.
72421         * math/w_remainder.c: Likewise.
72422         * math/w_remainderf.c: Likewise.
72423         * math/w_remainderl.c: Likewise.
72424         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
72425         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
72426         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
72427         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
72428         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
72429         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
72430         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
72431         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
72432
72433         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
72434         of the number.
72435         * stdio-common/printf_fphex.c: Likewise.
72436         * stdio-common/printf_size.c: Likewise.
72437
72438         * math/e_exp10.c: Include math_private.h using <...> not "...".
72439         * math/e_exp10f.c: Likewise.
72440         * math/e_exp10l.c: Likewise.
72441         * math/e_exp2l.c: Likewise.
72442         * math/e_j0l.c: Likewise.
72443         * math/e_j1l.c: Likewise.
72444         * math/e_jnl.c: Likewise.
72445         * math/e_lgammal_r.c: Likewise.
72446         * math/e_rem_pio2l.c: Likewise.
72447         * math/e_scalb.c: Likewise.
72448         * math/e_scalbf.c: Likewise.
72449         * math/e_scalbl.c: Likewise.
72450         * math/k_cosl.c: Likewise.
72451         * math/k_sinl.c: Likewise.
72452         * math/k_tanl.c: Likewise.
72453         * math/s_cacoshf.c: Likewise.
72454         * math/s_catan.c: Likewise.
72455         * math/s_catanf.c: Likewise.
72456         * math/s_catanh.c: Likewise.
72457         * math/s_catanhf.c: Likewise.
72458         * math/s_catanhl.c: Likewise.
72459         * math/s_catanl.c: Likewise.
72460         * math/s_ccosh.c: Likewise.
72461         * math/s_ccoshf.c: Likewise.
72462         * math/s_ccoshl.c: Likewise.
72463         * math/s_cexp.c: Likewise.
72464         * math/s_cexpf.c: Likewise.
72465         * math/s_cexpl.c: Likewise.
72466         * math/s_clog.c: Likewise.
72467         * math/s_clog10.c: Likewise.
72468         * math/s_clog10f.c: Likewise.
72469         * math/s_clog10l.c: Likewise.
72470         * math/s_clogf.c: Likewise.
72471         * math/s_clogl.c: Likewise.
72472         * math/s_csin.c: Likewise.
72473         * math/s_csinf.c: Likewise.
72474         * math/s_csinh.c: Likewise.
72475         * math/s_csinhf.c: Likewise.
72476         * math/s_csinhl.c: Likewise.
72477         * math/s_csinl.c: Likewise.
72478         * math/s_csqrt.c: Likewise.
72479         * math/s_csqrtf.c: Likewise.
72480         * math/s_csqrtl.c: Likewise.
72481         * math/s_ctan.c: Likewise.
72482         * math/s_ctanf.c: Likewise.
72483         * math/s_ctanh.c: Likewise.
72484         * math/s_ctanhf.c: Likewise.
72485         * math/s_ctanhl.c: Likewise.
72486         * math/s_ctanl.c: Likewise.
72487         * math/s_ldexp.c: Likewise.
72488         * math/s_ldexpf.c: Likewise.
72489         * math/s_ldexpl.c: Likewise.
72490         * math/s_significand.c: Likewise.
72491         * math/s_significandf.c: Likewise.
72492         * math/s_significandl.c: Likewise.
72493         * math/w_acos.c: Likewise.
72494         * math/w_acosf.c: Likewise.
72495         * math/w_acosh.c: Likewise.
72496         * math/w_acoshf.c: Likewise.
72497         * math/w_acoshl.c: Likewise.
72498         * math/w_acosl.c: Likewise.
72499         * math/w_asin.c: Likewise.
72500         * math/w_asinf.c: Likewise.
72501         * math/w_asinl.c: Likewise.
72502         * math/w_atan2.c: Likewise.
72503         * math/w_atan2f.c: Likewise.
72504         * math/w_atan2l.c: Likewise.
72505         * math/w_atanh.c: Likewise.
72506         * math/w_atanhf.c: Likewise.
72507         * math/w_atanhl.c: Likewise.
72508         * math/w_cosh.c: Likewise.
72509         * math/w_coshf.c: Likewise.
72510         * math/w_coshl.c: Likewise.
72511         * math/w_dremf.c: Likewise.
72512         * math/w_exp10.c: Likewise.
72513         * math/w_exp10f.c: Likewise.
72514         * math/w_exp10l.c: Likewise.
72515         * math/w_exp2.c: Likewise.
72516         * math/w_exp2f.c: Likewise.
72517         * math/w_fmod.c: Likewise.
72518         * math/w_fmodf.c: Likewise.
72519         * math/w_fmodl.c: Likewise.
72520         * math/w_hypot.c: Likewise.
72521         * math/w_hypotf.c: Likewise.
72522         * math/w_hypotl.c: Likewise.
72523         * math/w_j0.c: Likewise.
72524         * math/w_j0f.c: Likewise.
72525         * math/w_j0l.c: Likewise.
72526         * math/w_j1.c: Likewise.
72527         * math/w_j1f.c: Likewise.
72528         * math/w_j1l.c: Likewise.
72529         * math/w_jn.c: Likewise.
72530         * math/w_jnf.c: Likewise.
72531         * math/w_jnl.c: Likewise.
72532         * math/w_lgamma.c: Likewise.
72533         * math/w_lgamma_r.c: Likewise.
72534         * math/w_lgammaf.c: Likewise.
72535         * math/w_lgammaf_r.c: Likewise.
72536         * math/w_lgammal.c: Likewise.
72537         * math/w_lgammal_r.c: Likewise.
72538         * math/w_log.c: Likewise.
72539         * math/w_log10.c: Likewise.
72540         * math/w_log10f.c: Likewise.
72541         * math/w_log10l.c: Likewise.
72542         * math/w_log2.c: Likewise.
72543         * math/w_log2f.c: Likewise.
72544         * math/w_log2l.c: Likewise.
72545         * math/w_logf.c: Likewise.
72546         * math/w_logl.c: Likewise.
72547         * math/w_pow.c: Likewise.
72548         * math/w_powf.c: Likewise.
72549         * math/w_powl.c: Likewise.
72550         * math/w_remainder.c: Likewise.
72551         * math/w_remainderf.c: Likewise.
72552         * math/w_remainderl.c: Likewise.
72553         * math/w_scalb.c: Likewise.
72554         * math/w_scalbf.c: Likewise.
72555         * math/w_scalbl.c: Likewise.
72556         * math/w_sinh.c: Likewise.
72557         * math/w_sinhf.c: Likewise.
72558         * math/w_sinhl.c: Likewise.
72559         * math/w_sqrt.c: Likewise.
72560         * math/w_sqrtf.c: Likewise.
72561         * math/w_sqrtl.c: Likewise.
72562         * math/w_tgamma.c: Likewise.
72563         * math/w_tgammaf.c: Likewise.
72564         * math/w_tgammal.c: Likewise.
72565
72566         * po/ja.po: Update from translation team.
72567
72568 2011-09-29  Andreas Jaeger  <aj@suse.de>
72569
72570         [BZ #13179]
72571         * sunrpc/netname.c (netname2host): Fix logic.
72572
72573         [BZ #6779]
72574         [BZ #6783]
72575         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
72576         correctly.
72577         * math/w_remainder.c (__remainder): Likewise.
72578         * math/w_remainderf.c (__remainderf): Likewise.
72579         * math/libm-test.inc (remainder_test): Add test cases.
72580
72581 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72582
72583         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
72584         sdiv_qrnnd.
72585
72586 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72587
72588         * string/test-memcmp.c: Avoid unncessary #defines.
72589         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
72590
72591 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72592
72593         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
72594         Use new sse2 version for core i3 - i7 as it's faster
72595         than sse42 version.
72596         (bit_Prefer_PMINUB_for_stringop): New.
72597         * sysdeps/x86_64/rawmemchr.S: Update.
72598         Replace with faster SSE2 version.
72599         * sysdeps/x86_64/memrchr.S: New file.
72600         * sysdeps/x86_64/memchr.S: Update.
72601         Replace with faster SSE2 version.
72602
72603 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
72604
72605         * elf/dl-load.c (lose): Add cast to avoid warning.
72606
72607 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72608
72609         * po/ca.po: Update from translation team.
72610
72611         * inet/getnetgrent_r.c: Hook up nscd.
72612         * nscd/Makefile (routines): Add nscd_netgroup.
72613         (nscd-modules): Add netgroupcache.
72614         (CFLAGS-netgroupcache.c): Define.
72615         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
72616         (cache_search): Add const to second parameter.
72617         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
72618         INNETGR.
72619         (dbs): Add netgrdb entry.
72620         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
72621         (verify_persistent_db): Handle netgrdb.
72622         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
72623         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
72624         GETFDNETGR.
72625         (netgroup_response_header): Define.
72626         (innetgroup_response_header): Define.
72627         (datahead): Add netgroup_response_header and innetgroup_response_header
72628         elements.
72629         * nscd/nscd.conf: Add entries for netgroup cache.
72630         * nscd/nscd.h (dbtype): Add netgrdb.
72631         (_PATH_NSCD_NETGROUP_DB): Define.
72632         (netgroup_iov_disabled): Declare.
72633         (xmalloc, xcalloc, xrealloc): Move declarations here.
72634         (cache_search): Adjust prototype.
72635         Add netgroup-related prototypes.
72636         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
72637         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
72638         (__nscd_innetgr): Declare.
72639         * nscd/selinux.c (perms): Use access_vector_t as element type and
72640         add netgroup-related initializers.
72641         * nscd/netgroupcache.c: New file.
72642         * nscd/nscd_netgroup.c: New file.
72643         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
72644         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
72645         For four parameters use innetgr.
72646         * nss/nss_files/files-init.c: Add definition and callback for netgr.
72647         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
72648         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
72649         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
72650
72651         * nscd/connections.c (register_traced_file): Don't register file
72652         for disabled databases.
72653
72654 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
72655
72656         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
72657
72658         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
72659         from tree and freeing node.
72660
72661 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
72662
72663         * nss/nsswitch.c (__nss_database_lookup): Handle
72664         nss_parse_service_list out of memory case.
72665
72666 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
72667
72668         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
72669         out of memory case.
72670
72671 2011-10-04  Andreas Schwab  <schwab@redhat.com>
72672
72673         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
72674         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
72675         pass it down.
72676         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
72677         elf_machine_rela, elf_machine_lazy_rel.
72678         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
72679         (ELF_DYNAMIC_DO_REL): Likewise.
72680         (ELF_DYNAMIC_DO_RELA): Likewise.
72681         (ELF_DYNAMIC_RELOCATE): Likewise.
72682         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
72683         to ELF_DYNAMIC_DO_REL.
72684         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
72685         (dl_main): In trace mode always set __RTLD_NOIFUNC.
72686         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
72687         elf_machine_rela.
72688         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
72689         skip_ifunc, don't call ifunc function if non-zero.
72690         (elf_machine_rela): Likewise.
72691         (elf_machine_lazy_rel): Likewise.
72692         (elf_machine_lazy_rela): Likewise.
72693         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
72694         (elf_machine_lazy_rel): Likewise.
72695         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
72696         Likewise.
72697         (elf_machine_lazy_rel): Likewise.
72698         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72699         Likewise.
72700         (elf_machine_lazy_rel): Likewise.
72701         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
72702         (elf_machine_lazy_rel): Likewise.
72703         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
72704         (elf_machine_lazy_rel): Likewise.
72705         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
72706         (elf_machine_lazy_rel): Likewise.
72707         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
72708         (elf_machine_lazy_rel): Likewise.
72709         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
72710         (elf_machine_lazy_rel): Likewise.
72711         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
72712         (elf_machine_lazy_rel): Likewise.
72713
72714 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
72715
72716         * nss/nss_files/files-init.c (_nss_files_init): Use static
72717         initialization for all the *_traced_file variables.
72718
72719 2011-09-28  Andreas Schwab  <schwab@redhat.com>
72720
72721         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72722
72723 2011-09-27  Roland McGrath  <roland@hack.frob.com>
72724
72725         [BZ #13226]
72726         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
72727
72728 2011-09-27  Andreas Schwab  <schwab@redhat.com>
72729
72730         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
72731         Reread the line before reparsing it.
72732
72733 2011-09-26  Andreas Schwab  <schwab@redhat.com>
72734
72735         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
72736
72737 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
72738             Maxim Kuvyrkov  <maxim@codesourcery.com>
72739             Joseph Myers  <joseph@codesourcery.com>
72740
72741         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
72742         if needed for __stack_chk_guard.
72743
72744 2011-09-19  Roland McGrath  <roland@hack.frob.com>
72745
72746         * sysdeps/posix/spawni.c (script_execute): Always define it.
72747         It will be optimized away if unused.
72748         (maybe_script_execute): New function.
72749         (__spawni): Call it.
72750
72751         * Makerules: Don't include tls.make.
72752         (config-tls): Always set to thread.
72753         * tls.make.c: File removed.
72754
72755 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
72756
72757         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
72758         * config.make.in (CPPFLAGS-config): New substituted variable.
72759
72760 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72761
72762         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
72763
72764         [BZ #13192]
72765         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
72766         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
72767
72768 2011-09-15  Roland McGrath  <roland@hack.frob.com>
72769
72770         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
72771         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
72772         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
72773         (CALL_FAIL): Likewise.
72774         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
72775         (CALL_FAIL): Macro removed.
72776         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
72777
72778 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72779
72780         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
72781         for __FINITE_MATH_ONLY__ == 1.
72782
72783 2011-09-15  Andreas Schwab  <schwab@redhat.com>
72784
72785         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
72786         __ieee754_sqrt instead of sqrt.
72787         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
72788         __ieee754_sqrtf instead of sqrtf.
72789         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
72790         __floorf instead of floorf.
72791         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
72792         __floorf, __truncf instead of floorf, truncf.
72793
72794 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
72795
72796         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
72797
72798         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
72799         __extern_always_inline.
72800         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
72801         32-bit.
72802
72803 2011-09-14  Andreas Schwab  <schwab@redhat.com>
72804
72805         * elf/rtld.c (dl_main): Also relocate in dependency order when
72806         doing symbol dependency testing.
72807
72808 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
72809
72810         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72811         Always define `refsym'.
72812
72813 2011-09-13  Andreas Schwab  <schwab@redhat.com>
72814
72815         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
72816         (__FD_ELT): Renamed from __FDELT.
72817         * misc/bits/select2.h (__FD_ELT): Likewise.
72818         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
72819         __FD_MASK instead of __FDELT, __FDMASK.
72820         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72821         Likewise.
72822         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72823         Likewise.
72824
72825         * elf/Makefile (gen-ldd): Fix pattern.
72826
72827         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
72828         (init_tls): Likewise.
72829
72830 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
72831
72832         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
72833
72834 2011-09-12  Andreas Schwab  <schwab@redhat.com>
72835
72836         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
72837         `struct cmsghdr *' instead of `void *'.
72838         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
72839         Likewise.
72840
72841 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
72842
72843         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
72844         if non-absolute.
72845         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
72846         ldd_rewrite_script.
72847
72848 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
72849
72850         * configure.in: Remove --with-tls option.
72851         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
72852         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
72853         out in case it is missing.
72854         * sysdeps/ia64/elf/configure.in: Likewise.
72855         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
72856         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
72857         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
72858         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
72859         * sysdeps/sh/elf/configure.in: Likewise.
72860         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
72861         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72862         * sysdeps/x86_64/elf/configure.in: Likewise.
72863         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
72864         * sysdeps/mach/hurd/tls.h: Likewise.
72865
72866         [BZ #13067]
72867         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
72868
72869         [BZ #13090]
72870         * configure.in: Fix use of AC_INIT.
72871
72872         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
72873
72874 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
72875
72876         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
72877         __set_errno.
72878         * malloc/hooks.c: Likewise.
72879
72880         [BZ #11929]
72881         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
72882         variables statically.
72883         (narenas): Initialize.
72884         (list_lock): Initialize.
72885         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
72886         initializtion of main_arena and list_lock.  Small cleanups.
72887         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
72888         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
72889         Add initializers to main_arena and mp_.
72890         (malloc_state): Remove pagesize member.  Change all users to use
72891         GLRO(dl_pagesize).
72892
72893         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
72894         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
72895         is always initialized.
72896
72897         * malloc/malloc.c: Removed unused configurations and dead code.
72898         * malloc/arena.c: Likewise.
72899         * malloc/hooks.c: Likewise.
72900         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
72901
72902         * include/tls.h: Removed.  USE___THREAD must always be defined.
72903         * bits/libc-tsd.h: Don't handle !USE___THREAD.
72904         * elf/dl-libc.c: Likewise.
72905         * elf/dl-tsd.c: Likewise.
72906         * include/errno.h: Likewise.
72907         * include/netdb.h: Likewise.
72908         * include/resolv.h: Likewise.
72909         * inet/herrno-loc.c: Likewise.
72910         * inet/herrno.c: Likewise.
72911         * malloc/arena.c: Likewise.
72912         * malloc/hooks.c: Likewise.
72913         * malloc/malloc.c: Likewise.
72914         * resolv/res-state.c: Likewise.
72915         * resolv/res_libc.c: Likewise.
72916         * sysdeps/i386/dl-machine.h: Likewise.
72917         * sysdeps/ia64/dl-machine.h: Likewise.
72918         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
72919         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
72920         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
72921         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
72922         * sysdeps/sh/dl-machine.h: Likewise.
72923         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
72924         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
72925         * sysdeps/unix/i386/sysdep.S: Likewise.
72926         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
72927         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
72928         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
72929         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
72930         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
72931         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
72932         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
72933         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
72934         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
72935         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
72936         * sysdeps/unix/x86_64/sysdep.S: Likewise.
72937         * sysdeps/x86_64/dl-machine.h: Likewise.
72938         * tls.make.c: Likewise.
72939
72940         * configure.in: Remove --with-__thread option.  Make tests for
72941         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
72942         tls_model attribute fail if no support is available.  Remove
72943         USE_IN_LIBIO.
72944         * Makeconfig: Adjust for dropped configure option.  All features are
72945         now mandatory.
72946         * Makerules: Likewise.
72947         * Versions.def: Likewise.
72948         * argp/argp-fmtstream.c: Likewise.
72949         * argp/argp-fmtstream.h: Likewise.
72950         * argp/argp-help.c: Likewise.
72951         * assert/assert.c: Likewise.
72952         * config.h.in: Likewise.
72953         * config.make.in: Likewise.
72954         * configure: Likewise.
72955         * configure.in: Likewise.
72956         * csu/Versions: Likewise.
72957         * csu/init.c: Likewise.
72958         * elf/tst-audit2.c: Likewise.
72959         * elf/tst-tls10.c: Likewise.
72960         * elf/tst-tls10.h: Likewise.
72961         * elf/tst-tls11.c: Likewise.
72962         * elf/tst-tls12.c: Likewise.
72963         * elf/tst-tls14.c: Likewise.
72964         * elf/tst-tlsmod11.c: Likewise.
72965         * elf/tst-tlsmod12.c: Likewise.
72966         * elf/tst-tlsmod13.c: Likewise.
72967         * elf/tst-tlsmod13a.c: Likewise.
72968         * elf/tst-tlsmod14a.c: Likewise.
72969         * elf/tst-tlsmod15b.c: Likewise.
72970         * elf/tst-tlsmod16a.c: Likewise.
72971         * elf/tst-tlsmod16b.c: Likewise.
72972         * elf/tst-tlsmod7.c: Likewise.
72973         * elf/tst-tlsmod8.c: Likewise.
72974         * elf/tst-tlsmod9.c: Likewise.
72975         * gmon/gmon.c: Likewise.
72976         * grp/fgetgrent_r.c: Likewise.
72977         * grp/putgrent.c: Likewise.
72978         * hurd/fopenport.c: Likewise.
72979         * include/libc-symbols.h: Likewise.
72980         * include/tls.h: Likewise.
72981         * intl/gettextP.h: Likewise.
72982         * intl/loadinfo.h: Likewise.
72983         * locale/global-locale.c: Likewise.
72984         * locale/localeinfo.h: Likewise.
72985         * mach/devstream.c: Likewise.
72986         * malloc/arena.c: Likewise.
72987         * malloc/set-freeres.c: Likewise.
72988         * misc/err.c: Likewise.
72989         * misc/getttyent.c: Likewise.
72990         * misc/mntent_r.c: Likewise.
72991         * posix/getopt.c: Likewise.
72992         * posix/wordexp.c: Likewise.
72993         * pwd/fgetpwent_r.c: Likewise.
72994         * resolv/Versions: Likewise.
72995         * resolv/res_hconf.c: Likewise.
72996         * shadow/fgetspent_r.c: Likewise.
72997         * shadow/putspent.c: Likewise.
72998         * stdio-common/printf_fphex.c: Likewise.
72999         * stdio-common/tmpfile.c: Likewise.
73000         * stdlib/abort.c: Likewise.
73001         * stdlib/fmtmsg.c: Likewise.
73002         * sunrpc/auth_unix.c: Likewise.
73003         * sunrpc/clnt_perr.c: Likewise.
73004         * sunrpc/clnt_tcp.c: Likewise.
73005         * sunrpc/clnt_udp.c: Likewise.
73006         * sunrpc/clnt_unix.c: Likewise.
73007         * sunrpc/openchild.c: Likewise.
73008         * sunrpc/svc_simple.c: Likewise.
73009         * sunrpc/svc_tcp.c: Likewise.
73010         * sunrpc/svc_udp.c: Likewise.
73011         * sunrpc/svc_unix.c: Likewise.
73012         * sunrpc/xdr.c: Likewise.
73013         * sunrpc/xdr_array.c: Likewise.
73014         * sunrpc/xdr_rec.c: Likewise.
73015         * sunrpc/xdr_ref.c: Likewise.
73016         * sunrpc/xdr_stdio.c: Likewise.
73017
73018 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73019
73020         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
73021
73022 2011-07-03  Andreas Jaeger  <aj@suse.de>
73023
73024         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
73025         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
73026         regenerate with gen-libm-tests.pl.
73027
73028 2010-05-12  Petr Baudis  <pasky@suse.cz>
73029
73030         [BZ #11589]
73031         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
73032         around j0() zero points by switching to j1().
73033         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
73034         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
73035         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
73036         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
73037
73038 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73039
73040         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
73041         instead of 0.
73042         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
73043         instead of 0.
73044         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
73045         Patch in part by Pavel Roskin <proski@gnu.org>.
73046
73047         [BZ #13138]
73048         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
73049         realloc.
73050         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
73051         Free memory block if necessary.
73052
73053         [BZ #12847]
73054         * libio/genops.c (INTDEF): For string streams the _lock pointer can
73055         be NULL.  Don't lock in this case.
73056
73057 2011-09-09  Roland McGrath  <roland@hack.frob.com>
73058
73059         * elf/elf.h (ELFOSABI_GNU): New macro.
73060         (ELFOSABI_LINUX): Define to that.
73061
73062 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
73063
73064         * string/strncat.c (strncat): Undef the symbol in case it has been
73065         defined in bits/string.h.
73066
73067 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73068
73069         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
73070
73071         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
73072         link map.
73073
73074 2011-08-17  Andreas Jaeger  <aj@suse.de>
73075
73076         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
73077
73078 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
73079             Ian Lance Taylor  <iant@google.com>
73080
73081         * math/libm-test.inc (lround_test): New testcase.
73082         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
73083
73084 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
73085
73086         * Makefile: Remove support for automatic cvs check-ins.
73087         * Makerules: Likewise.
73088         * config.make.in: Likewise.
73089         * configure.in: Likewise.
73090         * intl/Makefile: Likewise.
73091         * locale/Makefile: Likewise.
73092         * po/Makefile: Likewise.
73093         * posix/Makefile: Likewise.
73094         * sysdeps/gnu/Makefile: Likewise.
73095         * sysdeps/mach/hurd/Makefile: Likewise.
73096         * sysdeps/sparc/sparc32/Makefile: Likewise.
73097
73098         [BZ #13118]
73099         * posix/Makefile (bug-regex32-ENV): Define.
73100         Patch by John Stanley <jpsinthemix@verizon.net>.
73101
73102         * misc/Makefile (headers): Add bits/select2.h.
73103         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
73104         * misc/bits/select2.h: New file.
73105         * include/bits/select2.h: New file.
73106         * debug/Makefile (routines): Add fdelt_chk.
73107         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
73108         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
73109         FD_ISSET.
73110         * debug/fdelt_chk.c: New file.
73111
73112         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
73113         * wcsmbs/test-wmemcmp.c: Likewise.
73114         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
73115         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
73116
73117 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73118
73119         * string/Makefile (strop-tests): Add memcmp.
73120         * string/test-wmemcmp.c: New file.
73121         * string/test-memcmp.c: Add wmemcmp support.
73122
73123 2011-09-08  Roland McGrath  <roland@hack.frob.com>
73124
73125         [BZ #13153]
73126         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
73127         2011-07-19 change.
73128
73129         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
73130         garbage value in a __mach_port_mod_refs call in the cases of the
73131         task-self and thread-self ports.
73132
73133 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
73134
73135         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
73136
73137 2011-09-08  Andreas Schwab  <schwab@redhat.com>
73138
73139         * elf/dl-load.c (lose): Check for non-null L.
73140
73141 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
73142
73143         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
73144
73145         * elf/dl-libc.c (dlerror_run): Pass back error code from
73146         dl_catch_error.
73147
73148         [BZ #13123]
73149         * elf/dl-load.c (lose): Free l_origin if it is valid.
73150
73151         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
73152         names.
73153         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
73154         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
73155         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73156         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
73157         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
73158         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
73159
73160 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73161
73162         * sysdeps/powerpc/fpu/e_hypot.c: New file.
73163         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
73164         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
73165         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
73166         * sysdeps/powerpc/fpu/k_cosf.c: New file.
73167         * sysdeps/powerpc/fpu/k_sinf.c: New file.
73168         * sysdeps/powerpc/fpu/s_cosf.c: New file.
73169         * sysdeps/powerpc/fpu/s_sinf.c: New file.
73170         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
73171         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
73172
73173 2011-08-15  Alan Modra  <amodra@gmail.com>
73174
73175         [BZ #13092]
73176         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
73177         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
73178         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
73179         ppc_mcount to static-only-routines.
73180         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
73181         __mcount_internal.
73182         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
73183         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
73184
73185 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
73186
73187         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
73188         for finite and infinity parameters.
73189
73190 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
73191
73192         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
73193         and add nop instructions for throughput optimization.
73194         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
73195
73196 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
73197
73198         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
73199         aligned copy for power7 with vector-scalar instructions.
73200         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
73201
73202 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
73203
73204         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
73205         AVX check.
73206
73207 2011-09-07  Andreas Schwab  <schwab@redhat.com>
73208
73209         [BZ #13144]
73210         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
73211         last change.
73212
73213 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
73214
73215         * sysdeps/unix/sysv/linux/x86_64/init-first.c
73216         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
73217         syscall wrapper around clock_gettime in __vdso_clock_gettime.
73218         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
73219         clock_gettime.
73220
73221 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
73222
73223         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
73224         Forgot to demangle the pointer.
73225
73226         * sysdeps/i386/sysdep.h: Define atom_text_section.
73227         * sysdeps/x86_64/sysdep.h: Likewise.
73228         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
73229         section with atom_text_section.
73230         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
73231         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
73232         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
73233         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73234         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
73235
73236         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
73237         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
73238         already be defined.  Change to take two parameters and don't assign
73239         result to variable.  Adjust all users.
73240         Define INTERNAL_GETTIME if not already defined.
73241         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
73242         call.
73243         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
73244         HAVE_CLOCK_GETTIME_VSYSCALL.
73245         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
73246
73247         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
73248         gettimeofday vsyscall, just use time.
73249
73250 2011-09-06  Andreas Schwab  <schwab@redhat.com>
73251
73252         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
73253         <errno.h>.
73254
73255 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
73256
73257         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
73258         syscall on x86-64.
73259         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
73260         syscall.
73261         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
73262         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
73263         syscall if possible.
73264
73265 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73266
73267         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
73268         e_ident.  Don't pass to find_mapsXX.
73269         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
73270
73271 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73272
73273         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73274         strchr-sse2-no-bsf strrchr-sse2-no-bsf
73275         * sysdeps/x86_64/multiarch/strchr.S: Update.
73276         Check bit_slow_BSF bit.
73277         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
73278         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
73279         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
73280
73281 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73282
73283         [BZ #13134]
73284         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
73285         before glibc 2.15.
73286         (tryshell): Define.
73287         (__spawni): Change last parameter to be flag.  Test
73288         SPAWN_XFLAGS_USE_PATH flag to use path or not.
73289         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
73290         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
73291         * posix/spawni.c: Likewise.
73292         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
73293         * posix/spawnp.c: Likewise.  Change normal version to use
73294         SPAWN_XFLAGS_USE_PATH.
73295         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
73296         SPAWN_XFLAGS_TRY_SHELL.
73297
73298         [BZ #13150]
73299         * posix/glob.h: Remove gcc 1.x support.
73300
73301         [BZ #13068]
73302         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
73303
73304 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73305
73306         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73307         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
73308         strrchr-sse2-bsf
73309         * sysdeps/i386/i686/multiarch/strchr.S: New file.
73310         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
73311         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
73312         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
73313         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
73314         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
73315
73316 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73317
73318         * sysdeps/x86_64/wcscmp.S: New file.
73319
73320         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
73321         wcscmp-c wcscmp-sse2
73322         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
73323         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
73324         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
73325         * wcsmbs/wcscmp.c: Allow renaming.
73326
73327 2011-09-05  David S. Miller  <davem@davemloft.net>
73328
73329         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
73330         stack slot, rather than the struct return pointer slot.
73331         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
73332         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
73333         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
73334         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
73335
73336 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73337
73338         * po/ja.po: Update from translation team.
73339
73340         [BZ #13144]
73341         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
73342         kernel in 64-bit binaries.
73343
73344 2011-09-01  David S. Miller  <davem@davemloft.net>
73345
73346         * elf/elf.h (HWCAP_SPARC_*): Move to..
73347         * sysdeps/sparc/sysdep.h: this new file and add new values.
73348         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
73349         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
73350         _DL_HWCAP_COUNT to 24.
73351         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
73352         entries.
73353         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
73354         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
73355         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
73356         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
73357         instead of magic constants.
73358         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
73359
73360 2011-08-31  David S. Miller  <davem@davemloft.net>
73361
73362         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
73363         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
73364         Reimplement to do errno handling inline.
73365         (SYSCALL_ERROR_HANDLER): New macro.
73366         (__SYSCALL_STRING): Do not do errno handling in asm.
73367         (__CLONE_SYSCALL_STRING): Delete.
73368         (__INTERNAL_SYSCALL_STRING): Delete.
73369         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
73370         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
73371         (PSEUDO): Reimplement to do errno handling inline.
73372         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
73373         (SYSCALL_ERROR_HANDLER): New macro.
73374         (__SYSCALL_STRING): Do not do errno handling in asm.
73375         (__CLONE_SYSCALL_STRING): Delete.
73376         (__INTERNAL_SYSCALL_STRING): Delete.
73377         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
73378         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
73379         i386.
73380         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
73381         (inline_syscall*): Add 'err' argument.
73382         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
73383         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
73384         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
73385         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
73386
73387         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
73388         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
73389
73390 2011-08-30  Andreas Schwab  <schwab@redhat.com>
73391
73392         * elf/rtld.c (dl_main): Relocate objects in dependency order.
73393
73394 2011-08-29  Jiri Olsa <jolsa@redhat.com>
73395
73396         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
73397         directive.
73398
73399 2011-08-24  David S. Miller  <davem@davemloft.net>
73400
73401         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
73402
73403 2011-08-24  Andreas Schwab  <schwab@redhat.com>
73404
73405         * elf/Makefile: Add rules to build and run unload8 test.
73406         * elf/unload8.c: New file.
73407         * elf/unload8mod1.c: New file.
73408         * elf/unload8mod1x.c: New file.
73409         * elf/unload8mod2.c: New file.
73410         * elf/unload8mod3.c: New file.
73411
73412         * elf/dl-close.c (_dl_close_worker): Reset private search list if
73413         it wasn't used.
73414
73415 2011-08-23  David S. Miller  <davem@davemloft.net>
73416
73417         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
73418         subtract stack bias.
73419         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
73420         %sp not %fp in calculations.
73421         (_JMPBUF_UNWINDS_ADJ): Likewise.
73422
73423         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
73424         (aio_suspend): Call it to force an exception region around the
73425         AIO_MISC_WAIT() invocation.
73426
73427 2011-08-23  Andreas Schwab  <schwab@redhat.com>
73428
73429         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
73430         backslash.
73431
73432 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
73433
73434         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
73435         protection macro.
73436         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
73437         and <dl-machine.h>.
73438         (Elf64_FuncDesc): Remove.
73439
73440 2011-08-22  David S. Miller  <davem@davemloft.net>
73441
73442         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
73443         sigaltstack check, add missing cfi directives.
73444         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
73445         missing cfi directives, and sigaltstack handling.
73446
73447 2011-08-16  Andreas Schwab  <schwab@redhat.com>
73448
73449         [BZ #11724]
73450         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
73451         object is seen twice.
73452         * elf/dl-fini.c (_dl_sort_fini): Likewise.
73453
73454         * elf/Makefile (distribute): Add tst-initorder2.c.
73455         (tests): Add tst-initorder2.
73456         (modules-names): Add tst-initorder2a tst-initorder2b
73457         tst-initorder2c tst-initorder2d.  Add rules to build them.
73458         ($(objpfx)tst-initorder2.out): New rule.
73459         * elf/tst-initorder2.c: New file.
73460         * elf/tst-initorder2.exp: New file.
73461
73462 2011-08-22  Andreas Schwab  <schwab@redhat.com>
73463
73464         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
73465
73466         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
73467         dependencies back to end of function.
73468
73469         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
73470         $(elfobjdir)/ld.so.
73471
73472 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
73473
73474         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
73475         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
73476         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
73477         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
73478         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
73479         of __vdso_gettimeofday.
73480         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
73481         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
73482         attribute_hidden.
73483         (_libc_vdso_platform_setup): Remove initialization of
73484         __vdso_gettimeofday and __vdso_time.
73485
73486 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73487
73488         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
73489         and fgetc_unlocked.
73490         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
73491         getc_unlocked.
73492
73493         * elf/dl-open.c (add_to_global): Report additions to the global scope
73494         for LD_DEBUG=scopes.
73495         (dl_open_worker): Also print scope of newly loaded dependencies.
73496         (_dl_show_scope): Indicate if there is no scope.
73497
73498         [BZ #13114]
73499         * stdio-common/Makefile (tests): Add bug24.
73500         * stdio-common/bug24.c: New file.
73501
73502 2011-08-19  Andreas Jaeger  <aj@suse.de>
73503
73504         [BZ #13114]
73505         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
73506         non-existant file when using close-on-exec mode.
73507
73508 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73509
73510         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
73511         the very first instruction.
73512
73513         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
73514         the CFI state in the end.
73515         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
73516         inclusion of dl-trampoline.h.
73517         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
73518
73519 2011-08-19  Andreas Schwab  <schwab@redhat.com>
73520
73521         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
73522         expectations for long double.
73523
73524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
73525         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
73526
73527 2011-08-14  David S. Miller  <davem@davemloft.net>
73528
73529         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
73530         artificual limit depends upon the system page size.
73531
73532 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73533
73534         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
73535         * resolv/Makefile: Define CFLAGS-libresolv.
73536
73537 2011-08-17  Andreas Schwab  <schwab@redhat.com>
73538
73539         * nss/makedb.c (compute_tables): Make variables used in nested
73540         function static.
73541
73542 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73543
73544         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
73545         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
73546         if buffer was too small.
73547
73548         * elf/pldd.c (main): Attach to all threads in the process.
73549         Rewrite /proc handling to use *at functions.
73550
73551 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
73552
73553         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
73554         specifies first scope to show.
73555         (dl_open_worker): Update callers.  Move printing scope of new
73556         object to before the relocation.
73557         * elf/rtld.c (dl_main): Update _dl_show_scope call.
73558         * sysdeps/generic/ldsodefs.h: Update declaration.
73559
73560         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
73561         string for the scope number.
73562
73563 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
73564
73565         * nscd/servicescache.c (cache_addserv): Make sure written is always
73566         initialized.
73567
73568 2011-08-14  Roland McGrath  <roland@hack.frob.com>
73569
73570         * sysdeps/i386/i486/bits/atomic.h
73571         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
73572         statement expression, so as to suppress "set but not used" warning.
73573         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
73574
73575         * string/strncat.c (STRNCAT): Use prototype definition.
73576
73577         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
73578         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
73579         -Iprograms here.
73580         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
73581         (localedef-modules): Add localedef.
73582         (locale-modules): Add locale.
73583
73584         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
73585         * elf/rtld.c (dl_main): Invert order of assignment in last change,
73586         to avoid a warning.
73587
73588 2011-08-14  David S. Miller  <davem@davemloft.net>
73589
73590         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
73591         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
73592
73593 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
73594
73595         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
73596         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
73597         * elf/rtld.c (dl_main): Set l_name of vDSO.
73598         Call _dl_show_scope when DL_DEBUG_SCOPES.
73599         (process_dl_debug): Recognize scopes flag and also set it for all.
73600         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
73601         Declare _dl_show_scope.
73602
73603         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
73604         (do_dlopen): Pass caller_dlopen to dl_open.
73605         (__libc_dlopen_mode): Initialize caller_dlopen.
73606
73607         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
73608         of libc.  Make tolower call locale-independent.  Optimize a bit by
73609         using isdigit instead of isalnum.
73610         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
73611
73612 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
73613
73614         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
73615         was a dependency or dynamically loaded.
73616
73617 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
73618
73619         * intl/l10nflist.c: Allow architecture-specific pop function.
73620         * sysdeps/x86_64/l10nflist.c: New file.
73621
73622         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
73623         classification.
73624
73625 2011-08-10  Andreas Schwab  <schwab@redhat.com>
73626
73627         * include/dirent.h: Add libc_hidden_proto for scandirat and
73628         scandirat64.  Don't declare __scandirat64.
73629         * dirent/scandirat.c: Add libc_hidden_def.
73630         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
73631         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
73632
73633 2011-08-10  David S. Miller  <davem@davemloft.net>
73634
73635         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
73636         enum.
73637         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73638         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73639         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73640
73641 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
73642
73643         * Versions.def [libc]: Add GLIBC_2.15.
73644         * dirent/Makefile (routines): Add scandirat and scandirat64.
73645         * dirent/Versions [libc]: Export scandirat and scandirat64 for
73646         GLIBC_2.15.
73647         * dirent/dirent.h: Declare scandirat and scandirat64.
73648         * dirent/scandirat.c: New file.
73649         * dirent/scandirat64.c: New file.
73650         * sysdeps/wordsize-64/scandirat.c: New file.
73651         * sysdeps/wordsize-64/scandirat64.c: New file.
73652         * dirent/opendir.c: Define opendirat.
73653         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
73654         using scandirat.
73655         * dirent/scandir64.c: Adjust for scandir.c change.
73656         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
73657         __scandirat64, and __scandir_cancel_handler.
73658         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
73659         additional parameter and use openat instead of open (outside of ld.so).
73660         Add new __opendir as wrapper around __opendirat.
73661         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
73662         here without requiring old scandirat implementation.
73663
73664 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
73665
73666         * dirent/scandir.c (cancel_handler): Renamed to
73667         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
73668         defined.  Adjust users.
73669         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
73670         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
73671
73672 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
73673
73674         * string/test-string.h (IMPL): Use __STRING to expand name and then
73675         stringify it.
73676
73677         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
73678         of cleanups.
73679
73680 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73681
73682         * string/Makefile: Update.
73683         (strop-tests): Append strncat.
73684         * string/test-wcscmp.c: New file.
73685         New comprehensive test for wcscmp.
73686         * string/test-strcmp.c: Update.
73687         (WIDE): New define.
73688
73689 2011-07-22  Andreas Schwab  <schwab@redhat.com>
73690
73691         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
73692         line.
73693
73694 2011-07-26  Andreas Schwab  <schwab@redhat.com>
73695
73696         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
73697         encoding to ACE if AI_IDN.
73698
73699 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
73700
73701         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
73702         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
73703
73704 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73705
73706         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
73707         Fix overflow bug in strncat.
73708         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
73709
73710         * string/test-strncat.c: Update.
73711         Add new tests for checking overflow bugs.
73712
73713 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73714
73715         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73716         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
73717         * sysdeps/i386/i686/multiarch/strcat.S: New file.
73718         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
73719         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
73720         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
73721         * sysdeps/i386/i686/multiarch/strncat.S: New file.
73722         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
73723         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
73724
73725         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
73726         (USE_AS_STRCAT): Define.
73727         Add strcat and strncat support.
73728         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73729
73730 2011-07-25  Andreas Schwab  <schwab@redhat.com>
73731
73732         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
73733         __n bigger than INT_MAX+1.
73734         (__strncmp_g): Likewise.
73735
73736 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
73737
73738         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
73739         * libio/stido.h: Likewise.
73740
73741         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
73742         (AF_NFC): Define.
73743         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
73744         (AF_NFC): Define.
73745
73746         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
73747         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73748         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73749         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
73750         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73751
73752         [BZ #13021]
73753         * scripts/test-installation.pl: Don't expect libnss_test1 to be
73754         installed.
73755
73756         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
73757         typo.
73758         (_dl_x86_64_save_sse): Likewise.
73759
73760 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
73761
73762         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
73763         OSXSAVE.
73764         (_dl_x86_64_save_sse): Likewise.
73765
73766         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
73767
73768         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
73769
73770 2011-07-21  Andreas Schwab  <schwab@redhat.com>
73771
73772         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
73773         change.
73774         (_dl_x86_64_save_sse): Use correct AVX check.
73775
73776 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73777
73778         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
73779         bug in strncpy/strncat.
73780         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
73781
73782 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
73783
73784         * string/tester.c (test_strcat): Add tests for different alignments
73785         of source and destination.
73786         (test_strncat): Likewise.
73787
73788 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73789
73790         [BZ #12852]
73791         * posix/glob.c (glob): Check passed in values before using them in
73792         expressions to avoid some overflows.
73793         (glob_in_dir): Likewise.
73794
73795         [BZ #13007]
73796         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
73797         check for AVX enablement so that we don't crash with old kernels and
73798         new hardware.
73799         * elf/tst-audit4.c: Add same checks here.
73800         * elf/tst-audit6.c: Likewise.
73801
73802         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
73803
73804 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
73805
73806         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
73807
73808 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73809
73810         * po/cs.po: Update from translation team.
73811         * po/bg.po: Likewise.
73812
73813 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
73814
73815         * misc/sys/cdefs.h: Add support for const attribute.
73816         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
73817         to gnu_dev_{major,minor,makedev} functions.
73818
73819 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
73820
73821         * intl/dcigettext.c (get_output_charset): Add missing bracket.
73822
73823 2011-07-20  Andreas Schwab  <schwab@redhat.com>
73824
73825         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
73826         strlen results.
73827
73828 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73829
73830         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
73831         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
73832         register in order to avoid conflicts with the soft frame pointer
73833         being held in r11 when necessary.
73834         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
73835         (INTERNAL_VSYSCALL_NCS): Likewise.
73836
73837 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
73838
73839         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
73840         * elf/dl-fini.c (_dl_fini): Adjust caller.
73841         * elf/dl-close.c (_dl_close_worker): Likewise.
73842         * sysdeps/generic/ldsodefs.h: Adjust declaration.
73843
73844 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73845
73846         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
73847         "aux_cache->nlibs < 0".
73848
73849         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
73850         in the reload-count case.
73851
73852 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73853
73854         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73855         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
73856         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
73857         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
73858         * sysdeps/x86_64/multiarch/strcat.S: New file.
73859         * sysdeps/x86_64/multiarch/strncat.S: New file.
73860         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
73861         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
73862         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
73863         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
73864         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
73865         (USE_AS_STRCAT): Define.
73866         Add strcat and strncat support.
73867         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73868         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
73869         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
73870         * string/strncat.c: Update.
73871         (USE_AS_STRNCAT): Define.
73872         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73873         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
73874         and i7.
73875         * sysdeps/x86_64/multiarch/init-arch.h
73876         (bit_Prefer_PMINUB_for_stringop): New.
73877         (index_Prefer_PMINUB_for_stringop): Likewise.
73878         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
73879         bit_Prefer_PMINUB_for_stringop.
73880
73881 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73882
73883         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
73884         buffer64.
73885         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
73886         of casting of buffer.
73887         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
73888         buffer32 and buffer64.
73889         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
73890         writes instead of casting of buffer.
73891         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
73892         buffer32.
73893         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
73894         casting of buffer.
73895
73896 2011-07-19  Andreas Schwab  <schwab@redhat.com>
73897
73898         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
73899
73900 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73901
73902         * nscd/nscd.c (termination_handler): Don't do anything for a database
73903         if it has not yet been initialized.
73904
73905 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73906
73907         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73908
73909 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73910
73911         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73912
73913 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73914
73915         * po/nl.po: Update from translation team.
73916         * po/sv.po: Likewise.
73917
73918 2011-07-16  Roland McGrath  <roland@hack.frob.com>
73919
73920         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
73921         now disallowed by GCC.
73922
73923         * configure.in (use-default-link): Default to yes if a test -shared
73924         link meets our qualifications.
73925         * configure: Regenerated.
73926
73927         * config.make.in (output-format): New variable.
73928         * configure.in: Check for ld --print-output-format support.
73929         * configure: Regenerated.
73930         * Makerules ($(common-objpfx)format.lds)
73931         [$(output-format) != unknown]: Just use $(output-format),
73932         instead of the linker-script munging.
73933
73934 2011-07-14  Roland McGrath  <roland@hack.frob.com>
73935
73936         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
73937         of $(common-objpfx)shlib.lds.
73938         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
73939
73940         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
73941         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
73942
73943         * configure.in (-z relro check): Adjust test code to add a large
73944         writable data section after it.
73945         * configure: Regenerated.
73946
73947 2011-07-11  Roland McGrath  <roland@hack.frob.com>
73948
73949         * configure.in (-z relro check): Fix test code to make the variable
73950         truly const.
73951         * configure: Regenerated.
73952
73953 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
73954
73955         * nscd/nscd.h (struct traced_file): Define.
73956         (struct database_dyn): Remove inotify_descr, reset_res, and filename
73957         elements.  Add traced_files.
73958         (inotify_fd): Declare.
73959         (register_traced_file): Declare.
73960         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
73961         (inotify_fd): Export.
73962         (resolv_conf_descr): Remove.
73963         (nscd_init): Move inotify descriptor creation to main.
73964         Don't register files for notification here.
73965         (register_traced_file): New function.
73966         (invalidate_cache): Don't use reset_res to determine whether to call
73967         res_init, go through the list of registered files.
73968         (main_loop_poll): The inotify descriptors are now stored in the
73969         structures for the traced files.
73970         (main_loop_epoll): Likewise.
73971         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
73972         to __nss_disable_nscd.
73973         * nscd/cache.c (prune_cache): There is no single inotify descriptor
73974         for a database anymore.  Check the records for all the registered
73975         files instead.
73976         * nss/Makefile (libnss_files-routines): Add files-init.
73977         (libnss_db-routines): Add db-init.
73978         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
73979         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
73980         * nss/nss_db/db-init.c: New file.
73981         * nss/nss_files/files-init.c: New file.
73982         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
73983         __nss_lookup_function.
73984         (__nss_lookup_function): Call nss_load_library.
73985         (nss_load_all_libraries): New function.
73986         (__nss_disable_nscd): Take parameter with callback function for files
73987         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
73988         used for the cached services.
73989         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
73990         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
73991         options for features to all the files in nscd.
73992
73993         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
73994
73995 2011-07-10  Roland McGrath  <roland@hack.frob.com>
73996
73997         * csu/elf-init.c (__libc_csu_init): Comment typo.
73998
73999 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
74000
74001         * po/pl.po: Update from translation team.
74002         * po/ja.po: Likewise.
74003         * po/ru.po: Likewise.
74004         * po/ko.po: Likewise.
74005         * po/fr.po: Likewise.
74006
74007 2011-07-09  Roland McGrath  <roland@hack.frob.com>
74008
74009         * configure.in (.ctors/.dtors header and trailer check):
74010         Use an empirical test on a built program.
74011         * configure: Regenerated.
74012
74013         * configure.in (-z relro check): Use an empirical test on a built DSO.
74014         Detect, but do not require, on ia64.
74015         * configure: Regenerated.
74016
74017         * configure.in (READELF): Find it with AC_CHECK_TOOL.
74018         Update tests that use readelf to use $READELF instead.
74019         * configure: Regenerated.
74020
74021 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
74022
74023         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
74024         if the result is not used.
74025
74026 2011-07-05  Andreas Jaeger  <aj@suse.de>
74027
74028         [BZ#9696]
74029         * stdlib/tst-strtod.c: Add testcase.
74030
74031 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
74032
74033         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
74034         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
74035         The latter has a higher limit.  Take additional parameter to pass to
74036         the new function.
74037         (__pathconf): Pass file to __statfs_link_max.
74038         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
74039         __statfs_link_max.
74040         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
74041         __statfs_link_max.
74042
74043         [BZ #12868]
74044         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
74045         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
74046         Handle Lustre.
74047         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
74048         (__statfs_filesize_max): Likewise.
74049         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
74050
74051 2011-07-05  Andreas Jaeger  <aj@suse.de>
74052
74053         * resolv/res_comp.c (dn_skipname): Remove unused variable.
74054
74055 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
74056
74057         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
74058         `status' variable.
74059         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
74060         Likewise.
74061
74062 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
74063
74064         * Makefile (strop-tests): Add strncat.
74065         * string/test-strncat.c: New file.
74066
74067 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
74068
74069         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
74070
74071 2011-06-21  Andreas Jaeger  <aj@suse.de>
74072
74073         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
74074         Copy rule from iconvdata/Makefile.
74075
74076 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
74077
74078         [BZ #12922]
74079         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
74080         but no long options are defined, just return 'W'.
74081
74082 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
74083
74084         [BZ #9696]
74085         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
74086
74087 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
74088
74089         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
74090         netgroups to read.
74091         (innetgr): Likewise.
74092
74093 2011-07-05  Roland McGrath  <roland@hack.frob.com>
74094
74095         * config.make.in (install_root): Default to $(DESTDIR).
74096
74097 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
74098
74099         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
74100
74101 2011-07-02  Roland McGrath  <roland@hack.frob.com>
74102
74103         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
74104
74105         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
74106         containing directory rather than embedding absolute directory names.
74107
74108         * scripts/check-local-headers.sh: Rewritten using awk.
74109         Match by word, not by line.  Print error messages for matches.
74110         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
74111
74112         * Makerules [shlib-lds-flags empty]:
74113         ($(common-objpfx)libc_pic.opts): New target.
74114         ($(common-objpfx)libc_pic.os.clean): New target.
74115         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
74116
74117         * config.make.in (OBJCOPY): New variable.
74118         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
74119         * configure: Regenerated.
74120
74121         * config.make.in (use-default-link): New variable.
74122         * configure.in (use_default_link): Grok --with-default-link to set it.
74123         * configure: Regenerated.
74124         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
74125         (shlib-lds, shlib-lds-flags): Define to empty.
74126
74127         * Makerules (shlib-lds): New variable.
74128         (shlib-lds-flags): New variable.
74129         (build-shlib, build-moduile, build-module-asneeded): Use it.
74130         ($(common-objpfx)libc.so): Use $(shlib-lds).
74131         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
74132         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
74133
74134         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
74135         DT_FLAGS/DT_FLAGS_1 with zero flags.
74136
74137         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
74138         linker script munging.
74139
74140 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
74141
74142         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
74143         as 128-bit value.
74144         * crypt/sha512.c (sha512_process_block): Perform total addition using
74145         128-bit if possible.
74146         (__sha512_finish_ctx): Likewise.
74147         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
74148         as 64-bit value.
74149         * crypt/sha256.c (SWAP64): Define.
74150         (sha256_process_block): Perform total addition using 64-bit if
74151         possible.
74152         (__sha256_finish_ctx): Likewise.
74153
74154 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
74155
74156         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
74157         * nscd/initgrcache.c (addinitgroupsX): Likewise.
74158         * nscd/hstcache.c (cache_addhst): Likewise.
74159         * nscd/grpcache.c (cache_addgr): Likewise.
74160         * nscd/aicache.c (addhstaiX): Likewise.
74161         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
74162
74163 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
74164
74165         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
74166         * nscd/initgrcache.c (addinitgroupsX): Likewise.
74167         * nscd/hstcache.c (cache_addhst): Likewise.
74168         * nscd/grpcache.c (cache_addgr): Likewise.
74169         * nscd/aicache.c (addhstaiX): Likewise.
74170
74171 2011-07-01  Andreas Schwab  <schwab@redhat.com>
74172
74173         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
74174         domain only when needed.
74175
74176 2011-06-30  Andreas Schwab  <schwab@redhat.com>
74177
74178         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
74179         is always restored.
74180
74181 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
74182
74183         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
74184         are re-adding the entry.
74185         * nscd/servicescache.c (cache_addserv): Likewise.
74186
74187 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
74188
74189         * sysdeps/generic/dl-irel.h: fix protection against multiple
74190         inclusions.
74191         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
74192
74193 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
74194
74195         [BZ #12935]
74196         * malloc/memusage.sh: Fix quoting in message.
74197         * debug/xtrace.sh: Likewise.
74198
74199         * configure.in: Remove support for --experimental-malloc option, make
74200         it the default.
74201         * config.make.in: Likewise.
74202         * malloc/Makefile: Likewise.
74203
74204 2011-06-27  Andreas Schwab  <schwab@redhat.com>
74205
74206         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
74207         two-byte characters.
74208
74209 2011-06-27  Roland McGrath  <roland@hack.frob.com>
74210
74211         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
74212         AC_CACHE_CHECK invocation.
74213         * configure: Regenerated.
74214
74215         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
74216
74217 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
74218
74219         [BZ #12350]
74220         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
74221         bit from old_res_options.
74222
74223         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
74224
74225         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
74226         value type for setfct.
74227
74228 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
74229
74230         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
74231         __gettimeofday instead of gettimeofday.
74232
74233 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
74234
74235         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
74236
74237 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
74238
74239         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
74240
74241         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
74242         info.
74243
74244 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
74245
74246         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
74247         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
74248         strcpy-sse2-unaligned strncpy-sse2-unaligned
74249         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
74250         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
74251         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
74252         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
74253         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
74254         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
74255         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
74256         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
74257         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
74258         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
74259         (STRCPY): Support SSE2 and SSSE3 versions.
74260
74261 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
74262
74263         [BZ #12874]
74264         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
74265         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
74266         kernels which artificially limit size of requests.
74267
74268 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
74269
74270         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
74271         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
74272         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
74273         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
74274         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
74275         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
74276         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
74277         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
74278         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
74279         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
74280         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
74281         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
74282         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
74283         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
74284         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
74285         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74286         Enable unaligned load optimization for Intel Core i3, i5 and i7
74287         processors.
74288         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
74289         Define.
74290         (index_Fast_Unaligned_Load): Define.
74291         (HAS_FAST_UNALIGNED_LOAD): Define.
74292
74293 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
74294
74295         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
74296
74297 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
74298
74299         [BZ #12907]
74300         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
74301         until it is clear that the information is realy needed.
74302         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
74303
74304 2011-06-22  Andreas Schwab  <schwab@redhat.com>
74305
74306         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
74307
74308 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
74309
74310         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
74311         /sys/devices/system/cpu/online if it is usable.
74312
74313         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
74314         reading the information from the /proc filesystem to once a second.
74315
74316 2011-06-21  Andreas Jaeger  <aj@suse.de>
74317
74318         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
74319         NULL after inclusion of kernel headers.
74320
74321 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
74322
74323         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
74324         calls to internal_setent.
74325
74326         [BZ #12885]
74327         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
74328         addresses using gethostbyname4_r ignore IPv4 addresses.
74329
74330         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
74331         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
74332
74333         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
74334
74335 2011-06-20  David S. Miller  <davem@davemloft.net>
74336
74337         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
74338         inclusions.
74339         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
74340
74341         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
74342         (elf_irel): Use it.
74343         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
74344         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
74345         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
74346         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
74347         * sysdeps/x86_64/dl-irel.h: Likewise.
74348
74349         * elf/dl-runtime.c: Use elf_ifunc_invoke.
74350         * elf/dl-sym.c: Likewise.
74351
74352 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74353
74354         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
74355         need to dereference resplen2.
74356
74357 2011-06-14  Andreas Schwab  <schwab@redhat.com>
74358
74359         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
74360
74361 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74362
74363         * Makeconfig: Define vardbdir and inst_vardbdir.
74364         * nss/Makefile: Add rules to install db-Makefile.
74365
74366         * nss/nss_db/db-XXX.c: Cleanup.
74367
74368         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
74369         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
74370         GLIBC_PRIVATE.
74371         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
74372         * nss/makedb.c: Implement -g option to specify that value strings
74373         are generated and should not be added to table iterated over for
74374         get*ent calls.
74375         * nss/nss_db/db-initgroups.c: New file.
74376
74377         * nss/getent.c: Add support for initgroups lookups through getgrouplist
74378         interface.
74379
74380         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
74381         (internal_getgrouplist): Adjust to name change.
74382         Update use_initgroups_entry if this is not the first call.
74383         * nss/databases.def: Add initgroups entry.
74384
74385         * nss/makedb.c (compute_tables): Check result of multiple hash table
74386         sizes to minimize maximum chain length.
74387
74388 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
74389
74390         * Versions.def: Add entry for libnss_db.
74391         * shlib-versions: Likewise.
74392         * nss/Makefile: Add rules to build libnss_db.
74393         * nss/Versions: Add libnss_db information.  Organize libnss_files
74394         entries better.
74395         * nss/db-Makefile: Add gshadow support.  Change rules for the new
74396         makedb progra.  Some minor improvements to generate smaller files.
74397         * nss/nss_db/nss_db.h: Move NSS database header data structures to
74398         here from...
74399         * nss/makedb.c: ...here.
74400         Improve database format to be smaller and require less memory at
74401         runtime.
74402         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
74403         db anymore.
74404         * nss/nss_db/db-netgrp.c: Likewise.
74405         * nss/nss_db/db-open.c: Likewise.
74406         * nss/nss_files/flies-XXX.x: Adjust comments.
74407         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
74408         * nss/nss_files/files-grp.c: Likewise.
74409         * nss/nss_files/files-hosts.c: Likewise.
74410         * nss/nss_files/files-network.c: Likewise.
74411         * nss/nss_files/files-proto.c: Likewise.
74412         * nss/nss_files/files-pwd.c: Likewise.
74413         * nss/nss_files/files-rpc.c: Likewise.
74414         * nss/nss_files/files-service.c: Likewise.
74415         * nss/nss_files/files-sgrp.c: Likewise.
74416         * nss/nss_files/files-spwd.c: Likewise.
74417         * nss/nss_db/db-alias.c: Removed.
74418         * nss/nss_db/dummy-db.h: Removed.
74419
74420 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
74421
74422         * nss/makedb.c: Rewritten to not use database library.
74423         * nss/Makefile: Update to build new makedb program.
74424
74425 2011-06-14  Andreas Jaeger  <aj@suse.de>
74426
74427         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
74428         memset declaration.
74429
74430 2011-06-10  Andreas Schwab  <schwab@redhat.com>
74431
74432         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
74433         tmpbuf.
74434
74435 2011-06-10  Roland McGrath  <roland@hack.frob.com>
74436
74437         * Makerules (shlib.lds): Fail if the linker script comes out empty.
74438         * elf/Makefile ($(objpfx)ld.so): Likewise.
74439
74440         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
74441         Don't list ld.so twice in dependencies.
74442
74443         * posix/bug-regex31.c: Include <stdlib.h>.
74444
74445         * nscd/hstcache.c (cache_addhst): Remove unused variable.
74446
74447         * nis/nss_compat/compat-spwd.c
74448         (getspent_next_nss_netgr): Remove unused variable.
74449         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
74450
74451         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
74452         nonmembers" output to use the right array.
74453
74454         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
74455
74456         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
74457
74458         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
74459         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
74460         * catgets/gencat.c (read_input_file): Likewise.
74461         * locale/programs/locarchive.c (enlarge_archive): Likewise.
74462
74463         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
74464         variable definition inside #if's controlling its use.
74465
74466         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
74467
74468         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
74469
74470         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
74471
74472         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
74473         unreachable code.
74474
74475         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
74476
74477         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
74478         * configure: Regenerated.
74479
74480         * Makerules: Revert last change.
74481         * elf/Makefile: Likewise.
74482
74483 2011-06-09  Roland McGrath  <roland@hack.frob.com>
74484
74485         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
74486         * elf/Makefile ($(objpfx)librtld.os): Likewise.
74487         (reloc-link): Likewise.
74488
74489 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
74490
74491         * elf/Makefile: Add rules to build pldd.
74492         * elf/pldd.c: New file.
74493         * elf/pldd-xx.c: New file.
74494
74495 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
74496
74497         * version.h: Update for 2.15 development version.
74498
74499 2011-06-07  David S. Miller  <davem@davemloft.net>
74500
74501         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
74502         ifuncs.
74503         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
74504         elf_machine_lazy_rel): Likewise.
74505         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
74506         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
74507         elf_machine_lazy_rel): Likewise.
74508         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
74509         dl_hwcap via passed in argument.
74510         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
74511         Likewise.
74512
74513 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74514
74515         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
74516
74517 2011-06-06  Roland McGrath  <roland@hack.frob.com>
74518
74519         [BZ #12849]
74520         * manual/fdl-1.1.texi: New file, verbatim from:
74521         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
74522         * manual/lgpl-2.1.texi: New file, verbatim from:
74523         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
74524         * manual/Makefile (licenses): New variable, list those new file names.
74525         (texis): Use it.
74526         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
74527
74528         * manual/fdl.texi: File removed.
74529         * manual/lesser.texi: File removed.
74530         * manual/libc.texinfo (Copying, Documentation License):
74531         Use new @include file names, put @appendix directive before @include.
74532
74533 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
74534
74535         [BZ #12841]
74536         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
74537         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
74538         (mq_open): Add __NTH.
74539
74540 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
74541
74542         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74543         Assume Intel Core i3/i5/i7 processor if AVX is available.
74544
74545 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74546
74547         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
74548         typo.
74549
74550 2011-05-31  Andreas Schwab  <schwab@redhat.com>
74551
74552         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
74553         memory.  Use alloca_account.  Fix memory leak when retrying.
74554
74555 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74556
74557         * version.h (RELEASE): Bump for 2.14 release.
74558         * include/features.h (__GLIBC_MINOR__): Bump to 14.
74559
74560         * config.make.in (RANLIB): Remove entry.
74561
74562 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
74563
74564         * po/Makefile (po-sed-cmd): Add ksh to extensions.
74565         (libc.pot): Work around missing support for .ksh extension in xgettext.
74566
74567         [BZ #12684]
74568         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
74569         if both request failed.
74570         (send_dg): In case of server errors clear resplen or *resplen2.
74571
74572         [BZ #12454]
74573         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
74574         when there are multiple maps.
74575         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
74576         (_dl_fini): Remove test here.
74577
74578         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
74579
74580 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
74581
74582         [BZ #12350]
74583         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
74584         bit from old_res_options.
74585         (gaih_inet): Likewise.
74586
74587         [BZ #11099]
74588         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
74589         as signed.
74590
74591         * resolv/res_init.c (res_setoptions): Make the code more compact.
74592
74593         [BZ #11558]
74594         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
74595         set RES_USEVC.
74596
74597         [BZ #11634]
74598         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
74599
74600         * malloc/malloc.h: Mark malloc hook variables as deprecated.
74601
74602         [BZ #11781]
74603         * malloc/malloc.h: Declare malloc hook variables as volatile.
74604
74605         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
74606         in last patch.
74607
74608         [BZ #11799]
74609         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
74610         raise in the comment.
74611         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
74612         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
74613         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
74614
74615 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
74616
74617         [BZ #12811]
74618         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
74619         grow the buffers more if it already has to be sufficient.
74620         (build_wcs_upper_buffer): Likewise.
74621         * posix/regexec.c (check_matching): Likewise.
74622         (clean_state_log_if_needed): Likewise.
74623         (extend_buffers): Don't enlarge buffers beyond size of the input
74624         buffer.
74625         Patches mostly by Emil Wojak <emil@wojak.eu>.
74626         * posix/bug-regex32.c: New file.
74627         * posix/Makefile (tests): Add bug-regex32.
74628
74629         * locale/findlocale.c (_nl_find_locale): Return right away if
74630         _nl_explode_name failed.
74631         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
74632
74633         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
74634
74635         * debug/xtrace.sh: Unify messages.
74636         * malloc/memusage.sh: Likewise.
74637
74638         [BZ #12813]
74639         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
74640         time symbol from vDSO.  Substitute with vsyscall if not available.
74641         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
74642         __vdso_time.
74643
74644         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
74645         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
74646         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
74647         Add sendmmsg and internal_sendmmsg.
74648         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
74649         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
74650         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
74651
74652         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
74653         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
74654         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
74655
74656 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
74657
74658         [BZ #12813]
74659         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
74660         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
74661         available.
74662         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
74663         __vdso_getcpu.
74664
74665         [BZ #12814]
74666         * iconvdata/Makefile (tests): Add bug-iconv9.
74667         * iconvdata/bug-iconv9.c: New file.
74668
74669 2011-05-27  Andreas Schwab  <schwab@redhat.com>
74670
74671         [BZ #12814]
74672         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
74673
74674 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
74675
74676         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74677         (struct user_regs_struct): Change intcs field back to cs.
74678
74679 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
74680
74681         * po/ja.po: Update from translation team.
74682
74683 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
74684
74685         [BZ #12795]
74686         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
74687         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
74688
74689 2011-05-20  Andreas Schwab  <schwab@redhat.com>
74690
74691         * stdlib/longlong.h: Update from GCC.
74692
74693 2011-05-23  Andreas Schwab  <schwab@redhat.com>
74694
74695         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
74696         parameter name.
74697         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
74698         Add parameter name.
74699         (__sysconf): Pass it down.
74700
74701 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
74702
74703         [BZ #12671]
74704         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
74705         some situations.
74706         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
74707         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
74708         add in in __libc_use_alloca calls.  Adjust callers.
74709         (glob): Use malloc in some situations.
74710
74711         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
74712         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
74713         pltexit.
74714
74715 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
74716
74717         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
74718         and CLOCK_BOOTTIME_ALARM.
74719
74720         [BZ #12782]
74721         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
74722         is returned.
74723
74724         * string/_strerror.c (__strerror_r): Print negative errors as signed
74725         numbers.
74726
74727         [BZ #12777]
74728         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
74729         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
74730         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
74731
74732         * configure.in: Fix typo in redirection and correct removal of test
74733         files in two cases.
74734
74735         [BZ #12788]
74736         * locale/setlocale.c (new_composite_name): Fix test to check for
74737         identical name of all categories.
74738
74739         [BZ #12792]
74740         * libio/filedoalloc.c (local_isatty): New function.
74741         (_IO_file_doallocate): Use local_isatty.
74742         * stdio-common/perror.c (perror): In case a new stream is used
74743         forward the stream error.
74744         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
74745         error flag.
74746
74747 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
74748
74749         [BZ #11884]
74750         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
74751         alloca.
74752         * include/alloca.h (extend_alloca_account): Define.
74753
74754         [BZ #11857]
74755         * posix/regex.h: Fix comments with documentation of user-accessible
74756         fields after compilation and describe correct free'ing of pattern
74757         after re_compile_pattern.
74758         Patch by Reuben Thomas <rrt@sc3d.org>.
74759
74760 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
74761
74762         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
74763         and -mno-altivec to prevent the compiler from using Altivec and/or
74764         VSX instructions when the corresponding registers are not available.
74765
74766 2011-05-19  Andreas Schwab  <schwab@redhat.com>
74767
74768         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
74769
74770 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
74771
74772         * libio/freopen.c (freopen): Use __dup2, not dup2.
74773         * libio/freopen64.c (freopen64): Likewise.
74774
74775 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
74776
74777         [BZ #12775]
74778         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
74779         * math/Makefile (tests): Add test-powl.
74780         (CFLAGS-test-powl.c): Define.
74781         * math/test-powl.c: New file.
74782
74783 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
74784
74785         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
74786
74787 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
74788
74789         [BZ #11837]
74790         * iconvdata/gb18030.c: Update to GB18020-2005.
74791
74792 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
74793
74794         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
74795         RE_SYNTAX_POSIX_AWK): Update to match recent development.
74796         Patch by Aharon Robbins <arnold@skeeve.com>.
74797
74798         [BZ #11892]
74799         * stdlib/putenv.c (putenv): Don't always create copy of the variable
74800         on the stack.
74801
74802         [BZ #11895]
74803         * misc/pselect.c (__pselect): Handle timeout value errors hidden
74804         through underflows.
74805
74806         [BZ #12766]
74807         * misc/error.c (error_at_line): Ensure file_name and old_file_name
74808         point to strings before performing equality test for error_one_per_line
74809         mode.
74810
74811         [BZ #11697]
74812         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
74813
74814         [BZ #11820]
74815         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74816         (struct user_fpregs_struct): Avoid __uint*_t types.
74817
74818         [BZ #6420]
74819         * malloc/mtrace.c (tr_where): Add additional parameter to point to
74820         symbol info.  Use it instead of calling _dl_addr locally.
74821         (lock_and_info): New function.
74822         (tr_freehook): Call lock_and_info and pass symbol info as additional
74823         parameter to tr_where.
74824         (tr_mallochook): Likewise.
74825         (tr_reallochook): Likewise.
74826         (tr_memalignhook): Likewise.
74827
74828         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
74829         used and couldn't be at all thread-safe.
74830
74831 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
74832
74833         * libio/freopen.c (freopen): Don't close old file descriptor
74834         before the new one is opened.  Instead dup the new file descriptor
74835         to the old one after the new stream is created.
74836         * libio/freopen64.c (freopen64): Likewise.
74837         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
74838         * libio/fileops.c (_IO_new_file_close_it): Handle new
74839         _IO_FLAGS2_NOCLOSE flag.
74840         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
74841         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
74842         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
74843         _IO_FLAGS2_NOCLOSE flag.
74844         * include/unistd.h: Add hidden_proto for dup3.
74845         Define __have_dup3.
74846         * io/dup3.c: Define hidden symbol.
74847         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
74848
74849         [BZ #7101]
74850         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
74851         when an incomplete long option is used.
74852         * posix/tst-getopt_long1.c: New file.
74853         * posix/Makefile (tests): Add tst-getopt_long1.
74854
74855         [BZ #10138]
74856         * scripts/config.guess: Update from autoconf-2.68.
74857         * scripts/config.sub: Likewise.
74858
74859         [BZ #10157]
74860         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
74861         tests into ...
74862         (has_cpuclock): ...this.  New function.
74863         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
74864         macro here based on has_cpuclock code.
74865
74866         [BZ #10149]
74867         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74868         First byte (not low byte) is now always NUL.
74869         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
74870
74871         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74872         Use non-cancelable interfaces.
74873
74874         [BZ #9809]
74875         * locale/iso-639.def: Add entry for Sorani.
74876
74877         [BZ #11901]
74878         * include/stdlib.h: Move include protection to the right place.
74879         Define abort_msg_s.  Declare __abort_msg with it.
74880         * stdlib/abort.c (__abort_msg): Adjust type.
74881         * assert/assert.c (__assert_fail_base): New function.  Majority
74882         of code from __assert_fail.  Allocate memory for __abort_msg with
74883         mmap.
74884         (__assert_fail): Now call __assert_fail_base.
74885         * assert/assert-perr.c: Remove bulk of implementation.  Use
74886         __assert_fail_base.
74887         * include/assert.hL Declare __assert_fail_base.
74888         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
74889         mmap.
74890         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
74891
74892 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
74893
74894         [BZ #11952]
74895         [BZ #12453]
74896         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
74897         until all modules are registered in the DTV.
74898         * elf/Makefile: Add rules to build and run tst-tls19.
74899         * elf/tst-tls19.c: New file.
74900         * elf/tst-tls19mod1.c: New file.
74901         * elf/tst-tls19mod2.c: New file.
74902         * elf/tst-tls19mod3.c: New file.
74903         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
74904
74905         [BZ #12083]
74906         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
74907         correctly.
74908
74909         [BZ #12601]
74910         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
74911         two-byte sequence errors.
74912         * iconvdata/Makefile (tests): Add bug-iconv8.
74913         * iconvdata/bug-iconv8.c: New file.
74914
74915         [BZ #12626]
74916         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
74917         buf2 definition.
74918
74919         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
74920
74921         [BZ #12432]
74922         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
74923         (dummy_getcfa): New function.
74924         (init): Get _Unwind_GetCFA address, use dummy if not found.
74925         (backtrace_helper): In recursion check, also check whether CFA changes.
74926         (__backtrace): Completely initialize arg.
74927
74928         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
74929         storing incomplete byte sequence in state object.  Avoid testing for
74930         guaranteed too small input if we know there is enough data available.
74931
74932 2011-05-11  Andreas Schwab  <schwab@redhat.com>
74933
74934         * Makeconfig (+link-pie): Indent.
74935         * Rules (binaries-pie): Define if $(have-fpie) and
74936         $(build-shared).
74937         (binaries-shared): Also filter out $(binaries-pie).
74938         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
74939         * nscd/Makefile (others-pie): Add nscd.
74940         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
74941         ($(objpfx)nscd): Remove command override.
74942         * login/Makefile (others-pie): Add pt_chown.
74943         ($(objpfx)pt_chown): Remove command override.
74944         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
74945         remove command overrides.
74946
74947 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
74948
74949         * libio/tst_putwc.c: Fix error messages.
74950
74951         [BZ #12724]
74952         * libio/fileops.c (_IO_new_file_close_it): Always flush when
74953         currently writing and seek to current position when not.
74954         * libio/Makefile (tests): Add bug-fclose1.
74955         * libio/bug-fclose1.c: New file.
74956
74957 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
74958
74959         [BZ #12511]
74960         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
74961         don't set DF_1_NODELETE here.
74962         (do_lookup_x): When entering new entry test for copy relocation
74963         and if necessary set DF_1_NODELETE flag.
74964         * elf/tst-unique4.cc: New file.
74965         * elf/tst-unique4.h: New file.
74966         * elf/tst-unique4lib.cc: New file.
74967         * elf/Makefile: Add rules to build and run tst-unique4.
74968         Patch by Piotr Bury <pbury@goahead.com>.
74969
74970 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
74971
74972         [BZ #12052]
74973         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
74974
74975         [BZ #12625]
74976         * misc/mntent_r.c (addmntent): Flush the stream after the output
74977
74978         [BZ #12393]
74979         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
74980         (is_trusted_path_normalize): Skip initial colon.  Append slash
74981         to empty buffer.  Duplicate is_trusted_path code but allow
74982         constructed patch to be prefix.
74983         (is_dst): Allow $ORIGIN followed by /.
74984         (_dl_dst_substitute): Correct clearing of check_for_trusted.
74985         Correct testing of result of is_trusted_path_normalize
74986         (decompose_rpath): Fix warning.
74987
74988 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
74989
74990         [BZ #11257]
74991         * grp/initgroups.c (internal_getgrouplist): When we found the service
74992         list through the initgroups entry in nsswitch.conf do not always
74993         continue on a successful lookup.  Don't always use the
74994         __nss_group_database value if it is set.
74995         * nss/nsswitch.conf (initgroups): Change action for successful db
74996         lookup to continue for compatibility.
74997
74998 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
74999
75000         [BZ #11532]
75001         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
75002         and CP774 modules.
75003         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
75004         and CP774 modules.
75005         * iconvdata/tst-tables.sh: Likewise.
75006         * iconvdata/cp770.c: New file.
75007         * iconvdata/cp771.c: New file.
75008         * iconvdata/cp772.c: New file.
75009         * iconvdata/cp773.c: New file.
75010         * iconvdata/cp774.c: New file.
75011         * iconvdata/testdata/CP770: New file.
75012         * iconvdata/testdata/CP770..UTF8: New file.
75013         * iconvdata/testdata/CP771: New file.
75014         * iconvdata/testdata/CP771..UTF8: New file.
75015         * iconvdata/testdata/CP772: New file.
75016         * iconvdata/testdata/CP772..UTF8: New file.
75017         * iconvdata/testdata/CP773: New file.
75018         * iconvdata/testdata/CP773..UTF8: New file.
75019         * iconvdata/testdata/CP774: New file.
75020         * iconvdata/testdata/CP774..UTF8: New file.
75021
75022         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
75023         END CHARMAP line.
75024         * iconvdata/gen-8bit-gap.sh: Likewise.
75025         * iconvdata/gen-8bit.sh: Likewise.
75026
75027         * locale/iso-639.def: Add ary entry.
75028
75029         [BZ #11258]
75030         * locale/C-translit.h.in: Add U20A1 transliteration.
75031
75032         [BZ #12178]
75033         * locale/iso-639.def: Add wae entry.
75034         Patch by Kevin Bortis <bortis@translate-wae.ch>.
75035
75036         [BZ #12545]
75037         * locale/programs/localedef.c (construct_output_path): Use ssize_t
75038         for n.
75039
75040         [BZ #12711]
75041         * locale/C-translit.h.in: Add entry for U20B9.
75042         Patch by pravin.d.s@gmail.com.
75043
75044 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
75045
75046         [BZ #12713]
75047         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
75048         ENAMETOOLONG use generic getcwd.
75049         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
75050         in rtld.  Use *stat64.
75051         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
75052         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
75053         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
75054         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
75055         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
75056         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
75057         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
75058         __fstatat64 macros.
75059         * include/dirent.h: Add libc_hidden_proto for rewinddir.
75060         * dirent/rewinddir.c: Add libc_hidden_def.
75061         * sysdeps/mach/hurd/rewinddir.c: Likewise.
75062         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
75063
75064         * include/dirent.h (__alloc_dir): Add flags parameter.
75065         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
75066         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
75067         __alloc_dir.
75068         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
75069         from fdopendir if O_CLOEXEC is already set.
75070
75071 2011-03-15  Alan Modra  <amodra@gmail.com>
75072
75073         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
75074         l_tls_firstbyte_offset non-zero.  Save padding offset in
75075         l_tls_firstbyte_offset for later use.
75076         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
75077         freeing static tls block.
75078
75079 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
75080
75081         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
75082         where #ifdef was intended.  The intent is to prevent ARG_MAX from
75083         being defined by the kernel headers.
75084
75085 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
75086
75087         [BZ #12734]
75088         * resolv/resolv.h: Define RES_NOTLDQUERY.
75089         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
75090         no-tld-query and set RES_NOTLDQUERY.
75091         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
75092         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
75093         modern BIND to search name as TLD unless forbidden.
75094
75095 2011-05-07  Petr Baudis  <pasky@suse.cz>
75096             Ulrich Drepper  <drepper@gmail.com>
75097
75098         [BZ #12393]
75099         * elf/dl-load.c (fillin_rpath): Move trusted path check...
75100         (is_trusted_path): ...to here.
75101         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
75102         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
75103         using is_trusted_path_normalize() in setuid scripts.
75104
75105 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
75106
75107         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
75108         __BEGIN/__END_DECLS.
75109
75110 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
75111
75112         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
75113         NSS_STATUS_NOTFOUND if no record was found.
75114
75115 2011-05-05  Andreas Schwab  <schwab@redhat.com>
75116
75117         * sunrpc/Makefile (headers): Add rpc/netdb.h.
75118         (headers-not-in-tirpc): Remove rpc/netdb.h
75119         * resolv/netdb.h: Revert last change.
75120
75121 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
75122
75123         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
75124         circular dependency between libgcc.a and libc.a.
75125
75126 2011-05-05  Andreas Schwab  <schwab@redhat.com>
75127
75128         * resolv/netdb.h: Don't include <rpc/netdb.h>.
75129         * nis/Makefile: Don't install rpcsvc/*.
75130         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
75131         instead of <rpc/types.h>.
75132         (MAXHOSTNAMELEN): Define.
75133
75134 2011-05-03  Andreas Schwab  <schwab@redhat.com>
75135
75136         * elf/ldconfig.c (add_dir): Don't crash on empty path.
75137
75138 2011-04-28  Maciej Babinski  <mbabinski@google.com>
75139
75140         [BZ #12714]
75141         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
75142         gethostbyname4_r when IPv6 results are possible.
75143
75144 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
75145
75146         [BZ #12723]
75147         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
75148         _PC_PIPE_BUF handling.
75149
75150 2011-04-30  Bruno Haible  <bruno@clisp.org>
75151
75152         [BZ #12717]
75153         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
75154         * resolv/netdb.h (getnameinfo): Change type of flags parameter
75155         to 'int'.
75156         * inet/getnameinfo.c (getnameinfo): Likewise.
75157
75158 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
75159
75160         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
75161         to groups setting in database lookup.
75162         * nss/nsswitch.conf: Add initgroups entry.
75163
75164 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
75165
75166         [BZ #12685]
75167         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
75168         mode string.
75169         Patch by Eric Blake <eblake@redhat.com>.
75170
75171 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
75172
75173         * sunrpc/Makefile (need-export-routines): Add svc_run.
75174         (routines): Remove svc_run.
75175         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
75176         * sunrpc/clnt_perr.c (clnt_perrno): Export.
75177         * sunrpc/svc_run.c (svc_run): Likewise.
75178         * sunrpc/svc_udp.c (svcudp_create): Likewise.
75179
75180 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
75181
75182         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
75183         problem in reallocation in last patch.
75184
75185 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
75186
75187         * sunrpc/Makefile: Move inclusion of Rules.
75188
75189 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
75190
75191         * nss/nss_files/files-initgroups.c: New file.
75192         * nss/Makefile (libnss_files-routines): Add files-initgroups.
75193         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
75194         _nss_files_initgroups_dyn.
75195
75196 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
75197
75198         * elf/elf.h (R_ARM_IRELATIVE): Define.
75199
75200 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
75201
75202         * po/ru.po: Update from translation team.
75203
75204 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
75205
75206         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
75207         dependencies.
75208
75209 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
75210
75211         [BZ #12653]
75212         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
75213         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
75214         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
75215         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
75216         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
75217
75218 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
75219
75220         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
75221         differing bytes.
75222         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
75223         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
75224         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
75225
75226 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
75227
75228         [BZ #12420]
75229         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
75230         storing it.
75231         * stdlib/bug-getcontext.c: New file.
75232         * stdlib/Makefile: Add rules to build and run bug-getcontext.
75233
75234 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75235
75236         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
75237         instructions into .machine "z9-109".
75238         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
75239         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
75240
75241 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75242
75243         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
75244         between environment variables and auxiliary vector.
75245
75246 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
75247
75248         * Makefile: Add rules to build linkobj/libc.so.
75249         * include/libc-symbols.h: Define libc_hidden_nolink.
75250         * include/rpc/auth.h: Mark functions which are to be hidden.
75251         * include/rpc/auth_des.h: Likewise.
75252         * include/rpc/auth_unix.h: Likewise.
75253         * include/rpc/clnt.h: Likewise.
75254         * include/rpc/des_crypt.h: Likewise.
75255         * include/rpc/key_prot.h: Likewise.
75256         * include/rpc/pmap_clnt.h: Likewise.
75257         * include/rpc/pmap_prot.h: Likewise.
75258         * include/rpc/pmap_rmt.h: Likewise.
75259         * include/rpc/rpc_msg.h: Likewise.
75260         * include/rpc/svc.h: Likewise.
75261         * include/rpc/svc_auth.h: Likewise.
75262         * include/rpc/xdr.h: Likewise.
75263         * nis/Makefile: Link all DSOs against linkobj/libc.so.
75264         * nss/Makefile: Likewise.
75265         * sunrpc/Makefile: Don't install headers.  Build library with normal
75266         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
75267         * sunrpc/auth_des.c: Hide exported symbols by default, export some
75268         for the compat linking library.  Remove use of INTDEF/INTUSE.
75269         * sunrpc/auth_none.c: Likewise.
75270         * sunrpc/auth_unix.c: Likewise.
75271         * sunrpc/authdes_prot.c: Likewise.
75272         * sunrpc/authuxprot.c: Likewise.
75273         * sunrpc/clnt_gen.c: Likewise.
75274         * sunrpc/clnt_perr.c: Likewise.
75275         * sunrpc/clnt_raw.c: Likewise.
75276         * sunrpc/clnt_simp.c: Likewise.
75277         * sunrpc/clnt_tcp.c: Likewise.
75278         * sunrpc/clnt_udp.c: Likewise.
75279         * sunrpc/clnt_unix.c: Likewise.
75280         * sunrpc/des_crypt.c: Likewise.
75281         * sunrpc/des_soft.c: Likewise.
75282         * sunrpc/get_myaddr.c: Likewise.
75283         * sunrpc/key_call.c: Likewise.
75284         * sunrpc/key_prot.c: Likewise.
75285         * sunrpc/netname.c: Likewise.
75286         * sunrpc/pm_getmaps.c: Likewise.
75287         * sunrpc/pm_getport.c: Likewise.
75288         * sunrpc/pmap_clnt.c: Likewise.
75289         * sunrpc/pmap_prot.c: Likewise.
75290         * sunrpc/pmap_prot2.c: Likewise.
75291         * sunrpc/pmap_rmt.c: Likewise.
75292         * sunrpc/publickey.c: Likewise.
75293         * sunrpc/rpc_cmsg.c: Likewise.
75294         * sunrpc/rpc_common.c: Likewise.
75295         * sunrpc/rpc_dtable.c: Likewise.
75296         * sunrpc/rpc_prot.c: Likewise.
75297         * sunrpc/rpc_thread.c: Likewise.
75298         * sunrpc/rtime.c: Likewise.
75299         * sunrpc/svc.c: Likewise.
75300         * sunrpc/svc_auth.c: Likewise.
75301         * sunrpc/svc_authux.c: Likewise.
75302         * sunrpc/svc_raw.c: Likewise.
75303         * sunrpc/svc_run.c: Likewise.
75304         * sunrpc/svc_simple.c: Likewise.
75305         * sunrpc/svc_tcp.c: Likewise.
75306         * sunrpc/svc_udp.c: Likewise.
75307         * sunrpc/svc_unix.c: Likewise.
75308         * sunrpc/svcauth_des.c: Likewise.
75309         * sunrpc/xcrypt.c: Likewise.
75310         * sunrpc/xdr.c: Likewise.
75311         * sunrpc/xdr_array.c: Likewise.
75312         * sunrpc/xdr_float.c: Likewise.
75313         * sunrpc/xdr_intXX_t.c: Likewise.
75314         * sunrpc/xdr_mem.c: Likewise.
75315         * sunrpc/xdr_rec.c: Likewise.
75316         * sunrpc/xdr_ref.c: Likewise.
75317         * sunrpc/xdr_sizeof.c: Likewise.
75318         * sunrpc/xdr_stdio.c: Likewise.
75319
75320 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
75321
75322         [BZ #12650]
75323         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
75324         * sysdeps/ia64/dl-tls.h: Likewise.
75325         * sysdeps/powerpc/dl-tls.h: Likewise.
75326         * sysdeps/s390/dl-tls.h: Likewise.
75327         * sysdeps/sh/dl-tls.h: Likewise.
75328         * sysdeps/sparc/dl-tls.h: Likewise.
75329         * sysdeps/x86_64/dl-tls.h: Likewise.
75330         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
75331
75332 2011-03-14  Andreas Schwab  <schwab@redhat.com>
75333
75334         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
75335         rpath element also skip the following colon.
75336         (expand_dynamic_string_token): Add is_path parameter and pass
75337         down to DL_DST_REQUIRED and _dl_dst_substitute.
75338         (decompose_rpath): Call expand_dynamic_string_token with
75339         non-zero is_path.  Ignore empty rpaths.
75340         (_dl_map_object_from_fd): Call expand_dynamic_string_token
75341         with zero is_path.
75342
75343 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
75344
75345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
75346         Make cancelable.
75347
75348 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
75349
75350         [BZ #12655]
75351         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
75352         Patch by Filipe David Manana <fdmanana@apache.org>.
75353
75354 2011-04-07  Andreas Schwab  <schwab@redhat.com>
75355
75356         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
75357         Maintain aligned stack.
75358         (CHECK_RSP): Remove unused macro.
75359
75360 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
75361
75362         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
75363         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
75364
75365 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
75366
75367         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
75368
75369         * include/features.h: Mention __USE_XOPEN2K8 in comment.
75370
75371 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
75372
75373         [BZ #12518]
75374         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
75375         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
75376         * sysdeps/x86_64/memmove.c: New file.
75377         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
75378         (memcpy): Renamed to ...
75379         (__new_memcpy): This.
75380         (memcpy): Provide GLIBC_2_14 memcpy.
75381         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
75382         (memcpy): Provide GLIBC_2_2_5 memcpy.
75383
75384 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75385
75386         [BZ #12631]
75387         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
75388
75389 2011-03-30  Andreas Schwab  <schwab@redhat.com>
75390
75391         * misc/syncfs.c: New file.
75392         * misc/Makefile (routines): Add syncfs.
75393         * posix/unistd.h: Declare syncfs.
75394         * sysdeps/unix/syscalls.list: Add syncfs.
75395
75396 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75397
75398         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
75399         open_by_handle_at.
75400         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
75401         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75402         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75403         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75404         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75405         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
75406         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75407
75408 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75409
75410         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
75411         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75412         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
75413         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75414         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75415         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75416         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75417
75418         * io/Makefile: Compile fallocate.c, fallocate64.c, and
75419         sync_file_range.c with -fexceptions.
75420         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
75421         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
75422         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
75423         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
75424         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
75425         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
75426         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
75427         sync_file_range as cancellation point
75428         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
75429         now a wrapper around __call_sync_file_range with cancellation handling.
75430         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
75431         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
75432         function name to __call_sync_file_range.
75433         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
75434         Add call_sync_file_range.
75435
75436 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75437
75438         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75439         bits/timex.h.
75440
75441 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75442
75443         * iconv/iconv.h: Fix typo in comment.
75444         * io/fcntl.h: Likewise.
75445         * libio/stdio.h: Likewise.
75446         * posix/spawn.h: Likewise.
75447         * posix/unistd.h: Likewise.
75448         * stdlib/stdlib.h: Likewise.
75449         * time/time.h: Likewise.
75450         * wcsmbs/wchar.h: Likewise.
75451
75452         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
75453         open_by_handle): Add.
75454         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
75455         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
75456         Augment a few comments.
75457         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75458         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75459         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75460         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75461         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75462         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
75463         open_by_handle.
75464
75465         * io/fcntl.h (AT_EMPTY_PATH): Define.
75466
75467 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
75468
75469         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
75470         * sysdeps/unix/sysv/linux/bits/time.h: New file.
75471         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
75472         to...
75473         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
75474         * Versions.def: Add GLIBC_2.14.
75475         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
75476         Export.
75477
75478 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
75479
75480         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
75481         round counter.
75482         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75483
75484 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
75485
75486         [BZ #12597]
75487         * string/test-strncmp.c (do_page_test): New function.
75488         (check2): Likewise.
75489         (test_main): Call check2.
75490         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
75491
75492 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
75493
75494         [BZ #12587]
75495         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
75496         Handle cache information in CPU leaf 4.
75497         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75498
75499 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
75500
75501         [BZ #12583]
75502         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
75503         character representation.
75504         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
75505
75506 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
75507
75508         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
75509         END(__isnan) to END(__isnanf) to match function entry point/label
75510         EALIGN(__isnanf,...).
75511
75512 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
75513
75514         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
75515
75516 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
75517
75518         [BZ #12510]
75519         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
75520         copy from the symbol referenced in the relocation to initialize the
75521         used variable.
75522         Patch by Piotr Bury <pbury@goahead.com>.
75523         * elf/Makefile: Add rules to build and tst-unique3.
75524         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
75525         * elf/tst-unique3.cc: New file.
75526         * elf/tst-unique3.h: New file.
75527         * elf/tst-unique3lib.cc: New file.
75528         * elf/tst-unique3lib2.cc: New file.
75529
75530         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
75531
75532 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
75533
75534         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
75535         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
75536         to _start.
75537
75538 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
75539
75540         * elf/dl-load.c (_dl_map_object): If we are looking for the first
75541         to-be-loaded object along a path to loader is ld.so.
75542
75543 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75544             Ulrich Drepper  <drepper@gmail.com>
75545
75546         * sysdeps/x86_64/memset.S: After aligning destination, code
75547         branches to different locations depending on the value of
75548         misalignment, when multiarch is enabled. Fix this.
75549
75550 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75551
75552         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
75553         Set _x86_64_preferred_memory_instruction for AMD processsors.
75554         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75555         Set bit_Prefer_SSE_for_memop for AMD processors.
75556
75557 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
75558
75559         * libio/fmemopen.c (fmemopen): Optimize a bit.
75560
75561 2011-03-03  Andreas Schwab  <schwab@redhat.com>
75562
75563         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
75564
75565 2011-03-03  Roland McGrath  <roland@redhat.com>
75566
75567         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
75568
75569 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
75570
75571         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
75572         __bzero_ultra1 instead of __memset_ultra1.
75573
75574 2011-02-23  Andreas Schwab  <schwab@redhat.com>
75575             Ulrich Drepper  <drepper@gmail.com>
75576
75577         [BZ #12509]
75578         * include/link.h (struct link_map): Add l_orig_initfini.
75579         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
75580         returning unsuccessfully.
75581         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
75582         close of a file loaded at startup, restore the original l_initfini
75583         list.
75584         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
75585         list, store the pointer.
75586         * elf/Makefile ($(objpfx)noload-mem): New rule.
75587         (noload-ENV): Define.
75588         (tests): Add $(objpfx)noload-mem.
75589         * elf/noload.c: Include <memcheck.h>.
75590         (main): Call mtrace.  Close all opened handles.
75591
75592 2011-02-17  Andreas Schwab  <schwab@redhat.com>
75593
75594         [BZ #12454]
75595         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
75596         dependencies are missing.
75597
75598 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75599
75600         Fix __if_freereq crash: Unlike the generic version which uses free,
75601         Hurd needs munmap.
75602         * sysdeps/mach/hurd/ifreq.h: New file.
75603
75604 2011-01-27  Petr Baudis  <pasky@suse.cz>
75605             Ulrich Drepper  <drepper@gmail.com>
75606
75607         [BZ 12445]#
75608         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
75609         to extend_alloca().
75610         * stdio-common/bug23.c: New file.
75611         * stdio-common/Makefile (tests): Add bug23.
75612
75613 2010-09-28  Andreas Schwab  <schwab@redhat.com>
75614             Ulrich Drepper  <drepper@gmail.com>
75615
75616         [BZ #12489]
75617         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
75618         before performing relro protection.  At old place add assertion
75619         to make sure nothing changed.
75620
75621 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
75622             Glauber de Oliveira Costa  <glommer@gmail.com>
75623
75624         * elf/elf.h: Add new ARM TLS relocs.
75625
75626 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
75627
75628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
75629         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
75630         cast from r3.
75631         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
75632         'tests' variable.
75633         * sysdeps/wordsize-64/tst-writev.c: New file.
75634
75635 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
75636
75637         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
75638         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
75639         insns in _dl_start to prevent a TOC reference before relocs are
75640         resolved.
75641
75642 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
75643
75644         [BZ #12469]
75645         * Makeconfig: Remove RANLIB definition.
75646         * Makerules: Don't use RANLIB.
75647         * aclocal.m4: Remove ranlib test.
75648         * configure.in: No need to check for ranlib.
75649         * elf/rtld-Rules: Don't use RANLIB.
75650
75651 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75652
75653         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
75654         protection macro.
75655         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
75656         inclusion protection macro.
75657
75658         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
75659         SIGRTMIN and SIGRTMAX and print information in that case only when
75660         SIGRTMIN is defined.
75661
75662 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
75663
75664         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
75665         arginfo fn returning -1.
75666
75667         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
75668         and thousands string is zero terminated.
75669
75670 2011-02-03  Andreas Schwab  <schwab@redhat.com>
75671
75672         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
75673         sysdeps/unix/sysv/linux/bits/socket.h.
75674
75675 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75676
75677         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
75678         (__CPU_COUNT): Remove old macros.
75679         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
75680         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
75681         (__CPU_ALLOC, __CPU_FREE): Add macros.
75682         (__sched_cpualloc, __sched_cpufree): Add declarations.
75683
75684 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
75685
75686         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
75687         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
75688         * nscd/aicache.c (addhstaiX): Return timeout of added value.
75689         (readdhstai): Return value of addhstaiX call.
75690         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
75691         (addgrbyX): Return value returned by cache_addgr.
75692         (readdgrbyname): Return value returned by addgrbyX.
75693         (readdgrbygid): Likewise.
75694         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
75695         (addpwbyX): Return value returned by cache_addpw.
75696         (readdpwbyname): Return value returned by addhstbyX.
75697         (readdpwbyuid): Likewise.
75698         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
75699         (addservbyX): Return value returned by cache_addserv.
75700         (readdservbyname): Return value returned by addservbyX:
75701         (readdservbyport): Likewise.
75702         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
75703         (addhstbyX): Return value returned by cache_addhst.
75704         (readdhstbyname): Return value returned by addhstbyX.
75705         (readdhstbyaddr): Likewise.
75706         (readdhstbynamev6): Likewise.
75707         (readdhstbyaddrv6): Likewise.
75708         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
75709         (readdinitgroups): Return value returned by addinitgroupsX.
75710         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
75711         (prune_cache): Keep track of timeout value of re-added entries.
75712         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
75713         * nscd/nscd.h: Adjust prototypes of readd* functions.
75714
75715 2011-02-04  Roland McGrath  <roland@redhat.com>
75716
75717         * nis/nis_server.c (nis_servstate): Use the right name for 0.
75718         (nis_stats): Likewise.
75719         * nis/nis_modify.c (nis_modify): Likewise.
75720         * nis/nis_remove.c (nis_remove): Likewise.
75721         * nis/nis_add.c (nis_add): Likewise.
75722
75723         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
75724
75725         * posix/fnmatch_loop.c: Add some consts.
75726
75727         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
75728
75729 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
75730
75731         [BZ #12460]
75732         * config.make.in (config-cflags-novzeroupper): Define.
75733         * configure.in: Substitute libc_cv_cc_novzeroupper.
75734         * elf/Makefile (AVX-CFLAGS): Define.
75735         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
75736         (CFLAGS-tst-auditmod4a.c): Likewise.
75737         (CFLAGS-tst-auditmod4b.c): Likewise.
75738         (CFLAGS-tst-auditmod6b.c): Likewise.
75739         (CFLAGS-tst-auditmod6c.c): Likewise.
75740         (CFLAGS-tst-auditmod7b.c): Likewise.
75741         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
75742
75743 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
75744
75745         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
75746         function to the callback.
75747         Patch partly by Jiri Olsa <jolsa@redhat.com>.
75748
75749 2011-02-02  Andreas Schwab  <schwab@redhat.com>
75750
75751         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
75752         of errno.
75753
75754 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
75755
75756         [BZ #11724]
75757         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
75758         of constructors.
75759         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
75760         of destructors.
75761         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
75762
75763         [BZ #11724]
75764         * elf/Makefile: Add rules to build and run new test.
75765         * elf/tst-initorder.c: New file.
75766         * elf/tst-initorder.exp: New file.
75767         * elf/tst-initordera1.c: New file.
75768         * elf/tst-initordera2.c: New file.
75769         * elf/tst-initordera3.c: New file.
75770         * elf/tst-initordera4.c: New file.
75771         * elf/tst-initorderb1.c: New file.
75772         * elf/tst-initorderb2.c: New file.
75773         * elf/tst-order-a1.c: New file.
75774         * elf/tst-order-a2.c: New file.
75775         * elf/tst-order-a3.c: New file.
75776         * elf/tst-order-a4.c: New file.
75777         * elf/tst-order-b1.c: New file.
75778         * elf/tst-order-b2.c: New file.
75779         * elf/tst-order-main.c: New file.
75780         New test case by George Gensure <werkt0@gmail.com>.
75781
75782 2010-10-01  Andreas Schwab  <schwab@redhat.com>
75783
75784         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
75785         decoding ACE if AI_CANONIDN.
75786
75787 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
75788
75789         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
75790
75791 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
75792
75793         * version.h (RELEASE): Bump for 2.13 release.
75794         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
75795
75796         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
75797
75798         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
75799         MADV_NOHUGEPAGE.
75800         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
75801         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
75802         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
75803         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
75804         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
75805         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75806
75807         * posix/getconf.c: Update copyright year.
75808         * catgets/gencat.c: Likewise.
75809         * csu/version.c: Likewise.
75810         * debug/catchsegv.sh: Likewise.
75811         * debug/xtrace.sh: Likewise.
75812         * elf/ldconfig.c: Likewise.
75813         * elf/ldd.bash.in: Likewise.
75814         * elf/sprof.c (print_version): Likewise.
75815         * iconv/iconv_prog.c: Likewise.
75816         * iconv/iconvconfig.c: Likewise.
75817         * locale/programs/locale.c: Likewise.
75818         * locale/programs/localedef.c: Likewise.
75819         * malloc/memusage.sh: Likewise.
75820         * malloc/mtrace.pl: Likewise.
75821         * nscd/nscd.c (print_version): Likewise.
75822         * nss/getent.c: Likewise.
75823
75824         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
75825         PF_CAIF, and PF_ALG.
75826         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75827
75828 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
75829
75830         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
75831         (modules-names): Use them.
75832         (ifunc-test-modules, ifunc-pie-tests): Define.
75833         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
75834         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
75835         (test-extras): Likewise.
75836         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
75837         $(compile-command.c).
75838         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
75839         (all-built-dso): Define.
75840         (check-textrel.out, check-execstack.out): Depend on it.
75841
75842         * configure.in: Don't override --enable-multi-arch.
75843
75844 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
75845
75846         [BZ #6812]
75847         * nscd/hstcache.c (tryagain): Define.
75848         (cache_addhst): Return tryagain not notfound for temporary errors.
75849         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
75850         failed.
75851
75852 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
75853
75854         [BZ #10563]
75855         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
75856         to make the syscall.
75857         * sysdeps/unix/sysv/linux/setgroups.c: New file.
75858
75859         [BZ #12378]
75860         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
75861         and fall back to matching as normal character if the string ends before
75862         the matching ']' is found.  This is what POSIX requires.
75863         * posix/testfnm.c: Adjust test result.
75864         * posix/globtest.sh: Adjust test result.  Add new test.
75865         * posix/tst-fnmatch.input: Likewise.
75866         * posix/tst-fnmatch2.c: Add new test.
75867
75868 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
75869
75870         * elf/Makefile (check-execstack): Revert last change.  Depend on
75871         check-execstack.h.
75872         (check-execstack.h): New target.
75873         (generated): Add check-execstack.h.
75874         * elf/check-execstack.c: Include "check-execstack.h".
75875         (main): Revert last change.
75876         (handle_file): Return zero if GNU_STACK is absent and
75877         DEFAULT_STACK_PERMS doesn't include PF_X.
75878
75879 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
75880
75881         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
75882         in child fails because the descriptor is already closed.
75883         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
75884         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
75885         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
75886
75887         [BZ #12397]
75888         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
75889         syscall.
75890
75891         [BZ #10484]
75892         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
75893         temporary buffer used to handle multi lookups locally.
75894         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
75895
75896 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75897
75898         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
75899         loader is ld.so.
75900
75901 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
75902
75903         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
75904         alignment for SSE2.
75905
75906 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75907
75908         [BZ #12394]
75909         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
75910         characters.  When rounding increased number of integer digits recompute
75911         number of groups.
75912         * stdio-common/tst-grouping.c: New file.
75913         * stdio-common/Makefile: Add rules to build and run tst-grouping.
75914
75915 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
75916
75917         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
75918         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
75919
75920         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
75921         void.
75922         * bits/select.h: Likewise.
75923
75924 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
75925
75926         * po/ja.po: Update from translation team.
75927
75928 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
75929
75930         [BZ #11155]
75931         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
75932         implementation just like for lxstat, fxstatat, et al.
75933
75934 2010-12-27  Jim Meyering  <meyering@redhat.com>
75935
75936         [BZ #12348]
75937         * posix/regexec.c (build_trtable): Return failure indication upon
75938         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
75939
75940 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
75941
75942         [BZ #12201]
75943         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
75944         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
75945         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
75946         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
75947
75948         [BZ #12207]
75949         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
75950
75951         [BZ #12204]
75952         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
75953         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
75954
75955 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
75956
75957         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
75958         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
75959         script has SORT_BY_INIT_PRIORITY.
75960         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
75961         NO_CTORS_DTORS_SECTIONS is defined.
75962         * elf/soinit.c: Likewise.
75963         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
75964         NO_CTORS_DTORS_SECTIONS is defined.
75965         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
75966         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
75967         * sysdeps/sh/init-first.c: Likewise.
75968         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
75969
75970 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
75971
75972         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
75973         always use the slow path.
75974
75975 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
75976
75977         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
75978         similar rule which adds the sysdep directories to the header search in
75979         order to pick up the correct platform stackinfo.h.
75980         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
75981         perform test if it is, otherwise return successfully without testing.
75982         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
75983         DEFAULT_STACK_PERMS define in stackinfo.h.
75984         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
75985         defined in stackinfo.h.
75986         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
75987         DEFAULT_STACK_PERMS defined in stackinfo.h.
75988         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
75989         * sysdeps/ia64/stackinfo.h: Likewise.
75990         * sysdeps/s390/stackinfo.h: Likewise.
75991         * sysdeps/sh/stackinfo.h: Likewise.
75992         * sysdeps/sparc/stackinfo.h: Likewise.
75993         * sysdeps/x86_64/stackinfo.h: Likewise.
75994         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
75995         PF_X for powerpc64.  Retain PF_X for powerpc32.
75996
75997 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
75998
75999         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
76000         accurately.
76001         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
76002         GETDENTS_64BIT_ALIGNED.
76003
76004 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
76005
76006         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
76007
76008 2010-12-10  Andreas Schwab  <schwab@redhat.com>
76009
76010         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
76011         _GNU_SOURCE.
76012
76013         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
76014         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
76015         Remove __restrict.
76016         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
76017         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
76018
76019 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
76020
76021         [BZ #11655]
76022         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
76023         are initialized.
76024
76025 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
76026
76027         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
76028
76029 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
76030
76031         * po/it.po: Update from translation team.
76032
76033 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
76034
76035         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
76036         unused codes.
76037
76038 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
76039
76040         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
76041
76042 2010-11-24  Andreas Schwab  <schwab@redhat.com>
76043
76044         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
76045         specially.
76046         (gaih_getanswer_slice): Likewise.
76047
76048 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
76049
76050         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
76051
76052 2010-05-31  Petr Baudis  <pasky@suse.cz>
76053
76054         [BZ #11149]
76055         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
76056         silently even in the chroot mode.
76057
76058 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
76059
76060         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
76061         last patch a bit.  Pretty printing
76062
76063 2010-05-31  Petr Baudis <pasky@suse.cz>
76064
76065         [BZ #10085]
76066         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
76067         initialization of skip_initgroups_dyn.
76068
76069 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
76070
76071         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
76072         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
76073
76074 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
76075
76076         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
76077
76078 2010-11-11  Andreas Schwab  <schwab@redhat.com>
76079
76080         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
76081         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
76082         (tst-fnmatch-ENV): Set MALLOC_TRACE.
76083         ($(objpfx)tst-fnmatch-mem): New rule.
76084         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
76085         * posix/tst-fnmatch.c (main): Call mtrace.
76086
76087 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
76088
76089         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76090         Support Intel processor model 6 and model 0x2c.
76091
76092 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
76093
76094         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
76095           signed comparison.
76096
76097 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
76098
76099         [BZ #12205]
76100         * string/test-strncasecmp.c (check_result): New function.
76101         (do_one_test): Use it.
76102         (check1): New function.
76103         (test_main): Use it.
76104         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
76105         Support strcasecmp and strncasecmp.
76106
76107 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
76108
76109         [BZ #12194]
76110         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
76111         * sysdeps/x86_64/bits/byteswap.h: Likewise.
76112
76113 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
76114
76115         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
76116         IFUNC support.
76117         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76118         memset-x86-64.
76119         * sysdeps/x86_64/multiarch/bzero.S: New file.
76120         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
76121         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
76122         * sysdeps/x86_64/multiarch/memset.S: New file.
76123         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
76124         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76125         Set bit_Prefer_SSE_for_memop for Intel processors.
76126         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
76127         Define.
76128         (index_Prefer_SSE_for_memop): Define.
76129         (HAS_PREFER_SSE_FOR_MEMOP): Define.
76130
76131 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
76132
76133         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
76134         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
76135
76136 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
76137
76138         [BZ #12191]
76139         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
76140         (__x86_64_raw_data_cache_size_half): Likewise.
76141         (__x86_64_raw_shared_cache_size): Likewise.
76142         (__x86_64_raw_shared_cache_size_half): Likewise.
76143
76144         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
76145         (__x86_64_raw_data_cache_size_half): Likewise.
76146         (__x86_64_raw_shared_cache_size): Likewise.
76147         (__x86_64_raw_shared_cache_size_half): Likewise.
76148         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
76149         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
76150         and __x86_64_raw_shared_cache_size_half.  Round
76151         __x86_64_data_cache_size_half, __x86_64_data_cache_size
76152         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
76153         to multiple of 256 bytes.
76154
76155 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
76156
76157         [BZ #12167]
76158         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
76159         of inacessible symlinks.  Verify result of symlink before returning it.
76160         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
76161         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
76162
76163 2010-10-28  Erich Ritz  <erichritz@gmail.com>
76164
76165         * math/math.h (isinf): Fix typo in comment.
76166
76167 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
76168
76169         * po/da.po: Update from translation team.
76170
76171 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
76172
76173         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
76174         is added to the list.
76175
76176 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76177             Ulrich Drepper  <drepper@gmail.com>
76178
76179         * elf/dl-object.c (_dl_new_object): Don't append the new object to
76180         the global list here.  Move code to...
76181         (_dl_add_to_namespace_list): ...here.  New function.
76182         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
76183         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
76184         * elf/dl-load.c (lose): Don't remove the element from the list.
76185         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
76186         (_dl_map_object): Likewise.
76187
76188 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
76189
76190         [BZ #12159]
76191         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
76192         into all bytes of SSE register.
76193         Patch by Richard Li <richardpku@gmail.com>.
76194
76195 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
76196
76197         [BZ #12140]
76198         * malloc/malloc.c (_int_free): Fill correct number of bytes when
76199         perturbing.
76200
76201 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
76202
76203         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
76204         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
76205         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
76206         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
76207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
76208         submachine.
76209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
76210
76211 2010-10-22  Andreas Schwab  <schwab@redhat.com>
76212
76213         * include/dlfcn.h (__RTLD_SECURE): Define.
76214         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
76215         mode & __RTLD_SECURE instead.
76216         (open_path): Rename preloaded parameter to secure.
76217         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
76218         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
76219         * elf/dl-deps.c (openaux): Likewise.
76220         * elf/rtld.c (struct map_args): Remove is_preloaded.
76221         (map_doit): Don't use it.
76222         (dl_main): Likewise.
76223         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
76224         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
76225
76226 2010-09-09  Andreas Schwab  <schwab@redhat.com>
76227
76228         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
76229         (sysd-rules-targets): Remove duplicates.
76230         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
76231         rtld-%.$o dependency.
76232
76233 2010-10-18  Andreas Schwab  <schwab@redhat.com>
76234
76235         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
76236         _dl_map_object do it.
76237
76238 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
76239
76240         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
76241         fast fma builtins, define the macros in the C99 standard.
76242         (FP_FAST_FMAF): Likewise.
76243         (FP_FAST_FMAL): Likewise.
76244         * sysdeps/x86_64/bits/mathdef.h: Likewise.
76245
76246         * bits/mathdef.h: Update copyright year.
76247         * sysdeps/powerpc/bits/mathdef.h: Likewise.
76248
76249 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
76250
76251         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
76252         builtins, define the macros in the C99 standard.
76253         (FP_FAST_FMAF): Likewise.
76254         (FP_FAST_FMAL): Likewise.
76255         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
76256         multiply/add.
76257         (FP_FAST_FMAF): Likewise.
76258
76259 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
76260
76261         [BZ #3268]
76262         * math/libm-test.inc (fma_test): Some new testcases.
76263         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
76264         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
76265         y and infinite z.  Do multiplication by C already in long double.
76266         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
76267         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
76268         y and infinite z.  Do bitwise or of inexact bit into u.d.
76269         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
76270         * sysdeps/i386/fpu/s_fmaf.S: Removed.
76271         * sysdeps/i386/fpu/s_fma.S: Removed.
76272         * sysdeps/i386/fpu/s_fmal.S: Removed.
76273
76274 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
76275
76276         [BZ #3268]
76277         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
76278         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
76279         computation is not scheduled after fetestexcept.  Fix value
76280         of minimum denormal long double.
76281
76282 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
76283
76284         [BZ #3268]
76285         * math/libm-test.inc (fma_test): Add some more tests.
76286         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
76287         correctly.
76288
76289 2010-10-15  Andreas Schwab  <schwab@redhat.com>
76290
76291         * scripts/data/localplt-s390-linux-gnu.data: New file.
76292         * scripts/data/localplt-s390x-linux-gnu.data: New file.
76293
76294 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
76295
76296         [BZ #3268]
76297         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
76298         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
76299         instead of dbl-64.
76300         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
76301         inlines.
76302         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
76303         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
76304         if one of x and y is very large and the other is subnormal.
76305         * sysdeps/s390/fpu/s_fmaf.c: New file.
76306         * sysdeps/s390/fpu/s_fma.c: New file.
76307         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
76308         * sysdeps/powerpc/fpu/s_fma.S: New file.
76309         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
76310         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
76311         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
76312
76313 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
76314
76315         [BZ #3268]
76316         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
76317         fma tests.
76318         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
76319         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
76320         * sysdeps/i386/i686/multiarch/s_fma.c: Include
76321         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
76322         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
76323         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
76324         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
76325
76326 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
76327
76328         [BZ #12078]
76329         * posix/regcomp.c (parse_branch): One more memory leak plugged.
76330         * posix/bug-regex31.input: Add test case.
76331
76332 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76333
76334         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
76335         * posix/bug-regex31.input: New file.
76336
76337         [BZ #12078]
76338         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
76339         (parse_sub_exp): Fix last change, use postorder.
76340
76341         * posix/bug-regex31.c: New file.
76342         * posix/Makefile: Add rules to build and run bug-regex31.
76343
76344         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
76345
76346         [BZ #12078]
76347         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
76348
76349         [BZ #12108]
76350         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
76351         to have entries in sys_siglist.
76352
76353         [BZ #12093]
76354         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
76355         be NULL.
76356
76357 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
76358
76359         [BZ #3268]
76360         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
76361         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
76362         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
76363         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
76364         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
76365         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
76366         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
76367         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
76368         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
76369         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
76370         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
76371         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
76372         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
76373         * math/ftestexcept.c (fetestexcept): Likewise.
76374         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
76375         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
76376         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
76377         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
76378         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
76379         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
76380         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
76381
76382 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76383
76384         [BZ #12107]
76385         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
76386         newline.
76387
76388 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
76389
76390         * string/bug-strstr1.c: New file.
76391         * string/Makefile: Add rules to build and run bug-strstr1.
76392
76393 2010-10-05  Eric Blake  <eblake@redhat.com>
76394
76395         [BZ #12092]
76396         * string/str-two-way.h (two_way_long_needle): Always clear memory
76397         when skipping input due to the shift table.
76398
76399 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
76400
76401         [BZ #12005]
76402         * malloc/mcheck.c: Handle large requests.
76403
76404         [BZ #12077]
76405         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
76406         for strncmp and strncasecmp.
76407         * string/stratcliff.c: Add tests for strcmp and strncmp.
76408         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
76409
76410 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
76411
76412         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
76413         __set_fpscr.
76414
76415 2010-09-30  Andreas Jaeger  <aj@suse.de>
76416
76417         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
76418         (CGROUP_SUPER_MAGIC): Define.
76419         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76420         Handle btrfs and cgroup file systems.
76421         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
76422         Likewise.
76423
76424 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
76425
76426         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
76427         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
76428
76429 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76430
76431         [BZ #12067]
76432         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
76433         trying to locate the ELF header.
76434
76435 2010-09-27  Andreas Schwab  <schwab@redhat.com>
76436
76437         [BZ #11611]
76438         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
76439         Mask out sign-bit copies when constructing f_fsid.
76440
76441 2010-09-24  Petr Baudis <pasky@suse.cz>
76442
76443         * debug/stack_chk_fail_local.c: Add missing licence exception.
76444         * debug/warning-nop.c: Likewise.
76445
76446 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
76447
76448         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
76449         implementing getdents64 using getdents syscall, set d_type if
76450         __ASSUME_GETDENTS32_D_TYPE.
76451
76452 2010-09-16  Andreas Schwab  <schwab@redhat.com>
76453
76454         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
76455         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
76456
76457 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
76458
76459         [BZ #12037]
76460         * posix/unistd.h: Undo change of feature selection for ftruncate from
76461         2010-01-11.
76462
76463 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
76464
76465         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
76466         detection.
76467
76468 2010-09-20  Andreas Schwab  <schwab@redhat.com>
76469
76470         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
76471         fanotify_mark.
76472         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76473
76474 2010-09-14  Andreas Schwab  <schwab@redhat.com>
76475
76476         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
76477         variables after CHECK_SP call.
76478         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
76479
76480 2010-09-13  Andreas Schwab  <schwab@redhat.com>
76481             Ulrich Drepper  <drepper@redhat.com>
76482
76483         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
76484         re-relocationg ld.so.
76485         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
76486         _dl_init_paths call.
76487         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
76488         here anymore.
76489
76490 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
76491
76492         * resolv/res_init.c (__res_vinit): Count the default server we added.
76493
76494 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
76495             Ulrich Drepper  <drepper@redhat.com>
76496
76497         [BZ #11968]
76498         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
76499         (____longjmp_chk): Use %ebx for saving value across system call.
76500         Add unwind info.
76501
76502 2010-09-06  Andreas Schwab  <schwab@redhat.com>
76503
76504         * manual/Makefile: Don't mix pattern rules with normal rules.
76505
76506 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
76507
76508         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
76509         operation.
76510         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
76511         * libio/iofopncook.c (_IO_cookie_init): Likewise.
76512         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
76513         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
76514         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
76515         Likewise.
76516
76517 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
76518
76519         [BZ #11979]
76520         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
76521         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
76522
76523 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
76524
76525         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
76526         * sysdeps/x86_64/addmul_1.S: Likewise.
76527         * sysdeps/x86_64/lshift.S: Likewise.
76528         * sysdeps/x86_64/mul_1.S: Likewise.
76529         * sysdeps/x86_64/rshift.S: Likewise.
76530         * sysdeps/x86_64/sub_n.S: Likewise.
76531         * sysdeps/x86_64/submul_1.S: Likewise.
76532
76533 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76534
76535         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
76536         Define __sched_param instead of SCHED_* and sched_param when
76537         <bits/sched.h> is included with __need_schedparam defined.
76538         * bits/sched.h [__need_schedparam]
76539         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
76540         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
76541         (__defined_schedparam): Define to 1.
76542         (__sched_param): New structure, identical to sched_param.
76543         (__need_schedparam): Undefine.
76544
76545 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
76546
76547         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
76548         (epoll_create1): Declare.
76549
76550         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
76551
76552 2010-08-31  Andreas Schwab  <schwab@redhat.com>
76553
76554         [BZ #7066]
76555         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
76556         shifting retval into place.
76557
76558 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
76559
76560         * nis/rpcsvc/nis.h: Update copyright notice.
76561         * nis/rpcsvc/nis.x: Likewise.
76562         * nis/rpcsvc/nis_callback.h: Likewise.
76563         * nis/rpcsvc/nis_callback.x: Likewise.
76564         * nis/rpcsvc/nis_object.x: Likewise.
76565         * nis/rpcsvc/nis_tags.h: Likewise.
76566         * nis/rpcsvc/yp.h: Likewise.
76567         * nis/rpcsvc/yp.x: Likewise.
76568         * nis/rpcsvc/ypupd.h: Likewise.
76569         * nis/yp_xdr.c: Likewise.
76570         * nis/ypupdate_xdr.c: Likewise.
76571
76572         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
76573         mainly the body of pmap_getport.  Add parameters to specify timeouts.
76574         (pmap_getport): Use __libc_rpc_getport.
76575         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
76576         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
76577         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
76578
76579 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
76580
76581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
76582         fanotify_mark.
76583
76584 2010-08-27  Roland McGrath  <roland@redhat.com>
76585
76586         * sysdeps/i386/i686/multiarch/Makefile
76587         (CFLAGS-varshift.c): New variable.
76588
76589 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
76590
76591         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
76592         * sysdeps/i386/i686/multiarch/varshift.c: New file.
76593
76594         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
76595
76596         * sysdeps/x86_64/strlen.S: Minimal code improvement.
76597
76598 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
76599
76600         * sysdeps/x86_64/strlen.S: Unroll the loop.
76601         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76602         strlen-sse2 strlen-sse2-bsf.
76603         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
76604         __strlen_no_bsf if bit_Slow_BSF is set.
76605         (__strlen_sse42): Removed.
76606         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
76607         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
76608
76609 2010-08-25  Roland McGrath  <roland@redhat.com>
76610
76611         * sysdeps/x86_64/multiarch/varshift.S: File removed.
76612         * sysdeps/x86_64/multiarch/varshift.c: New file.
76613         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
76614         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
76615         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
76616         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
76617
76618 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
76619
76620         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76621         strlen-sse2 strlen-sse2-bsf.
76622         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
76623         __strlen_sse2_bsf if bit_Slow_BSF is unset.
76624         (__strlen_sse2): Removed.
76625         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
76626         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
76627         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
76628         bit_Slow_BSF for Atom.
76629         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
76630         (index_Slow_BSF): Define.
76631         (HAS_SLOW_BSF): Define.
76632
76633 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
76634
76635         [BZ #10851]
76636         * resolv/res_init.c (__res_vinit): When no server address at all
76637         is given default to loopback.
76638
76639 2010-08-24  Roland McGrath  <roland@redhat.com>
76640
76641         * configure.in: Remove config-name.h generation.
76642         * configure: Regenerated.
76643         * config-name.in: File removed.
76644         * scripts/config-uname.sh: New file.
76645         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
76646         ($(objdir)config-name.h): New target.
76647
76648         * sunrpc/rpc_parse.h: Avoid nested comment.
76649
76650 2010-08-24  Richard Henderson  <rth@redhat.com>
76651             Ulrich Drepper  <drepper@redhat.com>
76652             H.J. Lu  <hongjiu.lu@intel.com>
76653
76654         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
76655         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
76656         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
76657         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
76658         _mm_alignr_epi8 with _mm_loadu_si128.
76659         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
76660         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
76661         (__m128i_shift_right): Removed.
76662         * sysdeps/i386/i686/multiarch/varshift.h: New file.
76663         * sysdeps/i386/i686/multiarch/varshift.S: New file.
76664         * sysdeps/x86_64/multiarch/varshift.h: New file.
76665         * sysdeps/x86_64/multiarch/varshift.S: New file.
76666
76667 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
76668
76669         * configure.in: Move assembler checks to before sysdep dir checking.
76670
76671 2010-08-20  Petr Baudis  <pasky@suse.cz>
76672
76673         * LICENSES: Sync the sunrpc license.
76674
76675 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
76676
76677         * sunrpc/auth_des.c: Update copyright notice once again.
76678         * sunrpc/auth_none.c: Likewise.
76679         * sunrpc/auth_unix.c: Likewise.
76680         * sunrpc/authdes_prot.c: Likewise.
76681         * sunrpc/authuxprot.c: Likewise.
76682         * sunrpc/bindrsvprt.c: Likewise.
76683         * sunrpc/clnt_gen.c: Likewise.
76684         * sunrpc/clnt_perr.c: Likewise.
76685         * sunrpc/clnt_raw.c: Likewise.
76686         * sunrpc/clnt_simp.c: Likewise.
76687         * sunrpc/clnt_tcp.c: Likewise.
76688         * sunrpc/clnt_udp.c: Likewise.
76689         * sunrpc/clnt_unix.c: Likewise.
76690         * sunrpc/des_crypt.c: Likewise.
76691         * sunrpc/des_soft.c: Likewise.
76692         * sunrpc/get_myaddr.c: Likewise.
76693         * sunrpc/getrpcport.c: Likewise.
76694         * sunrpc/key_call.c: Likewise.
76695         * sunrpc/key_prot.c: Likewise.
76696         * sunrpc/openchild.c: Likewise.
76697         * sunrpc/pm_getmaps.c: Likewise.
76698         * sunrpc/pm_getport.c: Likewise.
76699         * sunrpc/pmap_clnt.c: Likewise.
76700         * sunrpc/pmap_prot.c: Likewise.
76701         * sunrpc/pmap_prot2.c: Likewise.
76702         * sunrpc/pmap_rmt.c: Likewise.
76703         * sunrpc/rpc/auth.h: Likewise.
76704         * sunrpc/rpc/auth_unix.h: Likewise.
76705         * sunrpc/rpc/clnt.h: Likewise.
76706         * sunrpc/rpc/des_crypt.h: Likewise.
76707         * sunrpc/rpc/key_prot.h: Likewise.
76708         * sunrpc/rpc/netdb.h: Likewise.
76709         * sunrpc/rpc/pmap_clnt.h: Likewise.
76710         * sunrpc/rpc/pmap_prot.h: Likewise.
76711         * sunrpc/rpc/pmap_rmt.h: Likewise.
76712         * sunrpc/rpc/rpc.h: Likewise.
76713         * sunrpc/rpc/rpc_des.h: Likewise.
76714         * sunrpc/rpc/rpc_msg.h: Likewise.
76715         * sunrpc/rpc/svc.h: Likewise.
76716         * sunrpc/rpc/svc_auth.h: Likewise.
76717         * sunrpc/rpc/types.h: Likewise.
76718         * sunrpc/rpc/xdr.h: Likewise.
76719         * sunrpc/rpc_clntout.c: Likewise.
76720         * sunrpc/rpc_cmsg.c: Likewise.
76721         * sunrpc/rpc_common.c: Likewise.
76722         * sunrpc/rpc_cout.c: Likewise.
76723         * sunrpc/rpc_dtable.c: Likewise.
76724         * sunrpc/rpc_hout.c: Likewise.
76725         * sunrpc/rpc_main.c: Likewise.
76726         * sunrpc/rpc_parse.c: Likewise.
76727         * sunrpc/rpc_parse.h: Likewise.
76728         * sunrpc/rpc_prot.c: Likewise.
76729         * sunrpc/rpc_sample.c: Likewise.
76730         * sunrpc/rpc_scan.c: Likewise.
76731         * sunrpc/rpc_scan.h: Likewise.
76732         * sunrpc/rpc_svcout.c: Likewise.
76733         * sunrpc/rpc_tblout.c: Likewise.
76734         * sunrpc/rpc_util.c: Likewise.
76735         * sunrpc/rpc_util.h: Likewise.
76736         * sunrpc/rpcinfo.c: Likewise.
76737         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
76738         * sunrpc/rpcsvc/key_prot.x: Likewise.
76739         * sunrpc/rpcsvc/klm_prot.x: Likewise.
76740         * sunrpc/rpcsvc/mount.x: Likewise.
76741         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
76742         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
76743         * sunrpc/rpcsvc/rex.x: Likewise.
76744         * sunrpc/rpcsvc/rstat.x: Likewise.
76745         * sunrpc/rpcsvc/rusers.x: Likewise.
76746         * sunrpc/rpcsvc/sm_inter.x: Likewise.
76747         * sunrpc/rpcsvc/spray.x: Likewise.
76748         * sunrpc/rpcsvc/yppasswd.x: Likewise.
76749         * sunrpc/rtime.c: Likewise.
76750         * sunrpc/svc.c: Likewise.
76751         * sunrpc/svc_auth.c: Likewise.
76752         * sunrpc/svc_authux.c: Likewise.
76753         * sunrpc/svc_raw.c: Likewise.
76754         * sunrpc/svc_run.c: Likewise.
76755         * sunrpc/svc_simple.c: Likewise.
76756         * sunrpc/svc_tcp.c: Likewise.
76757         * sunrpc/svc_udp.c: Likewise.
76758         * sunrpc/svc_unix.c: Likewise.
76759         * sunrpc/svcauth_des.c: Likewise.
76760         * sunrpc/xcrypt.c: Likewise.
76761         * sunrpc/xdr.c: Likewise.
76762         * sunrpc/xdr_array.c: Likewise.
76763         * sunrpc/xdr_float.c: Likewise.
76764         * sunrpc/xdr_mem.c: Likewise.
76765         * sunrpc/xdr_rec.c: Likewise.
76766         * sunrpc/xdr_ref.c: Likewise.
76767         * sunrpc/xdr_sizeof.c: Likewise.
76768         * sunrpc/xdr_stdio.c: Likewise.
76769
76770         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
76771         handling.
76772
76773 2010-08-19  Andreas Schwab  <schwab@redhat.com>
76774
76775         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
76776
76777 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
76778
76779         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
76780         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
76781         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
76782         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
76783         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
76784         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
76785         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
76786         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
76787         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
76788         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
76789         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
76790         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
76791         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
76792         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
76793
76794 2010-07-26  Anton Blanchard  <anton@samba.org>
76795
76796         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
76797         * malloc/arena.c (heap_trim): Likewise.
76798
76799 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
76800
76801         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
76802         here.  Not...
76803         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
76804         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
76805
76806 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
76807
76808         * sysdeps/i386/elf/Makefile: New file.
76809
76810 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76811
76812         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
76813         from fanotify_init.
76814         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
76815         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76816
76817 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
76818
76819         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
76820         of strncasecmp_l.
76821         * sysdeps/multiarch/strcmp.S: Likewise.
76822
76823 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
76824
76825         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76826         strncase_l-nonascii.
76827         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76828         Add strncase_l-ssse3.
76829         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
76830         * sysdeps/x86_64/strcmp.S: Likewise.
76831         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
76832         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
76833         * sysdeps/x86_64/strncase.S: New file.
76834         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
76835         * sysdeps/x86_64/strncase_l.S: New file.
76836         * string/Makefile (strop-tests): Add strncasecmp.
76837         * string/test-strncasecmp.c: New file.
76838
76839         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
76840         warning.
76841
76842         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
76843         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
76844
76845 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76846
76847         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
76848
76849 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
76850
76851         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
76852         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
76853         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
76854
76855 2010-05-01  Alan Modra  <amodra@gmail.com>
76856
76857         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
76858         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
76859         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
76860         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
76861         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
76862         tidying.  Don't tail-call __sigjmp_save for static lib.
76863         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
76864         save location.
76865         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
76866         (CALL_MCOUNT): Add eh info, and nop after bl.
76867         (TAIL_CALL_SYSCALL_ERROR): New macro.
76868         (PSEUDO_RET): Use it.
76869         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
76870         Correct save location of integer regs and cr.
76871         (_dl_profile_resolve): Correct cr save location.  Delete nops
76872         after bl when SHARED.  Reduce cfi size a little by better
76873         placement of cfi directives.
76874         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
76875         make a stack frame.  Instead use parm save area as a temp.
76876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
76877         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
76878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
76879         Don't make a stack frame for parent, use parm save area.
76880         Increase child stack frame to 112 bytes.  Don't save unused reg,
76881         and adjust reg usage.  Set up cfi on error recovery and
76882         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
76883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
76884         (__makecontext): Add dummy nop after jump to exit.
76885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
76886         Use correct parm save area and cr save, reduce stack frame.
76887         Correct cfi for possible PSEUDO_RET frame setup.
76888         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
76889         Branch to local label emitted by PSEUDO_RET rather than
76890         __syscall_error.
76891
76892 2010-08-12  Andreas Schwab  <schwab@redhat.com>
76893
76894         [BZ #11904]
76895         * locale/programs/locale.c (print_assignment): New function.
76896         (show_locale_vars): Use it.
76897
76898 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
76899
76900         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
76901         field.
76902         (struct statfs64): Likewise.
76903         (_STATFS_F_FLAGS): Define.
76904         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
76905         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76906         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
76907         (ST_VALID): Define locally.
76908         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
76909         __statvfs_getflags, use the provided value.
76910         * sysdeps/unix/sysv/linux/kernel-features.h: Define
76911         __ASSUME_STATFS_F_FLAGS.
76912
76913         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
76914
76915         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
76916         Add sys/fanotify.h.
76917         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
76918         fanotify_mask for GLIBC_2.13.
76919         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
76920         fanotify_init and fanotify_mark.
76921         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76922         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
76923
76924         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
76925         Add prlimit.
76926         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
76927         prlimit64 for GLIBC_2.13.
76928         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
76929         prlimit64.
76930         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
76931         syscall.
76932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
76933         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76934         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
76935         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
76936         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
76937         add prlimit alias.
76938         * sysdeps/unix/sysv/linux/prlimit.c: New file.
76939
76940         [BZ #11903]
76941         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
76942         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
76943
76944         * nss/Makefile: Add rules to build and run tst-nss-test1.
76945         * shlib-versions: Add entry for libnss_test1.
76946         * nss/nss_test1.c: New file.
76947         * nss/tst-nss-test1.c: New file.
76948
76949         * nss/nsswitch.c (__nss_database_custom): Define new variable.
76950         (__nss_configure_lookup): Set appropriate entry in
76951         __nss_configure_lookup to true.
76952         * nss/nsswitch.h: Define enum with indeces of databases in
76953         databases and __nss_database_custom arrays.  Declare
76954         __nss_database_custom.
76955         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
76956         to avoid using nscd when custom rules are installed.
76957         * nss/getXXbyYY_r.c: Likewise.
76958         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
76959
76960         * nss/nss_files/files-parse.c: Whitespace fixes.
76961
76962 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
76963
76964         [BZ #11883]
76965         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
76966         * posix/fnmatch_loop.c: Likewise.
76967
76968 2010-07-17  Andi Kleen  <ak@linux.intel.com>
76969
76970         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
76971         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
76972         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
76973         * Versions.def [GLIBC_2.13]: Add.
76974
76975 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
76976
76977         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76978         Also fail if tpwd after pwuid call is NULL.
76979
76980 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76981
76982         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
76983         when converting to ms.
76984
76985 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76986
76987         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
76988         EOPNOTSUPP errors with ENOTTY.
76989         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
76990         EOPNOTSUPP errors with ENOTTY.
76991
76992 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
76993
76994         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76995         Add strcasecmp_l-ssse3.
76996         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
76997         strcasecmp.
76998         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
76999         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
77000         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
77001
77002 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
77003
77004         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
77005
77006         * string/Makefile (strop-tests): Add strcasecmp.
77007         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
77008         strcasecmp_l-nonascii.
77009         (gen-as-const-headers): Add locale-defines.sym.
77010         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
77011         * sysdeps/x86_64/strcasecmp.S: New file.
77012         * sysdeps/x86_64/strcasecmp_l.S: New file.
77013         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
77014         * sysdeps/x86_64/locale-defines.sym: New file.
77015         * string/test-strcasecmp.c: New file.
77016
77017         * string/test-strcasestr.c: Test both ends of the range of characters.
77018         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
77019
77020 2010-07-29  Roland McGrath  <roland@redhat.com>
77021
77022         [BZ #11856]
77023         * manual/locale.texi (Yes-or-No Questions): Fix example code.
77024
77025 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
77026
77027         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
77028         for ld.so.
77029
77030 2010-07-27  Andreas Schwab  <schwab@redhat.com>
77031
77032         * manual/memory.texi (Malloc Tunable Parameters): Document
77033         M_PERTURB.
77034
77035 2010-07-26  Roland McGrath  <roland@redhat.com>
77036
77037         [BZ #11840]
77038         * configure.in (-fgnu89-inline check): Set and substitute
77039         gnu89_inline, not libc_cv_gnu89_inline.
77040         * configure: Regenerated.
77041         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
77042
77043 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
77044
77045         * string/test-strnlen.c: New file.
77046         * string/Makefile (strop-tests): Add strnlen.
77047         * string/tester.c (test_strnlen): Add a few more test cases.
77048         * string/tst-strlen.c: Better error reporting.
77049
77050         * sysdeps/x86_64/strnlen.S: New file.
77051
77052 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
77053
77054         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
77055         lower-latency instructions.
77056
77057 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
77058
77059         * string/test-strcasestr.c: New file.
77060         * string/test-strstr.c: New file.
77061         * string/Makefile (strop-tests): Add strstr and strcasestr.
77062         * string/str-two-way.h: Don't undefine MAX.
77063         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
77064
77065 2010-07-21  Andreas Schwab  <schwab@redhat.com>
77066
77067         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
77068         strcasestr-nonascii.
77069         (CFLAGS-strcasestr-nonascii.c): Define.
77070         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
77071         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
77072         Remove unused attribute.
77073
77074 2010-07-20  Roland McGrath  <roland@redhat.com>
77075
77076         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
77077         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
77078         ld.so.cache was broken.  With it, there is no way to disable dsocaps
77079         like LD_HWCAP_MASK can disable hwcaps.
77080
77081 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
77082
77083         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
77084
77085 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
77086
77087         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
77088         call in strcasestr.
77089         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
77090         __strcasestr_sse42_nonascii.
77091         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
77092         strcasestr-nonascii.c.
77093         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
77094
77095 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
77096
77097         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
77098         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
77099         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
77100         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
77101
77102 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
77103
77104         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
77105         fcntl.
77106
77107 2010-07-06  Andreas Schwab  <schwab@redhat.com>
77108
77109         [BZ #11577]
77110         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
77111         dl_signal_cerror.
77112
77113 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
77114
77115         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
77116         _PC_PIPE_BUF using F_GETPIPE_SZ.
77117
77118 2010-07-05  Roland McGrath  <roland@redhat.com>
77119
77120         * manual/arith.texi (Rounding Functions): Fix rint description
77121         implicit in round description.
77122
77123 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
77124
77125         * elf/Makefile: Fix linking for a few tests to make recent linker
77126         happy.
77127
77128 2010-06-30  Andreas Schwab  <schwab@redhat.com>
77129
77130         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
77131         $(common-objpfx)libc_nonshared.a.
77132
77133 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
77134
77135         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
77136         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
77137         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
77138         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
77139         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
77140         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
77141         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
77142         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
77143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
77144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
77145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
77146         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
77147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
77148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
77149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
77150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
77151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
77152         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
77153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
77154         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
77155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
77156         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
77157         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
77158         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
77159         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
77160         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
77161         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
77162         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
77163         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
77164         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
77165         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
77166         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
77167         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
77168         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
77169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
77170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
77171         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
77172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
77173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
77174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
77175         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
77176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
77177         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
77178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
77179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
77180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
77181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
77182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
77183
77184 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
77185
77186         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
77187         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
77188         * string/memmove.c (memmove): Renamed to ...
77189         (MEMMOVE): ...this.  Default to memmove.
77190         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
77191         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
77192         (END_CHK): Define.
77193         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
77194         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
77195         mempcpy-ssse3-back memmove-ssse3-back.
77196         * sysdeps/x86_64/multiarch/bcopy.S: New file .
77197         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
77198         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
77199         * sysdeps/x86_64/multiarch/memcpy.S: New file.
77200         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
77201         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
77202         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
77203         * sysdeps/x86_64/multiarch/memmove.c: New file.
77204         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
77205         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
77206         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
77207         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
77208         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
77209         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
77210         Define.
77211         (index_Fast_Copy_Backward): Define.
77212         (HAS_ARCH_FEATURE): Define.
77213         (HAS_FAST_REP_STRING): Define.
77214         (HAS_FAST_COPY_BACKWARD): Define.
77215
77216 2010-06-21  Andreas Schwab  <schwab@redhat.com>
77217
77218         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
77219         Restore proper fallback handling.
77220
77221 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
77222
77223         [BZ #11701]
77224         * posix/group_member.c (__group_member): Correct checking loop.
77225
77226         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
77227         OOM in getpwuid_r correctly.  Return error number when the caller
77228         should return, otherwise -1.
77229         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
77230         call returning > 0 value.
77231         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
77232
77233 2010-06-07  Andreas Schwab  <schwab@redhat.com>
77234
77235         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
77236         libc_nonshared.a from targets in modules-names.
77237
77238 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
77239
77240         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
77241         requires it.
77242
77243 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
77244
77245         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
77246         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
77247         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
77248         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
77249
77250 2010-06-02  Andreas Schwab  <schwab@redhat.com>
77251
77252         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
77253
77254 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
77255
77256         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
77257         and F_GETPIPE_SZ.
77258         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
77259         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
77260         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
77261         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
77262         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
77263         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
77264
77265 2010-06-14  Roland McGrath  <roland@redhat.com>
77266
77267         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
77268
77269 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
77270
77271         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
77272         __REDIRECT followed by __THROW.
77273         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
77274         * posix/getopt.h (getopt): Likewise.
77275
77276 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
77277
77278         * hurd/lookup-at.c (__file_name_lookup_at): Accept
77279         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
77280         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
77281         in AT_FLAGS.
77282         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
77283         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
77284
77285 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
77286
77287         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
77288
77289 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
77290
77291         [BZ #11640]
77292         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
77293         Properly check family and model.
77294
77295 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
77296
77297         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
77298
77299 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
77300
77301         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
77302
77303 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
77304
77305         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
77306         symbol reference.
77307
77308 2010-05-19  Andreas Schwab  <schwab@redhat.com>
77309
77310         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
77311         symbol reference.
77312
77313 2010-05-21  Andreas Schwab  <schwab@redhat.com>
77314
77315         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
77316         and internal_recvmmsg.
77317         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
77318         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
77319         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
77320         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
77321
77322         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
77323         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
77324         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
77325
77326 2010-05-20  Andreas Schwab  <schwab@redhat.com>
77327
77328         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
77329
77330 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
77331
77332         POWER7 optimizations.
77333         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
77334         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
77335
77336 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
77337
77338         * version.h: Update for 2.13 development version.
77339
77340 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
77341
77342         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
77343         exceptions.  Return 0.
77344
77345 2010-05-07  Roland McGrath  <roland@redhat.com>
77346
77347         * elf/ldconfig.c (main): Add a const.
77348
77349 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
77350
77351         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
77352         (args_options): Add no-idn option.
77353         (ahosts_keys_int): Add idn_flags to ai_flags.
77354         (parse_option): Handle 'i' option to clear idn_flags.
77355
77356         * malloc/malloc.c (_int_free): Possible race in the most recently
77357         added check.  Only act on the data if no current modification
77358         happened.
77359
77360 See ChangeLog.17 for earlier changes.